Skip to content

Commit 5b7377b

Browse files
committed
fix: turn some slow rules off for perf
1 parent 8ac7495 commit 5b7377b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.eslintrc.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ module.exports = {
101101
yoda: 'error',
102102

103103
// Imports
104+
'import/extensions': ['error', 'never'],
104105
'import/no-deprecated': 'warn',
105106
'import/no-unused-modules': 'error',
106-
'import/no-cycle': 'warn',
107+
'import/no-cycle': 'off', // Too slow
107108
'import/no-self-import': 'error',
108109
'import/no-dynamic-require': 'error',
109110
'import/no-useless-path-segments': 'error',
@@ -188,7 +189,7 @@ module.exports = {
188189
'@typescript-eslint/no-triple-slash-reference': 'error',
189190
'@typescript-eslint/no-unnecessary-qualifier': 'error',
190191
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
191-
'@typescript-eslint/no-unused-vars': 'warn',
192+
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }],
192193
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
193194
'@typescript-eslint/no-var-requires': 'error',
194195
'@typescript-eslint/prefer-for-of': 'error',
@@ -201,12 +202,16 @@ module.exports = {
201202
'@typescript-eslint/unified-signatures': 'error',
202203

203204
'jsdoc/no-types': 'error',
205+
'jsdoc/no-undefined-types': 'off',
204206
'jsdoc/require-param-type': 'off',
205207
'jsdoc/require-returns-type': 'off',
206208
'jsdoc/valid-types': 'off',
207209
'import/no-unresolved': 'off',
208210
'import/default': 'off',
209211
'import/named': 'off',
212+
'import/namespace': 'off',
213+
'import/no-deprecated': 'off',
214+
'react/no-direct-mutation-state': 'off',
210215
'no-undef': 'off',
211216
'no-dupe-class-members': 'off',
212217
},

0 commit comments

Comments
 (0)