-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
80 lines (79 loc) · 2.14 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
const { strictEslint } = require('@umijs/fabric');
module.exports = {
...strictEslint,
rules: {
...strictEslint.rules,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/class-name-casing': 0,
'@typescript-eslint/prefer-interface': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-empty-interface': 'warn',
'@typescript-eslint/array-type': 'warn',
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-unused-vars': 'error',
'space-infix-ops': 0,
'eslint-comments/no-unlimited-disable': 0,
'space-infix-ops': 0,
'no-useless-return': 0,
'comma-spacing': 0,
'import/no-extraneous-dependencies': 0,
'comma-dangle': 0,
'no-trailing-spaces': 0,
'object-curly-spacing': 0,
'no-plusplus': 0,
'no-else-return': 0,
'arrow-body-style': 0,
'eol-last': 0,
'import/no-unresolved': [
'error',
{
ignore: ['@config/', '@/', '@wetrial'],
},
],
'key-spacing': 0,
'space-before-blocks': 0,
semi: 0,
'keyword-spacing': 0,
'arrow-spacing': 0,
'brace-style': 0,
'space-before-function-paren': 0,
'import/order': 0,
'padded-blocks': 0,
'react/prefer-stateless-function': 0,
'lines-between-class-members': 0,
'consistent-return': 0,
'import/first': 0,
'react/jsx-no-bind': 0,
'no-template-curly-in-string': 0,
'max-len': ['warn', { code: 400 }],
'no-unused-expressions': ['error', { allowShortCircuit: true }],
'class-methods-use-this': 0, // ["error", { "exceptMethods": ["setDefaultFilter"] }]
'react/sort-comp': [
1,
{
order: [
'static-properties',
'static-methods',
'type-annotations',
'propTypes',
'conventional-private-properties',
'state',
'private-instance-fields',
'lifecycle',
'/^on.+$/',
'/^handle.+$/',
'/^get.+$/',
'everything-else',
'render',
],
},
],
'dot-notation': 0,
'no-return-await': 0,
'unicode-bom': 0,
},
globals: {
page: true,
REACT_APP_ENV: true,
},
};