We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@typescript-eslint/no-unused-vars
1 parent ead8152 commit fc004c9Copy full SHA for fc004c9
index.js
@@ -133,7 +133,19 @@ module.exports = {
133
],
134
'@typescript-eslint/no-triple-slash-reference': 'error',
135
'@typescript-eslint/no-type-alias': 'error',
136
- '@typescript-eslint/no-unused-vars': 'error',
+ 'no-unused-vars': 'off',
137
+ '@typescript-eslint/no-unused-vars': [
138
+ 'error',
139
+ {
140
+ vars: 'all',
141
+ varsIgnorePattern: '^React$',
142
+ args: 'after-used',
143
+ ignoreRestSiblings: true,
144
+ argsIgnorePattern: '^_$',
145
+ caughtErrors: 'all',
146
+ caughtErrorsIgnorePattern: '^_$'
147
+ }
148
+ ],
149
'@typescript-eslint/no-var-requires': 'error',
150
'@typescript-eslint/prefer-interface': 'error',
151
'@typescript-eslint/prefer-namespace-keyword': 'error',
0 commit comments