-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
38 lines (38 loc) · 1.33 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module.exports = {
extends: [require.resolve('@umijs/fabric/dist/eslint')],
globals: {
page: true,
REACT_APP_ENV: true,
},
plugins: ['react-hooks'],
rules: {
'@typescript-eslint/object-curly-spacing': "off",
'jsx-a11y/accessible-emoji': 'off',
'no-new-wrappers': 'off',
'no-extra-boolean-cast': 'off',
'react/no-array-index-key': 'off',
'no-plusplus': 'off',
'react/prefer-stateless-function': 'off',
'no-param-reassign': 'off', // used redux-immer for simplification
'prefer-object-spread': 'off',
'max-classes-per-file': ['error', 3],
'@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/method-signature-style': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/type-annotation-spacing': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/return-await': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: ['**/*.spec.ts', '**/*.spec.tsx'] }],
'react-hooks/rules-of-hooks': 'error',
"import/no-unresolved": "off",
"@typescript-eslint/no-inferrable-types": 'off',
"@typescript-eslint/no-empty-interface": 'off',
"@typescript-eslint/no-unused-vars": 'off',
'react-hooks/exhaustive-deps': [
'off',
{
additionalHooks: 'useRecoilCallback',
},
],
},
};