@cherepanov.pavel/shareable-config 1.0.13 → 1.0.15

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.
Files changed (50) hide show
  1. package/.editorconfig-get.js +12 -6
  2. package/.get-all.js +18 -12
  3. package/.gitattributes-get.js +12 -6
  4. package/.gitignore-get.js +28 -14
  5. package/.vscode/.code-snippets-get.js +28 -14
  6. package/.vscode/all-files.code-snippets +3 -1
  7. package/.vscode/extensions.json-get.js +26 -12
  8. package/.vscode/settings.json-get.js +26 -12
  9. package/.vscode/vue.code-snippets +1 -1
  10. package/env.json5.set.js +6 -2
  11. package/jsconfig.json +3 -1
  12. package/package.json +3 -3
  13. package/tools/eslint-config/configs/global.js +15 -9
  14. package/tools/eslint-config/configs/javascript.js +13 -7
  15. package/tools/eslint-config/configs/json.js +115 -57
  16. package/tools/eslint-config/configs/typescript.js +17 -9
  17. package/tools/eslint-config/configs/vue.js +41 -17
  18. package/tools/eslint-config/index.js +15 -5
  19. package/tools/eslint-config/rules/constants.js +1 -1
  20. package/tools/eslint-config/rules/javascript/index.js +6 -2
  21. package/tools/eslint-config/rules/javascript/possible-problems.js +193 -75
  22. package/tools/eslint-config/rules/javascript/suggestions.js +450 -225
  23. package/tools/eslint-config/rules/severity.js +3 -3
  24. package/tools/eslint-config/rules/stylistic/index.js +6 -2
  25. package/tools/eslint-config/rules/stylistic/jsFormatting.js +230 -148
  26. package/tools/eslint-config/rules/stylistic/tsFormatting.js +15 -5
  27. package/tools/eslint-config/rules/typescript/common.js +107 -103
  28. package/tools/eslint-config/rules/typescript/compatibility.js +23 -21
  29. package/tools/eslint-config/rules/typescript/extension.js +52 -46
  30. package/tools/eslint-config/rules/typescript/index.js +9 -3
  31. package/tools/eslint-config/rules/vue/base.js +9 -3
  32. package/tools/eslint-config/rules/vue/extension.js +60 -45
  33. package/tools/eslint-config/rules/vue/formatting.js +63 -35
  34. package/tools/eslint-config/rules/vue/index.js +15 -5
  35. package/tools/eslint-config/rules/vue/possibleProblems.js +272 -124
  36. package/tools/eslint-config/rules/vue/suggestions.js +228 -78
  37. package/tools/stylelint-config/config.js +17 -11
  38. package/tools/stylelint-config/rules/base.js +21 -19
  39. package/tools/stylelint-config/rules/conflicts.js +2 -2
  40. package/tools/stylelint-config/rules/order.js +25 -19
  41. package/tools/stylelint-config/rules/property-groups.js +339 -337
  42. package/tools/stylelint-config/rules/scss.js +6 -4
  43. package/tools/stylelint-config/rules/stylistic.js +84 -82
  44. package/utils/communication.js +3 -3
  45. package/utils/copy-with-override.js +31 -12
  46. package/utils/env.js +10 -6
  47. package/utils/file-header.js +10 -8
  48. package/utils/file.js +22 -14
  49. package/utils/lint.js +11 -3
  50. package/utils/merge.js +14 -12
@@ -1,80 +1,120 @@
1
- import { ERROR, OFF, WARN } from '../severity.js';
1
+ import {
2
+ ERROR, OFF, WARN,
3
+ } from "../severity.js";
2
4
 
3
5
  export const suggestionRules = {
4
- 'accessor-pairs': [ERROR],
5
- 'arrow-body-style': [
6
+ "accessor-pairs": [
6
7
  ERROR,
7
- 'always',
8
8
  ],
9
- 'block-scoped-var': [ERROR],
10
- 'camelcase': [
9
+ "arrow-body-style": [
11
10
  ERROR,
12
- { properties: 'never' },
11
+ "always",
13
12
  ],
14
- 'capitalized-comments': [
13
+ "block-scoped-var": [
14
+ ERROR,
15
+ ],
16
+ "camelcase": [
17
+ ERROR,
18
+ {
19
+ properties: "never",
20
+ },
21
+ ],
22
+ "capitalized-comments": [
15
23
  OFF,
16
- 'never',
24
+ "never",
17
25
  ],
18
- 'class-methods-use-this': [ERROR],
19
- 'complexity': [OFF],
20
- 'consistent-return': [OFF],
21
- 'consistent-this': [OFF],
22
- 'curly': [
26
+ "class-methods-use-this": [
23
27
  ERROR,
24
- 'all',
25
28
  ],
26
- 'default-case': [OFF],
27
- 'default-case-last': [ERROR],
28
- 'default-param-last': [ERROR],
29
- 'dot-notation': [ERROR],
30
- 'eqeqeq': [
29
+ "complexity": [
30
+ OFF,
31
+ ],
32
+ "consistent-return": [
33
+ OFF,
34
+ ],
35
+ "consistent-this": [
36
+ OFF,
37
+ ],
38
+ "curly": [
31
39
  ERROR,
32
- 'always',
33
- { null: 'always' },
40
+ "all",
34
41
  ],
35
- 'func-name-matching': [WARN],
36
- 'func-names': [
42
+ "default-case": [
43
+ OFF,
44
+ ],
45
+ "default-case-last": [
46
+ ERROR,
47
+ ],
48
+ "default-param-last": [
49
+ ERROR,
50
+ ],
51
+ "dot-notation": [
52
+ ERROR,
53
+ ],
54
+ "eqeqeq": [
55
+ ERROR,
56
+ "always",
57
+ {
58
+ null: "always",
59
+ },
60
+ ],
61
+ "func-name-matching": [
62
+ WARN,
63
+ ],
64
+ "func-names": [
37
65
  WARN,
38
- 'as-needed',
66
+ "as-needed",
39
67
  ],
40
- 'func-style': [
68
+ "func-style": [
41
69
  ERROR,
42
- 'declaration',
43
- { allowArrowFunctions: true },
70
+ "declaration",
71
+ {
72
+ allowArrowFunctions: true,
73
+ },
44
74
  ],
45
- 'grouped-accessor-pairs': [
75
+ "grouped-accessor-pairs": [
46
76
  ERROR,
47
- 'getBeforeSet',
77
+ "getBeforeSet",
48
78
  ],
49
- 'guard-for-in': [OFF],
50
- 'id-denylist': [OFF],
51
- 'id-length': [
79
+ "guard-for-in": [
80
+ OFF,
81
+ ],
82
+ "id-denylist": [
83
+ OFF,
84
+ ],
85
+ "id-length": [
52
86
  ERROR,
53
87
  {
54
88
  min: 2,
55
89
  exceptionPatterns: [
56
- 'sort',
57
- '^a$',
58
- '^b$',
59
- 'for',
60
- '^i$',
61
- '^j$',
90
+ "sort",
91
+ "^a$",
92
+ "^b$",
93
+ "for",
94
+ "^i$",
95
+ "^j$",
62
96
  ],
63
- properties: 'never',
97
+ properties: "never",
64
98
  },
65
99
  ],
66
- 'id-match': [OFF],
67
- 'init-declarations': [OFF],
68
- 'logical-assignment-operators': [
100
+ "id-match": [
101
+ OFF,
102
+ ],
103
+ "init-declarations": [
104
+ OFF,
105
+ ],
106
+ "logical-assignment-operators": [
69
107
  ERROR,
70
- 'always',
71
- { enforceForIfStatements: true },
108
+ "always",
109
+ {
110
+ enforceForIfStatements: true,
111
+ },
72
112
  ],
73
- 'max-classes-per-file': [
113
+ "max-classes-per-file": [
74
114
  ERROR,
75
115
  1,
76
116
  ],
77
- 'max-depth': [
117
+ "max-depth": [
78
118
  ERROR,
79
119
  4,
80
120
  ],
@@ -88,62 +128,108 @@ export const suggestionRules = {
88
128
  // skipBlankLines: true,
89
129
  // skipComments: true,
90
130
  // }],
91
- 'max-nested-callbacks': [
131
+ "max-nested-callbacks": [
92
132
  WARN,
93
- { max: 5 },
133
+ {
134
+ max: 5,
135
+ },
94
136
  ],
95
- 'max-params': [
137
+ "max-params": [
96
138
  WARN,
97
- { max: 5 },
139
+ {
140
+ max: 5,
141
+ },
98
142
  ],
99
- 'max-statements': [
143
+ "max-statements": [
100
144
  WARN,
101
- { max: 20 },
145
+ {
146
+ max: 20,
147
+ },
148
+ ],
149
+ "multiline-comment-style": [
150
+ OFF,
102
151
  ],
103
- 'multiline-comment-style': [OFF],
104
- 'new-cap': [
152
+ "new-cap": [
105
153
  ERROR,
106
154
  {
107
155
  capIsNew: true,
108
156
  newIsCap: true,
109
157
  },
110
158
  ],
111
- 'no-alert': [ERROR],
112
- 'no-array-constructor': [ERROR],
113
- 'no-bitwise': [ERROR],
114
- 'no-caller': [ERROR],
115
- 'no-case-declarations': [ERROR],
116
- 'no-console': [
159
+ "no-alert": [
160
+ ERROR,
161
+ ],
162
+ "no-array-constructor": [
163
+ ERROR,
164
+ ],
165
+ "no-bitwise": [
166
+ ERROR,
167
+ ],
168
+ "no-caller": [
169
+ ERROR,
170
+ ],
171
+ "no-case-declarations": [
172
+ ERROR,
173
+ ],
174
+ "no-console": [
117
175
  WARN,
118
176
  {
119
177
  allow: [
120
- 'warn',
121
- 'error',
122
- 'info',
178
+ "warn",
179
+ "error",
180
+ "info",
123
181
  ],
124
182
  },
125
183
  ],
126
- 'no-continue': [ERROR],
127
- 'no-delete-var': [ERROR],
128
- 'no-div-regex': [ERROR],
129
- 'no-else-return': [
184
+ "no-continue": [
185
+ ERROR,
186
+ ],
187
+ "no-delete-var": [
188
+ ERROR,
189
+ ],
190
+ "no-div-regex": [
191
+ ERROR,
192
+ ],
193
+ "no-else-return": [
194
+ ERROR,
195
+ {
196
+ allowElseIf: false,
197
+ },
198
+ ],
199
+ "no-empty": [
130
200
  ERROR,
131
- { allowElseIf: false },
201
+ {
202
+ allowEmptyCatch: true,
203
+ },
132
204
  ],
133
- 'no-empty': [
205
+ "no-empty-function": [
134
206
  ERROR,
135
- { allowEmptyCatch: true },
136
207
  ],
137
- 'no-empty-function': [ERROR],
138
- 'no-empty-static-block': [ERROR],
139
- 'no-eq-null': [OFF],
140
- 'no-eval': [ERROR],
141
- 'no-extend-native': [ERROR],
142
- 'no-extra-bind': [ERROR],
143
- 'no-extra-boolean-cast': [ERROR],
144
- 'no-extra-label': [ERROR],
145
- 'no-global-assign': [ERROR],
146
- 'no-implicit-coercion': [
208
+ "no-empty-static-block": [
209
+ ERROR,
210
+ ],
211
+ "no-eq-null": [
212
+ OFF,
213
+ ],
214
+ "no-eval": [
215
+ ERROR,
216
+ ],
217
+ "no-extend-native": [
218
+ ERROR,
219
+ ],
220
+ "no-extra-bind": [
221
+ ERROR,
222
+ ],
223
+ "no-extra-boolean-cast": [
224
+ ERROR,
225
+ ],
226
+ "no-extra-label": [
227
+ ERROR,
228
+ ],
229
+ "no-global-assign": [
230
+ ERROR,
231
+ ],
232
+ "no-implicit-coercion": [
147
233
  ERROR,
148
234
  {
149
235
  boolean: true,
@@ -151,140 +237,214 @@ export const suggestionRules = {
151
237
  string: true,
152
238
  },
153
239
  ],
154
- 'no-implicit-globals': [OFF],
155
- 'no-implied-eval': [ERROR],
156
- 'no-inline-comments': [OFF],
157
- 'no-invalid-this': [ERROR],
158
- 'no-iterator': [ERROR],
159
- 'no-label-var': [ERROR],
160
- 'no-labels': [
161
- ERROR,
162
- { allowLoop: false, allowSwitch: false },
163
- ],
164
- 'no-lone-blocks': [ERROR],
165
- 'no-lonely-if': [ERROR],
166
- 'no-loop-func': [ERROR],
167
- 'no-magic-numbers': [OFF],
168
- 'no-multi-assign': [ERROR],
169
- 'no-multi-str': [ERROR],
170
- 'no-negated-condition': [ERROR],
171
- 'no-nested-ternary': [ERROR],
172
- 'no-new': [ERROR],
173
- 'no-new-func': [ERROR],
174
- 'no-new-object': [ERROR],
175
- 'no-new-wrappers': [ERROR],
176
- 'no-nonoctal-decimal-escape': [ERROR],
177
- 'no-octal': [ERROR],
178
- 'no-octal-escape': [ERROR],
179
- 'no-param-reassign': [
240
+ "no-implicit-globals": [
241
+ OFF,
242
+ ],
243
+ "no-implied-eval": [
244
+ ERROR,
245
+ ],
246
+ "no-inline-comments": [
247
+ OFF,
248
+ ],
249
+ "no-invalid-this": [
250
+ ERROR,
251
+ ],
252
+ "no-iterator": [
253
+ ERROR,
254
+ ],
255
+ "no-label-var": [
256
+ ERROR,
257
+ ],
258
+ "no-labels": [
259
+ ERROR,
260
+ {
261
+ allowLoop: false,
262
+ allowSwitch: false,
263
+ },
264
+ ],
265
+ "no-lone-blocks": [
266
+ ERROR,
267
+ ],
268
+ "no-lonely-if": [
269
+ ERROR,
270
+ ],
271
+ "no-loop-func": [
272
+ ERROR,
273
+ ],
274
+ "no-magic-numbers": [
275
+ OFF,
276
+ ],
277
+ "no-multi-assign": [
278
+ ERROR,
279
+ ],
280
+ "no-multi-str": [
281
+ ERROR,
282
+ ],
283
+ "no-negated-condition": [
284
+ ERROR,
285
+ ],
286
+ "no-nested-ternary": [
287
+ ERROR,
288
+ ],
289
+ "no-new": [
290
+ ERROR,
291
+ ],
292
+ "no-new-func": [
293
+ ERROR,
294
+ ],
295
+ "no-new-object": [
296
+ ERROR,
297
+ ],
298
+ "no-new-wrappers": [
299
+ ERROR,
300
+ ],
301
+ "no-nonoctal-decimal-escape": [
302
+ ERROR,
303
+ ],
304
+ "no-octal": [
305
+ ERROR,
306
+ ],
307
+ "no-octal-escape": [
308
+ ERROR,
309
+ ],
310
+ "no-param-reassign": [
180
311
  ERROR,
181
312
  {
182
313
  props: true,
183
314
  },
184
315
  ],
185
- 'no-plusplus': [
316
+ "no-plusplus": [
317
+ ERROR,
318
+ {
319
+ allowForLoopAfterthoughts: true,
320
+ },
321
+ ],
322
+ "no-proto": [
323
+ ERROR,
324
+ ],
325
+ "no-redeclare": [
186
326
  ERROR,
187
- { allowForLoopAfterthoughts: true },
327
+ {
328
+ builtinGlobals: true,
329
+ },
188
330
  ],
189
- 'no-proto': [ERROR],
190
- 'no-redeclare': [
331
+ "no-regex-spaces": [
191
332
  ERROR,
192
- { builtinGlobals: true },
193
333
  ],
194
- 'no-regex-spaces': [ERROR],
195
- 'no-restricted-exports': [
334
+ "no-restricted-exports": [
196
335
  ERROR,
197
336
  {
198
337
  restrictedNamedExports: [
199
- 'default', // use `export default` to provide a default export
200
- 'then', // this will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions
338
+ "default", // use `export default` to provide a default export
339
+ "then", // this will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions
201
340
  ],
202
341
  },
203
342
  ],
204
- 'no-restricted-imports': [
343
+ "no-restricted-imports": [
205
344
  OFF,
206
- { paths: [], patterns: [] },
345
+ {
346
+ paths: [],
347
+ patterns: [],
348
+ },
207
349
  ],
208
- 'no-restricted-properties': [
350
+ "no-restricted-properties": [
209
351
  ERROR,
210
352
  {
211
- object: 'arguments',
212
- property: 'callee',
213
- message: 'arguments.callee is deprecated',
353
+ object: "arguments",
354
+ property: "callee",
355
+ message: "arguments.callee is deprecated",
214
356
  },
215
357
  {
216
- object: 'global',
217
- property: 'isFinite',
218
- message: 'Please use Number.isFinite instead',
358
+ object: "global",
359
+ property: "isFinite",
360
+ message: "Please use Number.isFinite instead",
219
361
  },
220
362
  {
221
- object: 'self',
222
- property: 'isFinite',
223
- message: 'Please use Number.isFinite instead',
363
+ object: "self",
364
+ property: "isFinite",
365
+ message: "Please use Number.isFinite instead",
224
366
  },
225
367
  {
226
- object: 'window',
227
- property: 'isFinite',
228
- message: 'Please use Number.isFinite instead',
368
+ object: "window",
369
+ property: "isFinite",
370
+ message: "Please use Number.isFinite instead",
229
371
  },
230
372
  {
231
- object: 'global',
232
- property: 'isNaN',
233
- message: 'Please use Number.isNaN instead',
373
+ object: "global",
374
+ property: "isNaN",
375
+ message: "Please use Number.isNaN instead",
234
376
  },
235
377
  {
236
- object: 'self',
237
- property: 'isNaN',
238
- message: 'Please use Number.isNaN instead',
378
+ object: "self",
379
+ property: "isNaN",
380
+ message: "Please use Number.isNaN instead",
239
381
  },
240
382
  {
241
- object: 'window',
242
- property: 'isNaN',
243
- message: 'Please use Number.isNaN instead',
383
+ object: "window",
384
+ property: "isNaN",
385
+ message: "Please use Number.isNaN instead",
244
386
  },
245
387
  {
246
- property: '__defineGetter__',
247
- message: 'Please use Object.defineProperty instead.',
388
+ property: "__defineGetter__",
389
+ message: "Please use Object.defineProperty instead.",
248
390
  },
249
391
  {
250
- property: '__defineSetter__',
251
- message: 'Please use Object.defineProperty instead.',
392
+ property: "__defineSetter__",
393
+ message: "Please use Object.defineProperty instead.",
252
394
  },
253
395
  {
254
- object: 'Math',
255
- property: 'pow',
256
- message: 'Use the exponentiation operator (**) instead.',
396
+ object: "Math",
397
+ property: "pow",
398
+ message: "Use the exponentiation operator (**) instead.",
257
399
  },
258
400
  ],
259
- 'no-restricted-syntax': [
401
+ "no-restricted-syntax": [
260
402
  ERROR,
261
403
  {
262
- selector: 'ForInStatement',
263
- message: 'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
404
+ selector: "ForInStatement",
405
+ message: "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.",
264
406
  },
265
407
  {
266
- selector: 'LabeledStatement',
267
- message: 'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.',
408
+ selector: "LabeledStatement",
409
+ message: "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.",
268
410
  },
269
411
  {
270
- selector: 'WithStatement',
271
- message: '`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
412
+ selector: "WithStatement",
413
+ message: "`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",
272
414
  },
273
415
  ],
274
- 'no-return-assign': [
416
+ "no-return-assign": [
275
417
  ERROR,
276
- 'always',
418
+ "always",
277
419
  ],
278
- 'no-return-await': [ERROR],
279
- 'no-script-url': [ERROR],
280
- 'no-sequences': [ERROR],
281
- 'no-shadow': [OFF],
282
- 'no-shadow-restricted-names': [ERROR],
283
- 'no-ternary': [OFF],
284
- 'no-throw-literal': [ERROR],
285
- 'no-undef-init': [ERROR],
286
- 'no-undefined': [OFF],
287
- 'no-underscore-dangle': [
420
+ "no-return-await": [
421
+ ERROR,
422
+ ],
423
+ "no-script-url": [
424
+ ERROR,
425
+ ],
426
+ "no-sequences": [
427
+ ERROR,
428
+ ],
429
+ "no-shadow": [
430
+ OFF,
431
+ ],
432
+ "no-shadow-restricted-names": [
433
+ ERROR,
434
+ ],
435
+ "no-ternary": [
436
+ OFF,
437
+ ],
438
+ "no-throw-literal": [
439
+ ERROR,
440
+ ],
441
+ "no-undef-init": [
442
+ ERROR,
443
+ ],
444
+ "no-undefined": [
445
+ OFF,
446
+ ],
447
+ "no-underscore-dangle": [
288
448
  ERROR,
289
449
  {
290
450
  allow: [],
@@ -294,13 +454,13 @@ export const suggestionRules = {
294
454
  allowInObjectDestructuring: false,
295
455
  },
296
456
  ],
297
- 'no-unneeded-ternary': [
457
+ "no-unneeded-ternary": [
298
458
  ERROR,
299
459
  {
300
460
  defaultAssignment: false,
301
461
  },
302
462
  ],
303
- 'no-unused-expressions': [
463
+ "no-unused-expressions": [
304
464
  ERROR,
305
465
  {
306
466
  allowShortCircuit: false,
@@ -308,17 +468,31 @@ export const suggestionRules = {
308
468
  allowTaggedTemplates: false,
309
469
  },
310
470
  ],
311
- 'no-unused-labels': [ERROR],
312
- 'no-useless-call': [WARN],
313
- 'no-useless-catch': [ERROR],
314
- 'no-useless-computed-key': [
471
+ "no-unused-labels": [
472
+ ERROR,
473
+ ],
474
+ "no-useless-call": [
475
+ WARN,
476
+ ],
477
+ "no-useless-catch": [
478
+ ERROR,
479
+ ],
480
+ "no-useless-computed-key": [
481
+ ERROR,
482
+ {
483
+ enforceForClassMembers: true,
484
+ },
485
+ ],
486
+ "no-useless-concat": [
487
+ ERROR,
488
+ ],
489
+ "no-useless-constructor": [
490
+ ERROR,
491
+ ],
492
+ "no-useless-escape": [
315
493
  ERROR,
316
- { enforceForClassMembers: true },
317
494
  ],
318
- 'no-useless-concat': [ERROR],
319
- 'no-useless-constructor': [ERROR],
320
- 'no-useless-escape': [ERROR],
321
- 'no-useless-rename': [
495
+ "no-useless-rename": [
322
496
  ERROR,
323
497
  {
324
498
  ignoreImport: false,
@@ -326,45 +500,54 @@ export const suggestionRules = {
326
500
  ignoreDestructuring: false,
327
501
  },
328
502
  ],
329
- 'no-useless-return': [ERROR],
330
- 'no-var': [ERROR],
331
- 'no-void': [
503
+ "no-useless-return": [
504
+ ERROR,
505
+ ],
506
+ "no-var": [
332
507
  ERROR,
333
- { allowAsStatement: true },
334
508
  ],
335
- 'no-warning-comments': [OFF],
336
- 'no-with': [ERROR],
337
- 'object-shorthand': [
509
+ "no-void": [
338
510
  ERROR,
339
- 'always',
340
511
  {
341
- avoidQuotes: true,
342
- ignoreConstructors: false,
512
+ allowAsStatement: true,
343
513
  },
344
514
  ],
345
- 'one-var': [
515
+ "no-warning-comments": [
516
+ OFF,
517
+ ],
518
+ "no-with": [
346
519
  ERROR,
347
- 'never',
348
520
  ],
349
- 'operator-assignment': [
521
+ "object-shorthand": [
350
522
  ERROR,
351
- 'always',
523
+ "always",
524
+ {
525
+ ignoreConstructors: true,
526
+ },
352
527
  ],
353
- 'prefer-arrow-callback': [
528
+ "one-var": [
529
+ ERROR,
530
+ "never",
531
+ ],
532
+ "operator-assignment": [
533
+ ERROR,
534
+ "always",
535
+ ],
536
+ "prefer-arrow-callback": [
354
537
  ERROR,
355
538
  {
356
539
  allowNamedFunctions: false,
357
540
  allowUnboundThis: true,
358
541
  },
359
542
  ],
360
- 'prefer-const': [
543
+ "prefer-const": [
361
544
  ERROR,
362
545
  {
363
- destructuring: 'any',
546
+ destructuring: "any",
364
547
  ignoreReadBeforeAssign: true,
365
548
  },
366
549
  ],
367
- 'prefer-destructuring': [
550
+ "prefer-destructuring": [
368
551
  ERROR,
369
552
  {
370
553
  array: false,
@@ -374,37 +557,79 @@ export const suggestionRules = {
374
557
  enforceForRenamedProperties: false,
375
558
  },
376
559
  ],
377
- 'prefer-exponentiation-operator': [ERROR],
378
- 'prefer-named-capture-group': [OFF],
379
- 'prefer-numeric-literals': [ERROR],
380
- 'prefer-object-has-own': [ERROR],
381
- 'prefer-object-spread': [ERROR],
382
- 'prefer-promise-reject-errors': [ERROR],
383
- 'prefer-regex-literals': [
384
- ERROR,
385
- { disallowRedundantWrapping: true },
386
- ],
387
- 'prefer-rest-params': [ERROR],
388
- 'prefer-spread': [ERROR],
389
- 'prefer-template': [ERROR],
390
- 'radix': [ERROR],
391
- 'require-await': [OFF],
392
- 'require-unicode-regexp': [WARN],
393
- 'require-yield': [ERROR],
394
- 'sort-imports': [OFF],
395
- 'sort-keys': [OFF],
396
- 'sort-vars': [OFF],
397
- 'strict': [
398
- ERROR,
399
- 'never',
400
- ],
401
- 'symbol-description': [ERROR],
402
- 'vars-on-top': [ERROR],
403
- 'yoda': [ERROR],
560
+ "prefer-exponentiation-operator": [
561
+ ERROR,
562
+ ],
563
+ "prefer-named-capture-group": [
564
+ OFF,
565
+ ],
566
+ "prefer-numeric-literals": [
567
+ ERROR,
568
+ ],
569
+ "prefer-object-has-own": [
570
+ ERROR,
571
+ ],
572
+ "prefer-object-spread": [
573
+ ERROR,
574
+ ],
575
+ "prefer-promise-reject-errors": [
576
+ ERROR,
577
+ ],
578
+ "prefer-regex-literals": [
579
+ ERROR,
580
+ {
581
+ disallowRedundantWrapping: true,
582
+ },
583
+ ],
584
+ "prefer-rest-params": [
585
+ ERROR,
586
+ ],
587
+ "prefer-spread": [
588
+ ERROR,
589
+ ],
590
+ "prefer-template": [
591
+ ERROR,
592
+ ],
593
+ "radix": [
594
+ ERROR,
595
+ ],
596
+ "require-await": [
597
+ OFF,
598
+ ],
599
+ "require-unicode-regexp": [
600
+ WARN,
601
+ ],
602
+ "require-yield": [
603
+ ERROR,
604
+ ],
605
+ "sort-imports": [
606
+ OFF,
607
+ ],
608
+ "sort-keys": [
609
+ OFF,
610
+ ],
611
+ "sort-vars": [
612
+ OFF,
613
+ ],
614
+ "strict": [
615
+ ERROR,
616
+ "never",
617
+ ],
618
+ "symbol-description": [
619
+ ERROR,
620
+ ],
621
+ "vars-on-top": [
622
+ ERROR,
623
+ ],
624
+ "yoda": [
625
+ ERROR,
626
+ ],
404
627
 
405
- 'line-comment-position': [OFF],
406
- 'unicode-bom': [
628
+ "line-comment-position": [
629
+ OFF,
630
+ ],
631
+ "unicode-bom": [
407
632
  ERROR,
408
- 'never',
633
+ "never",
409
634
  ],
410
635
  };