-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
73 lines (73 loc) · 1.99 KB
/
.eslintrc
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
{
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"react-app"
],
"plugins": [
"react", "@typescript-eslint"
],
"rules": {
"@typescript-eslint/indent": ["error", 2],
// "@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-unused-vars": 1,
"indent": ["error", 2, {
"SwitchCase": 1
}],
"semi": ["error", "always"],
"linebreak-style": 0,
"import/prefer-default-export": 0,
"no-underscore-dangle": 0,
"no-console": 0,
"arrow-body-style": 0,
"class-methods-use-this": 0,
"max-len": 0,
"no-return-assign": 0,
"import/extensions": 0,
"no-case-declarations": 0,
"no-param-reassign": 0, // 禁止给参数重新赋值
"no-plusplus": 0,
"prefer-object-spread": 0,
"guard-for-in": 0,
"comma-dangle": 0,
"global-require": 0,
"quotes": 0,
"no-return-await": 0,
"max-classes-per-file": 0,
"object-curly-spacing": ["error", "always"],
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"react-hooks/exhaustive-deps": 0,
"react/jsx-tag-spacing": 0,
"react/destructuring-assignment": 0,
"react/no-unused-state": 0,
"react/display-name": 0,
"react/jsx-max-props-per-line": 0,
"react/jsx-first-prop-new-line": 1,
"react/jsx-one-expression-per-line": 0,
"react/jsx-closing-bracket-location": [1, "line-aligned"],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", "tsx", "ts"]
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": [
"node_modules",
"./packages"
]
}
},
"import/external-module-folders": [
"./packages"
]
}
}