forked from crypto-com/chain-desktop-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 1.43 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
39
40
41
42
43
module.exports = {
extends: [require.resolve('@umijs/fabric/dist/eslint')],
globals: {
page: true,
REACT_APP_ENV: true,
},
plugins: ['react-hooks'],
settings: {
'import/core-modules': ["electron"],
},
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',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-shadow': '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',
'@typescript-eslint/parser': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: ['**/*.spec.ts'] }],
'react-hooks/rules-of-hooks': 'error',
'import/no-unresolved': 'off',
'prefer-promise-reject-errors': 'off',
'no-return-await': 'off',
'react-hooks/exhaustive-deps': [
'off',
{
additionalHooks: 'useRecoilCallback',
},
],
},
};