-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
210 lines (210 loc) · 6.98 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
{
"root": true,
"parser": "babel-eslint",
"plugins": ["jsx-a11y", "react", "jest", "react-hooks"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"extends": "airbnb",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"generators": true,
"experimentalObjectRestSpread": true
}
},
"settings": {
"import/ignore": [
"node_modules",
"\\.(json|css|jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$"
],
"import/extensions": [".js"],
"import/resolver": {
"node": {
"extensions": [".js", ".json"]
}
}
},
"rules": {
"linebreak-style": ["off", "unix"],
"generator-star-spacing": 1,
"babel/new-cap": 0,
"no-await-in-loop": 1,
"object-shorthand": 1,
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"class-methods-use-this": 0,
"comma-dangle": ["error", "always-multiline"],
"space-before-function-paren": "off",
"indent": ["error", 2],
"func-names": "error",
"import/extensions": 0,
"import/first": 0,
"import/prefer-default-export": 0,
"import/no-cycle": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"jsx-a11y/anchor-has-content": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/anchor-is-valid": 0,
"max-len": 0,
"new-cap": 1,
"no-console": 1,
"no-plusplus": 0,
"no-use-before-define": [2, "nofunc"],
"quotes": [2, "single"],
"react/forbid-prop-types": 0,
"react/forbid-foreign-prop-types": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-indent": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-danger": "error",
"react/react-in-jsx-scope": 2,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"strict": [2, "never"],
"arrow-parens": ["error", "as-needed"],
"complexity": ["warn", { "max": 5 }],
"array-callback-return": "warn",
"camelcase": "warn",
"curly": "warn",
"default-case": ["warn", { "commentPattern": "^no default$" }],
"dot-location": ["warn", "property"],
"eol-last": "warn",
"eqeqeq": ["warn", "always"],
"guard-for-in": "warn",
"keyword-spacing": "warn",
"new-parens": "warn",
"no-array-constructor": "warn",
"no-caller": "warn",
"no-cond-assign": ["warn", "always"],
"no-const-assign": "warn",
"no-control-regex": "warn",
"no-delete-var": "warn",
"no-dupe-args": "warn",
"no-dupe-class-members": "warn",
"no-dupe-keys": "warn",
"no-duplicate-case": "warn",
"no-empty-character-class": "warn",
"no-empty-pattern": "warn",
"no-eval": "warn",
"no-ex-assign": "warn",
"no-extend-native": "warn",
"no-extra-bind": "warn",
"no-extra-label": "warn",
"no-fallthrough": "warn",
"no-func-assign": "warn",
"no-global-assign": "warn",
"no-implied-eval": "warn",
"no-invalid-regexp": "warn",
"no-iterator": "warn",
"no-label-var": "warn",
"no-labels": ["warn", { "allowLoop": false, "allowSwitch": false }],
"no-lone-blocks": "warn",
"no-loop-func": "warn",
"no-mixed-operators": ["warn", {
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": false
}],
"no-multi-str": "warn",
"no-new-func": "warn",
"no-new-object": "warn",
"no-new-symbol": "warn",
"no-new-wrappers": "warn",
"no-obj-calls": "warn",
"no-octal": "warn",
"no-octal-escape": "warn",
"no-redeclare": "warn",
"no-regex-spaces": "warn",
"no-restricted-syntax": [
"warn",
"LabeledStatement",
"WithStatement"
],
"no-script-url": "warn",
"no-self-assign": "warn",
"no-self-compare": "warn",
"no-sequences": "warn",
"no-shadow-restricted-names": "warn",
"no-sparse-arrays": "warn",
"no-template-curly-in-string": "warn",
"no-this-before-super": "warn",
"no-throw-literal": "warn",
"no-undef": "warn",
"no-unexpected-multiline": "warn",
"no-unreachable": "warn",
"no-unsafe-negation": "warn",
"no-unused-expressions": "warn",
"no-unused-labels": "warn",
"no-unused-vars": ["warn", { "vars": "local", "args": "none" }],
"no-useless-computed-key": "warn",
"no-useless-concat": "warn",
"no-useless-constructor": "warn",
"no-useless-escape": "warn",
"no-useless-rename": ["warn", {
"ignoreDestructuring": false,
"ignoreImport": false,
"ignoreExport": false
}],
"no-with": "warn",
"no-whitespace-before-property": "warn",
"object-curly-spacing": ["warn", "always"],
"operator-assignment": ["warn", "always"],
"radix": "warn",
"require-yield": "warn",
"rest-spread-spacing": ["warn", "never"],
"semi": "warn",
"sort-keys": "error",
"sort-vars": "error",
"unicode-bom": ["warn", "never"],
"use-isnan": "warn",
"valid-typeof": "warn",
"react/jsx-boolean-value": "warn",
"react/jsx-closing-bracket-location": "warn",
"react/jsx-curly-spacing": "warn",
"react/jsx-equals-spacing": ["warn", "never"],
"react/jsx-first-prop-new-line": ["warn", "multiline"],
"react/jsx-handler-names": "warn",
"react/jsx-indent-props": ["warn", 2],
"react/jsx-key": "warn",
"react/jsx-max-props-per-line": "warn",
"react/jsx-no-bind": ["warn", {"allowArrowFunctions": true}],
"react/jsx-no-comment-textnodes": "warn",
"react/jsx-no-duplicate-props": ["warn", { "ignoreCase": true }],
"react/jsx-no-undef": "warn",
"react/jsx-pascal-case": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-sort-props": "warn",
"react/jsx-tag-spacing": "warn",
"react/jsx-wrap-multilines": "warn",
"react/no-deprecated": "warn",
"react/no-did-mount-set-state": "warn",
"react/no-did-update-set-state": "warn",
"react/no-direct-mutation-state": "warn",
"react/no-is-mounted": "warn",
"react/no-unused-prop-types": "warn",
"react/prefer-es6-class": "warn",
"react/prefer-stateless-function": "warn",
"react/prop-types": "warn",
"react/require-render-return": "warn",
"react/self-closing-comp": "warn",
"react/sort-comp": "warn",
"react/sort-prop-types": "warn",
"react/style-prop-object": "warn",
"react/void-dom-elements-no-children": "warn",
"jsx-a11y/aria-role": "warn",
"jsx-a11y/img-redundant-alt": "warn",
"jsx-a11y/no-access-key": "warn"
}
}