forked from alibaba/hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
27 lines (26 loc) · 873 Bytes
/
.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
const fabric = require('@umijs/fabric');
module.exports = {
...fabric.default,
rules: {
...fabric.default.rules,
'no-restricted-syntax': 'off',
'no-plusplus': 'off',
'no-console': 'off',
'no-underscore-dangle': 'off',
'consistent-return': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'import/no-useless-path-segments': 'off',
'no-unused-expressions': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'off',
'no-await-in-loop': 'off',
'no-constant-condition': ['warn', { checkLoops: false }],
},
plugins: [...fabric.default.plugins, 'react-hooks'],
parserOptions: {
...fabric.default.parserOptions,
project: './packages/**/tsconfig.json',
},
};