-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
47 lines (46 loc) · 1.48 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
44
45
46
47
const fabric = require('@umijs/fabric');
module.exports = {
...fabric.default,
rules: {
...fabric.default.rules,
'no-restricted-syntax': 'off',
'no-plusplus': 'off',
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'consistent-return': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'consistent-return': 'off',
'import/no-useless-path-segments': 'off',
'no-unused-expressions': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-throw-literal': 'off',
'prefer-template': 'off',
'@typescript-eslint/dot-notation': 'off',
'no-bitwise': 'off',
radix: 'off',
'@typescript-eslint/array-type': 'off',
eqeqeq: 'off',
'no-multiple-empty-lines': 'error',
'spaced-comment': 'off',
semi: ['error', 'always'],
quotes: 'error',
'jsx-quotes': 'off',
'func-names': 'off',
'no-console': 'warn',
'no-nested-ternary': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'react-hooks/rules-of-hooks': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'no-await-in-loop': 'off',
'guard-for-in': 'off',
},
plugins: [...fabric.default.plugins, 'react-hooks'],
parserOptions: {
...fabric.default.parserOptions,
project: './packages/**/tsconfig.json',
},
};