@mimica/eslint-config 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +25 -36
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -26,7 +26,6 @@ export default [
|
|
|
26
26
|
{
|
|
27
27
|
plugins: {
|
|
28
28
|
sonarjs,
|
|
29
|
-
unicorn,
|
|
30
29
|
inker,
|
|
31
30
|
promise,
|
|
32
31
|
"you-dont-need-lodash-underscore": youDontNeedLodashUnderscore,
|
|
@@ -45,22 +44,19 @@ export default [
|
|
|
45
44
|
},
|
|
46
45
|
|
|
47
46
|
rules: {
|
|
48
|
-
"arrow-parens": 0,
|
|
49
|
-
|
|
47
|
+
"arrow-parens": 0, // TODO: do not disable "arrow-parens" rule
|
|
50
48
|
camelcase: [
|
|
51
49
|
1,
|
|
52
50
|
{
|
|
53
51
|
allow: [],
|
|
54
52
|
},
|
|
55
53
|
],
|
|
56
|
-
|
|
57
54
|
"consistent-return": 0,
|
|
58
55
|
curly: [2, "all"],
|
|
59
56
|
"function-paren-newline": [0, "never"],
|
|
60
57
|
"guard-for-in": 1,
|
|
61
58
|
"implicit-arrow-linebreak": 0,
|
|
62
59
|
indent: 0,
|
|
63
|
-
|
|
64
60
|
"lines-between-class-members": [
|
|
65
61
|
2,
|
|
66
62
|
"always",
|
|
@@ -68,22 +64,18 @@ export default [
|
|
|
68
64
|
exceptAfterSingleLine: true,
|
|
69
65
|
},
|
|
70
66
|
],
|
|
71
|
-
|
|
72
67
|
"max-params": 2,
|
|
73
68
|
"no-confusing-arrow": 0,
|
|
74
69
|
"no-console": 2,
|
|
75
70
|
"no-continue": 0,
|
|
76
71
|
"no-loop-func": 1,
|
|
77
|
-
|
|
78
72
|
"no-param-reassign": [
|
|
79
73
|
2,
|
|
80
74
|
{
|
|
81
75
|
props: false,
|
|
82
76
|
},
|
|
83
77
|
],
|
|
84
|
-
|
|
85
78
|
"no-plusplus": 0,
|
|
86
|
-
|
|
87
79
|
"no-restricted-syntax": [
|
|
88
80
|
2,
|
|
89
81
|
"ForInStatement",
|
|
@@ -95,21 +87,12 @@ export default [
|
|
|
95
87
|
message: "Use #private instead.",
|
|
96
88
|
},
|
|
97
89
|
],
|
|
98
|
-
|
|
99
90
|
"no-underscore-dangle": 0,
|
|
100
91
|
"no-unused-private-class-members": 2,
|
|
101
|
-
|
|
102
|
-
"no-unused-vars": [
|
|
103
|
-
2,
|
|
104
|
-
{
|
|
105
|
-
args: "none",
|
|
106
|
-
},
|
|
107
|
-
],
|
|
108
|
-
|
|
92
|
+
"no-unused-vars": [2, { args: "none" }],
|
|
109
93
|
"no-useless-escape": 2,
|
|
110
94
|
"object-curly-newline": 0,
|
|
111
95
|
"operator-linebreak": 0,
|
|
112
|
-
|
|
113
96
|
"padding-line-between-statements": [
|
|
114
97
|
2,
|
|
115
98
|
{
|
|
@@ -143,7 +126,6 @@ export default [
|
|
|
143
126
|
next: "cjs-export",
|
|
144
127
|
},
|
|
145
128
|
],
|
|
146
|
-
|
|
147
129
|
"prefer-destructuring": [
|
|
148
130
|
2,
|
|
149
131
|
{
|
|
@@ -151,14 +133,14 @@ export default [
|
|
|
151
133
|
object: true,
|
|
152
134
|
},
|
|
153
135
|
],
|
|
154
|
-
|
|
155
136
|
quotes: [0, "double"],
|
|
156
137
|
semi: [2, "always"],
|
|
138
|
+
|
|
157
139
|
"sonarjs/no-inverted-boolean-check": 2,
|
|
158
140
|
"sonarjs/prefer-immediate-return": 2,
|
|
159
141
|
"sonarjs/prefer-while": 2,
|
|
160
|
-
"unicorn/better-regex": 2,
|
|
161
142
|
|
|
143
|
+
"unicorn/better-regex": 2,
|
|
162
144
|
"unicorn/catch-error-name": [
|
|
163
145
|
2,
|
|
164
146
|
{
|
|
@@ -166,7 +148,6 @@ export default [
|
|
|
166
148
|
ignore: ["error"],
|
|
167
149
|
},
|
|
168
150
|
],
|
|
169
|
-
|
|
170
151
|
"unicorn/consistent-destructuring": 2,
|
|
171
152
|
"unicorn/consistent-existence-index-check": 0,
|
|
172
153
|
"unicorn/consistent-function-scoping": 0,
|
|
@@ -177,29 +158,34 @@ export default [
|
|
|
177
158
|
"unicorn/import-style": 0,
|
|
178
159
|
"unicorn/no-anonymous-default-export": 0,
|
|
179
160
|
"unicorn/no-array-callback-reference": 0,
|
|
180
|
-
|
|
181
161
|
"unicorn/no-array-reduce": [
|
|
182
162
|
2,
|
|
183
163
|
{
|
|
184
164
|
allowSimpleOperations: false,
|
|
185
165
|
},
|
|
186
166
|
],
|
|
187
|
-
|
|
188
167
|
"unicorn/no-nested-ternary": 0,
|
|
189
168
|
"unicorn/no-null": 0,
|
|
190
169
|
"unicorn/no-process-exit": 0,
|
|
191
|
-
"unicorn/no-useless-undefined": 0,
|
|
170
|
+
"unicorn/no-useless-undefined": 0, // TODO: enable
|
|
192
171
|
"unicorn/numeric-separators-style": 0,
|
|
193
|
-
"unicorn/prefer-add-event-listener": 0,
|
|
172
|
+
"unicorn/prefer-add-event-listener": 0, // TODO: enable
|
|
194
173
|
"unicorn/prefer-module": 0,
|
|
195
174
|
"unicorn/prefer-query-selector": 0,
|
|
196
|
-
"unicorn/prefer-set-has": 0,
|
|
197
|
-
"unicorn/prefer-spread": 0,
|
|
175
|
+
"unicorn/prefer-set-has": 0, // TODO: enable
|
|
176
|
+
"unicorn/prefer-spread": 0, // TODO: enable
|
|
198
177
|
"unicorn/prefer-switch": 0,
|
|
199
|
-
"unicorn/prefer-ternary": 0,
|
|
178
|
+
"unicorn/prefer-ternary": 0, // TODO: enable
|
|
200
179
|
"unicorn/prefer-top-level-await": 0,
|
|
201
180
|
"unicorn/prevent-abbreviations": 0,
|
|
202
181
|
"unicorn/switch-case-braces": 0,
|
|
182
|
+
// "unicorn/template-indent": [
|
|
183
|
+
// 2,
|
|
184
|
+
// {
|
|
185
|
+
// selectors: ["TemplateLiteral"],
|
|
186
|
+
// comments: ["sql"],
|
|
187
|
+
// },
|
|
188
|
+
// ],
|
|
203
189
|
|
|
204
190
|
"inker/enforce-import-name": [
|
|
205
191
|
2,
|
|
@@ -207,7 +193,6 @@ export default [
|
|
|
207
193
|
paths: [
|
|
208
194
|
{
|
|
209
195
|
name: "path",
|
|
210
|
-
|
|
211
196
|
importNames: [
|
|
212
197
|
{
|
|
213
198
|
imported: "namespace",
|
|
@@ -221,7 +206,6 @@ export default [
|
|
|
221
206
|
},
|
|
222
207
|
{
|
|
223
208
|
name: "date-fns",
|
|
224
|
-
|
|
225
209
|
importNames: [
|
|
226
210
|
{
|
|
227
211
|
imported: "format",
|
|
@@ -235,7 +219,6 @@ export default [
|
|
|
235
219
|
},
|
|
236
220
|
{
|
|
237
221
|
name: "joi",
|
|
238
|
-
|
|
239
222
|
importNames: [
|
|
240
223
|
{
|
|
241
224
|
imported: "default",
|
|
@@ -245,7 +228,6 @@ export default [
|
|
|
245
228
|
},
|
|
246
229
|
{
|
|
247
230
|
name: "lodash",
|
|
248
|
-
|
|
249
231
|
importNames: [
|
|
250
232
|
{
|
|
251
233
|
imported: "namespace",
|
|
@@ -260,7 +242,6 @@ export default [
|
|
|
260
242
|
],
|
|
261
243
|
},
|
|
262
244
|
],
|
|
263
|
-
|
|
264
245
|
"inker/no-true-as-default": 2,
|
|
265
246
|
|
|
266
247
|
"import/order": [
|
|
@@ -280,19 +261,23 @@ export default [
|
|
|
280
261
|
},
|
|
281
262
|
],
|
|
282
263
|
|
|
264
|
+
// "promise/catch-or-return": 2,
|
|
283
265
|
"promise/no-new-statics": 2,
|
|
284
266
|
"promise/no-return-wrap": 2,
|
|
285
267
|
"promise/param-names": 2,
|
|
286
268
|
"promise/prefer-await-to-then": 2,
|
|
287
269
|
"promise/valid-params": 2,
|
|
270
|
+
|
|
288
271
|
"you-dont-need-lodash-underscore/concat": 2,
|
|
289
272
|
"you-dont-need-lodash-underscore/drop": 2,
|
|
290
273
|
"you-dont-need-lodash-underscore/drop-right": 2,
|
|
291
274
|
"you-dont-need-lodash-underscore/fill": 2,
|
|
292
275
|
"you-dont-need-lodash-underscore/find": 2,
|
|
293
276
|
"you-dont-need-lodash-underscore/find-index": 2,
|
|
277
|
+
// "you-dont-need-lodash-underscore/from-pairs": 2,
|
|
294
278
|
"you-dont-need-lodash-underscore/index-of": 2,
|
|
295
279
|
"you-dont-need-lodash-underscore/is-array": 2,
|
|
280
|
+
// "you-dont-need-lodash-underscore/is-array-buffer": 2,
|
|
296
281
|
"you-dont-need-lodash-underscore/join": 2,
|
|
297
282
|
"you-dont-need-lodash-underscore/last-index-of": 2,
|
|
298
283
|
"you-dont-need-lodash-underscore/slice": 2,
|
|
@@ -302,15 +287,18 @@ export default [
|
|
|
302
287
|
"you-dont-need-lodash-underscore/includes": 2,
|
|
303
288
|
"you-dont-need-lodash-underscore/is-nil": 2,
|
|
304
289
|
"you-dont-need-lodash-underscore/map": 2,
|
|
290
|
+
// "you-dont-need-lodash-underscore/pluck": 2,
|
|
305
291
|
"you-dont-need-lodash-underscore/reduce": 2,
|
|
306
292
|
"you-dont-need-lodash-underscore/reduce-right": 2,
|
|
307
293
|
"you-dont-need-lodash-underscore/size": 2,
|
|
308
294
|
"you-dont-need-lodash-underscore/some": 2,
|
|
309
295
|
"you-dont-need-lodash-underscore/bind": 2,
|
|
296
|
+
// "you-dont-need-lodash-underscore/partial": 2,
|
|
310
297
|
"you-dont-need-lodash-underscore/is-finite": 2,
|
|
311
298
|
"you-dont-need-lodash-underscore/is-integer": 2,
|
|
312
299
|
"you-dont-need-lodash-underscore/is-nan": 2,
|
|
313
300
|
"you-dont-need-lodash-underscore/assign": 2,
|
|
301
|
+
// "you-dont-need-lodash-underscore/extend": 2,
|
|
314
302
|
"you-dont-need-lodash-underscore/keys": 2,
|
|
315
303
|
"you-dont-need-lodash-underscore/to-pairs": 2,
|
|
316
304
|
"you-dont-need-lodash-underscore/values": 2,
|
|
@@ -321,8 +309,9 @@ export default [
|
|
|
321
309
|
"you-dont-need-lodash-underscore/replace": 2,
|
|
322
310
|
"you-dont-need-lodash-underscore/split": 2,
|
|
323
311
|
"you-dont-need-lodash-underscore/starts-with": 2,
|
|
324
|
-
"
|
|
312
|
+
// "you-dont-need-lodash-underscore/template": 2,
|
|
325
313
|
|
|
314
|
+
"eslint-comments/no-unused-disable": 2,
|
|
326
315
|
"eslint-comments/no-use": [
|
|
327
316
|
2,
|
|
328
317
|
{
|