Skip to content

Commit e00a199

Browse files
committed
fix: remove redundant checks
1 parent 7244b5f commit e00a199

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.eslintrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,14 @@ module.exports = {
225225
'@typescript-eslint/no-require-imports': 'error',
226226
'@typescript-eslint/no-unnecessary-qualifier': 'error',
227227
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
228-
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }],
228+
'@typescript-eslint/no-unused-vars': [
229+
'warn',
230+
{
231+
varsIgnorePattern: '.*', // TS already enforces this
232+
args: 'after-used',
233+
ignoreRestSiblings: true,
234+
},
235+
],
229236
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
230237
'@typescript-eslint/no-useless-constructor': 'error',
231238
'@typescript-eslint/no-var-requires': 'error',
@@ -249,6 +256,7 @@ module.exports = {
249256
'import/namespace': 'off',
250257
'import/no-deprecated': 'off',
251258
'react/no-direct-mutation-state': 'off',
259+
'react/jsx-no-undef': 'off',
252260
'no-undef': 'off',
253261
'no-dupe-class-members': 'off',
254262
'require-await': 'off',

0 commit comments

Comments
 (0)