-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
111 lines (111 loc) · 2.4 KB
/
.eslintrc.json
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"mocha": true,
"node": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".json"]
}
}
},
"rules": {
"default-param-last": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"curly": ["error", "all"],
"no-empty": "off",
"no-await-in-loop": "off",
"no-restricted-syntax": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"react/function-component-definition": [
2,
{
"namedComponents": [
"arrow-function",
"function-declaration"
],
"unnamedComponents": [
"arrow-function",
"function-expression"
]
}
],
"jsx-a11y/label-has-for": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-param-reassign": [
"error",
{
"props": false
}
],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"operator-linebreak": "off",
"jsx-a11y/alt-text": "off",
"no-underscore-dangle": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"max-statements": [
"error",
15,
{
"ignoreTopLevelFunctions": true
}
],
"complexity": [
"error",
{
"max": 8
}
]
},
"overrides": [
{
"files": ["*.jsx", "*.js"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-var-requires": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "off"
}
}
],
"plugins": ["@typescript-eslint", "react-hooks", "chai-friendly"],
"globals": {
"mockHistoryPush": true
}
}