Skip to content

Commit 081bb76

Browse files
committed
Allow unused parameters in declarations
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent c362b63 commit 081bb76

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"eslint-comments/no-use": "off",
1212
"import/no-namespace": "off",
1313
"no-unused-vars": "off",
14-
"@typescript-eslint/no-unused-vars": "error",
14+
"@typescript-eslint/no-unused-vars": "off",
1515
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
1616
"@typescript-eslint/no-require-imports": "error",
1717
"@typescript-eslint/array-type": "error",

tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"rootDir": ".", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
77
"strict": true, /* Enable all strict type-checking options. */
88
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
9-
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
9+
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
10+
"noUnusedLocals": true,
11+
"noUnusedParameters": true
1012
},
1113
"include": ["**/*.ts"],
1214
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)