forked from bgrolleman/fixxx-pakjekraam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
285 lines (284 loc) · 8.99 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
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
{
"env": {
"amd": true,
"browser": true,
"es6": true,
"jest": true,
"shared-node-browser": true
},
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2019,
"jsx": true
},
"rules": {
"accessor-pairs": ["error"],
"array-callback-return": ["off"],
"array-element-newline": ["off", { "multiline": true }],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error"],
"block-scoped-var": ["error"],
"block-spacing": ["error"],
"brace-style": ["error", "1tbs"],
"callback-return": ["off"],
"capitalized-comments": ["off"],
"camelcase": ["error"],
"comma-dangle": ["off", "never"],
"comma-style": ["error", "last"],
"comma-spacing": [
"error",
{
"after": true,
"before": false
}
],
"complexity": ["off"],
"computed-property-spacing": ["error", "never"],
"consistent-return": ["error"],
"consistent-this": ["error"],
"constructor-super": ["error"],
"class-methods-use-this": ["off", { "exceptMethods": ["render"] }],
"default-case": ["error"],
"dot-location": ["error", "property"],
"dot-notation": ["error"],
"eol-last": ["error"],
"eqeqeq": ["off"],
"for-direction": ["error"],
"func-call-spacing": ["error"],
"func-name-matching": ["off"],
"func-names": ["off"],
"func-style": ["off"],
"function-paren-newline": ["off", "consistent"],
"generator-star-spacing": ["error", { "before": true, "after": false }],
"getter-return": ["error"],
"global-require": ["off"],
"guard-for-in": ["error"],
"handle-callback-err": ["off"],
"id-blacklist": ["error", "foo", "bar", "quux"],
"id-length": ["error", { "min": 1, "max": 28 }],
"id-match": ["off"],
"indent": ["off"],
"init-declarations": ["off"],
"init-rule-declaration": ["off"],
"jsx-quotes": ["error", "prefer-double"],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "unix"],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"max-classes-per-file": ["error"],
"max-depth": ["off"],
"max-lines": ["off"],
"max-lines-per-function": ["off"],
"max-nested-callbacks": ["off"],
"max-params": ["off"],
"max-statements-per-line": ["error", { "max": 2 }],
"max-statements": ["off"],
"multiline-comment-style": ["off"],
"multiline-ternary": ["off"],
"new-parens": ["error"],
"newline-after-var": ["off", "always"],
"new-cap": [
"error",
{
"newIsCap": true,
"capIsNew": true,
"capIsNewExceptions": ["CollectGarbage"],
"properties": true
}
],
"newline-before-return": ["off"],
"newline-per-chained-call": ["off"],
"no-alert": ["error"],
"no-array-constructor": ["error"],
"no-async-promise-executor": ["error"],
"no-await-in-loop": ["error"],
"no-bitwise": ["off"],
"no-buffer-constructor": ["error"],
"no-caller": ["error"],
"no-case-declarations": ["error"],
"no-class-assign": ["error"],
"no-cond-assign": ["error", "except-parens"],
"no-console": ["off"],
"no-control-regex": ["off"],
"no-const-assign": ["error"],
"no-constant-condition": ["error"],
"no-continue": ["off"],
"no-compare-neg-zero": ["error"],
"no-debugger": ["error"],
"no-delete-var": ["error"],
"no-div-regex": ["error"],
"no-dupe-args": ["error"],
"no-dupe-class-members": ["error"],
"no-dupe-keys": ["error"],
"no-duplicate-case": ["error"],
"no-duplicate-imports": ["error"],
"no-else-return": ["off"],
"no-empty": ["error"],
"no-empty-function": ["error"],
"no-empty-character-class": ["error"],
"no-empty-pattern": ["error"],
"no-eq-null": ["error"],
"no-eval": ["error"],
"no-ex-assign": ["off"],
"no-extend-native": ["error"],
"no-extra-bind": ["error"],
"no-extra-boolean-cast": ["error"],
"no-extra-label": ["error"],
"no-extra-parens": ["off"],
"no-extra-semi": ["error"],
"no-fallthrough": ["error"],
"no-floating-decimal": ["error"],
"no-func-assign": ["error"],
"no-global-assign": ["error"],
"no-implicit-coercion": [
"error",
{
"number": true,
"string": true,
"boolean": true,
"allow": ["!!", "*"]
}
],
"no-implicit-globals": ["error"],
"no-implied-eval": ["error"],
"no-inner-declarations": ["error"],
"no-inline-comments": ["off"],
"no-invalid-this": ["error"],
"no-invalid-regexp": ["error"],
"no-irregular-whitespace": ["error"],
"no-iterator": ["error"],
"no-labels": ["off"],
"no-label-var": ["error"],
"no-lone-blocks": ["error"],
"no-lonely-if": ["error"],
"no-loop-func": ["error"],
"no-magic-numbers": ["off", { "ignore": [-2, -1, -0.5, 0, 0.5, 1, 2], "ignoreArrayIndexes": true }],
"no-misleading-character-class": ["error"],
"no-mixed-requires": ["error"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-multi-spaces": ["off"],
"no-multiple-empty-lines": ["error"],
"no-nested-ternary": ["off"],
"no-new": ["error"],
"no-new-func": ["error"],
"no-new-object": ["error"],
"no-new-require": ["error"],
"no-new-symbol": ["error"],
"no-new-wrappers": ["error"],
"no-obj-calls": ["error"],
"no-octal": ["error"],
"no-octal-escape": ["error"],
"no-param-reassign": ["off"],
"no-path-concat": ["error"],
"no-plusplus": ["off"],
"no-proto": ["error"],
"no-prototype-builtins": ["off"],
"no-redeclare": ["error"],
"no-restricted-imports": ["off"],
"no-restricted-properties": ["error"],
"no-return-await": ["error"],
"no-regex-spaces": ["error"],
"no-return-assign": ["error", "except-parens"],
"no-self-assign": ["off"],
"no-self-compare": ["error"],
"no-script-url": ["error"],
"no-shadow": ["error"],
"no-shadow-restricted-names": ["error"],
"no-sparse-arrays": ["error"],
"no-template-curly-in-string": ["error"],
"no-this-before-super": ["off"],
"no-throw-literal": ["error"],
"no-trailing-spaces": ["error"],
"no-unmodified-loop-condition": ["error"],
"no-unneeded-ternary": ["error"],
"no-unused-expressions": ["off"],
"no-undef": ["off"],
"no-undef-init": ["error"],
"no-undefined": ["off"],
"no-unreachable": ["error"],
"no-unsafe-finally": ["error"],
"no-unsafe-negation": ["error"],
"no-unused-vars": ["off", { "args": "none", "varsIgnorePattern": "^[A-Z].+" }],
"no-unused-labels": ["error"],
"no-use-before-define": ["off", { "functions": false }],
"no-useless-call": ["error"],
"no-useless-computed-key": ["error"],
"no-useless-concat": ["error"],
"no-useless-constructor": ["error"],
"no-useless-escape": ["error"],
"no-useless-rename": ["error"],
"no-useless-return": ["error"],
"no-var": ["error"],
"no-void": ["error"],
"no-warning-comments": ["off"],
"no-with": ["error"],
"object-curly-spacing": [
"error",
"always",
{
"arraysInObjects": true,
"objectsInObjects": true
}
],
"object-shorthand": ["error", "properties"],
"one-var": ["off"],
"one-var-declaration-per-line": ["error", "initializations"],
"operator-assignment": ["off"],
"operator-linebreak": ["off", "before"],
"padded-blocks": ["error", "never"],
"padding-line-between-statements": ["off", { "blankLine": "always", "prev": "*", "next": "return" }],
"prefer-arrow-callback": ["off"],
"prefer-const": ["error"],
"prefer-destructuring": ["off"],
"prefer-named-capture-group": ["off"],
"prefer-promise-reject-errors": ["error"],
"prefer-rest-params": ["off"],
"prefer-spread": ["off"],
"prefer-template": ["off"],
"quote-props": ["off"],
"radix": ["error", "always"],
"require-atomic-updates": ["error"],
"require-await": ["error"],
"require-jsdoc": ["off"],
"rest-spread-spacing": ["error"],
"require-unicode-regexp": ["off"],
"require-yield": ["error"],
"semi": ["error", "always"],
"semi-spacing": ["error"],
"sort-imports": [
"error",
{
"ignoreCase": true
}
],
"space-before-function-paren": ["off", { "anonymous": "always", "named": "never" }],
"space-in-parens": ["off", "never"],
"space-infix-ops": ["off"],
"space-unary-ops": [
"off",
{
"words": true,
"nonwords": false
}
],
"spaced-comment": ["error"],
"strict": ["error", "global"],
"template-curly-spacing": ["error", "never"],
"use-isnan": ["error"],
"vars-on-top": ["off"],
"wrap-iife": ["error"],
"wrap-regexp": ["off"],
"yield-star-spacing": ["error"],
"yoda": ["error", "never"],
"valid-typeof": ["error"],
"wrap-iife": [2, "any"],
"consistent-return": ["off"],
"react/prop-types": ["off"],
"react/no-unknown-property": ["off"]
},
"settings": {
"react": {
"version": "detect"
}
}
}