forked from intsig-textin/parsex-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
33 lines (33 loc) · 954 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
28
29
30
31
32
33
module.exports = {
extends: [require.resolve('@umijs/fabric/dist/eslint')],
globals: {
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
page: true,
REACT_APP_ENV: true,
},
rules: {
'no-shadow': 0,
'no-empty': 1,
'eqeqeq': 1,
'no-param-reassign': 1,
'no-nested-ternary': 1,
'no-empty-pattern': 1,
'no-console': 0, //@TODO: 暂时去除
'no-param-reassign': 1,
'no-plusplus': 1,
'prefer-rest-params': 1,
'prefer-rest-params': 1,
'prefer-const': 1,
'consistent-return': 1,
'no-bitwise': 1,
'global-require': 0,
'prefer-promise-reject-errors': 0,
'@typescript-eslint/no-throw-literal': 1,
'@typescript-eslint/no-shadow': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-unused-expressions': 1,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/ban-types': 1,
'react-hooks/exhaustive-deps': 'off',
},
};