@eslinted/defaults 12.10.0 → 12.11.0

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 (73) hide show
  1. package/dist/index.d.ts +99 -912
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/rules/index.d.ts +99 -492
  4. package/dist/rules/index.d.ts.map +1 -1
  5. package/dist/rules/scopes/enable.d.ts +0 -2
  6. package/dist/rules/scopes/enable.d.ts.map +1 -1
  7. package/dist/rules/scopes/enable.js +0 -3
  8. package/dist/rules/scopes/enable.js.map +1 -1
  9. package/dist/rules/scopes/enable.style.d.ts +24 -134
  10. package/dist/rules/scopes/enable.style.d.ts.map +1 -1
  11. package/dist/rules/scopes/enable.style.js +22 -192
  12. package/dist/rules/scopes/enable.style.js.map +1 -1
  13. package/dist/rules/scopes/index.d.ts +24 -136
  14. package/dist/rules/scopes/index.d.ts.map +1 -1
  15. package/dist/rules/scopes/json/index.d.ts +7 -20
  16. package/dist/rules/scopes/json/index.d.ts.map +1 -1
  17. package/dist/rules/scopes/json/plugin/extension.d.ts +7 -20
  18. package/dist/rules/scopes/json/plugin/extension.d.ts.map +1 -1
  19. package/dist/rules/scopes/json/plugin/extension.js +7 -41
  20. package/dist/rules/scopes/json/plugin/extension.js.map +1 -1
  21. package/dist/rules/scopes/mocha/chai/index.d.ts +0 -2
  22. package/dist/rules/scopes/mocha/chai/index.d.ts.map +1 -1
  23. package/dist/rules/scopes/mocha/chai/index.js +0 -2
  24. package/dist/rules/scopes/mocha/chai/index.js.map +1 -1
  25. package/dist/rules/scopes/mocha/enable.d.ts +3 -10
  26. package/dist/rules/scopes/mocha/enable.d.ts.map +1 -1
  27. package/dist/rules/scopes/mocha/enable.js +3 -19
  28. package/dist/rules/scopes/mocha/enable.js.map +1 -1
  29. package/dist/rules/scopes/mocha/index.d.ts +3 -12
  30. package/dist/rules/scopes/mocha/index.d.ts.map +1 -1
  31. package/dist/rules/scopes/svelte/enable.d.ts +19 -91
  32. package/dist/rules/scopes/svelte/enable.d.ts.map +1 -1
  33. package/dist/rules/scopes/svelte/enable.js +20 -153
  34. package/dist/rules/scopes/svelte/enable.js.map +1 -1
  35. package/dist/rules/scopes/svelte/extension/index.d.ts +2 -7
  36. package/dist/rules/scopes/svelte/extension/index.d.ts.map +1 -1
  37. package/dist/rules/scopes/svelte/extension/index.js +2 -11
  38. package/dist/rules/scopes/svelte/extension/index.js.map +1 -1
  39. package/dist/rules/scopes/svelte/index.d.ts +21 -98
  40. package/dist/rules/scopes/svelte/index.d.ts.map +1 -1
  41. package/dist/rules/scopes/ts/enable.d.ts +31 -163
  42. package/dist/rules/scopes/ts/enable.d.ts.map +1 -1
  43. package/dist/rules/scopes/ts/enable.js +32 -380
  44. package/dist/rules/scopes/ts/enable.js.map +1 -1
  45. package/dist/rules/scopes/ts/extension/index.d.ts +1 -20
  46. package/dist/rules/scopes/ts/extension/index.d.ts.map +1 -1
  47. package/dist/rules/scopes/ts/extension/index.js +2 -25
  48. package/dist/rules/scopes/ts/extension/index.js.map +1 -1
  49. package/dist/rules/scopes/ts/index.d.ts +32 -183
  50. package/dist/rules/scopes/ts/index.d.ts.map +1 -1
  51. package/dist/rules/scopes/yml/index.d.ts +12 -43
  52. package/dist/rules/scopes/yml/index.d.ts.map +1 -1
  53. package/dist/rules/scopes/yml/plugin/extension.d.ts +5 -22
  54. package/dist/rules/scopes/yml/plugin/extension.d.ts.map +1 -1
  55. package/dist/rules/scopes/yml/plugin/extension.js +5 -36
  56. package/dist/rules/scopes/yml/plugin/extension.js.map +1 -1
  57. package/dist/rules/scopes/yml/plugin/index.d.ts +7 -21
  58. package/dist/rules/scopes/yml/plugin/index.d.ts.map +1 -1
  59. package/dist/rules/scopes/yml/plugin/index.js +8 -44
  60. package/dist/rules/scopes/yml/plugin/index.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/rules/scopes/enable.style.ts +41 -239
  63. package/src/rules/scopes/enable.ts +0 -11
  64. package/src/rules/scopes/json/plugin/extension.ts +9 -47
  65. package/src/rules/scopes/mocha/chai/index.ts +0 -2
  66. package/src/rules/scopes/mocha/enable.ts +3 -19
  67. package/src/rules/scopes/svelte/disable.ts +1 -1
  68. package/src/rules/scopes/svelte/enable.ts +22 -157
  69. package/src/rules/scopes/svelte/extension/index.ts +1 -11
  70. package/src/rules/scopes/ts/enable.ts +34 -424
  71. package/src/rules/scopes/ts/extension/index.ts +2 -27
  72. package/src/rules/scopes/yml/plugin/extension.ts +4 -37
  73. package/src/rules/scopes/yml/plugin/index.ts +8 -58
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/defaults",
6
- "version": "12.10.0",
6
+ "version": "12.11.0",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "private": false,
9
9
  "engineStrict": true,
@@ -3,7 +3,6 @@ import {
3
3
  // OFF,
4
4
  WARN,
5
5
  ON,
6
- all,
7
6
  always_multiline,
8
7
  always,
9
8
  as_needed,
@@ -12,7 +11,6 @@ import {
12
11
  consistent,
13
12
  double,
14
13
  inside,
15
- last,
16
14
  never,
17
15
  wildcard,
18
16
  } from "../_strings";
@@ -72,44 +70,18 @@ export const EnableStyle = {
72
70
  ON,
73
71
  2 /* tab | number | @default 4 */,
74
72
  {
75
- // ignoredNodes: [],
76
- SwitchCase: 1,
77
73
  VariableDeclarator: {
78
74
  "var": 0,
79
75
  let: 0,
80
76
  "const": 0,
81
77
  },
82
78
  outerIIFEBody: 0,
83
- // MemberExpression: 1,
84
- // FunctionDeclaration: {
85
- // parameters: 1,
86
- // body: 1,
87
- // returnType: 1,
88
- // },
89
- // FunctionExpression: {
90
- // parameters: 1,
91
- // body: 1,
92
- // returnType: 1,
93
- // },
94
- // StaticBlock: {
95
- // body: 1,
96
- // },
97
- // CallExpression: {
98
- // arguments: 1,
99
- // },
100
- // ArrayExpression: 1,
101
- // ObjectExpression: 1,
102
- // ImportDeclaration: 1,
103
- // flatTernaryExpressions: false,
104
79
  offsetTernaryExpressions: true,
105
- // offsetTernaryExpressionsOffsetCallExpressions: true,
106
- // ignoreComments: false,
107
- tabLength: 2 /* @default 4 */,
108
80
  },
109
81
  ],
110
82
  "@stylistic/indent-binary-ops": [
111
83
  ON,
112
- 2,
84
+ 2 /* MUST be same as `@stylistic/indent`[1] */,
113
85
  ],
114
86
  "@stylistic/key-spacing": ON,
115
87
  "@stylistic/keyword-spacing": ON,
@@ -136,16 +108,12 @@ export const EnableStyle = {
136
108
  },
137
109
  ],
138
110
  },
139
- {
140
- exceptAfterSingleLine: false,
141
- exceptAfterOverload: true /* TS-only */,
142
- },
143
111
  ],
144
112
  "@stylistic/max-len": [
145
113
  ON,
146
114
  {
147
- code: 300,
148
- tabWidth: 2,
115
+ code: 300 /* @default 80 */,
116
+ // tabWidth: 4,
149
117
  ignoreComments: true,
150
118
  ignoreTrailingComments: true,
151
119
  ignoreUrls: true,
@@ -154,61 +122,17 @@ export const EnableStyle = {
154
122
  ignoreRegExpLiterals: true,
155
123
  },
156
124
  ],
157
- "@stylistic/max-statements-per-line": [
158
- ON,
159
- {
160
- max: 1,
161
- },
162
- ],
163
- "@stylistic/member-delimiter-style": [
164
- ON,
165
- {
166
- multiline: {
167
- delimiter: "semi",
168
- requireLast: true,
169
- },
170
- singleline: {
171
- delimiter: "semi",
172
- requireLast: false,
173
- },
174
- multilineDetection: "brackets",
175
- },
176
- ],
125
+ "@stylistic/max-statements-per-line": ON,
126
+ "@stylistic/member-delimiter-style": ON,
177
127
  // "@stylistic/multiline-comment-style": OFF,
178
128
  "@stylistic/multiline-ternary": [
179
129
  ON,
180
- always_multiline,
130
+ always_multiline /* never | always-multiline | @default always */,
181
131
  ],
182
132
  // "@stylistic/new-parens": OFF,
183
- "@stylistic/newline-per-chained-call": [
184
- ON,
185
- {
186
- ignoreChainWithDepth: 2,
187
- },
188
- ],
133
+ "@stylistic/newline-per-chained-call": ON,
189
134
  // "@stylistic/no-confusing-arrow": OFF,
190
- "@stylistic/no-extra-parens": [
191
- ON,
192
- all,
193
- {
194
- conditionalAssign: true,
195
- returnAssign: true,
196
- nestedBinaryExpressions: true,
197
- ternaryOperandBinaryExpressions: true,
198
- // ignoreJSX: "none" /* all | multi-line | single-line | @default: none */,
199
- enforceForArrowConditionals: true,
200
- enforceForSequenceExpressions: true,
201
- enforceForNewInMemberExpressions: true,
202
- enforceForFunctionPrototypeMethods: true,
203
- // allowParensAfterCommentPattern: "" /* regex */,
204
- nestedConditionalExpressions: true,
205
- allowNodesInSpreadElement: {
206
- ConditionalExpression: false,
207
- LogicalExpression: false,
208
- AwaitExpression: false,
209
- } /* @default: all true */,
210
- },
211
- ],
135
+ "@stylistic/no-extra-parens": ON,
212
136
  "@stylistic/no-extra-semi": ON,
213
137
  "@stylistic/no-floating-decimal": ON,
214
138
  // "@stylistic/no-mixed-operators": OFF,
@@ -216,107 +140,51 @@ export const EnableStyle = {
216
140
  "@stylistic/no-multi-spaces": [
217
141
  ON,
218
142
  {
219
- ignoreEOLComments: false /* @OVERRIDE */,
220
143
  exceptions: {
221
- Property: false /* @OVERRIDE */,
222
- ImportAttributes: false /* @OVERRIDE */,
144
+ Property: false,
145
+ ImportAttributes: false,
223
146
  },
224
- includeTabs: true /* @OVERRIDE */,
225
147
  },
226
148
  ],
227
149
  "@stylistic/no-multiple-empty-lines": [
228
150
  ON,
229
151
  {
230
- max: 1,
152
+ max: 1 /* @default 2 */,
231
153
  maxBOF: 0,
232
154
  maxEOF: 0 /* combine with `eol-last` to ensure file still ends with a single line-break (eol character) */,
233
155
  },
234
156
  ],
235
- "@stylistic/no-tabs": [
236
- ON,
237
- {
238
- allowIndentationTabs: false,
239
- },
240
- ],
241
- "@stylistic/no-trailing-spaces": [
242
- ON,
243
- {
244
- skipBlankLines: false,
245
- ignoreComments: false,
246
- },
247
- ],
157
+ "@stylistic/no-tabs": ON,
158
+ "@stylistic/no-trailing-spaces": ON,
248
159
  "@stylistic/no-whitespace-before-property": ON,
249
160
  "@stylistic/nonblock-statement-body-position": [
250
161
  ON,
251
- below,
252
- {
253
- overrides: {
254
- } /* if | else | while | do | for */,
255
- },
162
+ below /* any | below | @default beside */,
256
163
  ],
257
164
  "@stylistic/object-curly-newline": [
258
165
  ON,
259
166
  {
260
- ObjectExpression: {
261
- consistent: true,
262
- multiline: true,
263
- minProperties: 3,
264
- },
265
- ObjectPattern: {
266
- consistent: true,
267
- multiline: true,
268
- minProperties: 3,
269
- },
270
- ImportDeclaration: {
271
- consistent: true,
272
- multiline: true,
273
- minProperties: 3,
274
- },
275
- ExportDeclaration: {
276
- consistent: true,
277
- multiline: true,
278
- minProperties: 3,
279
- },
280
- TSTypeLiteral: {
281
- consistent: true,
282
- multiline: true,
283
- minProperties: 3,
284
- },
285
- TSInterfaceBody: {
286
- consistent: true,
287
- multiline: true,
288
- minProperties: 3,
289
- },
290
- TSEnumBody: {
291
- consistent: true,
292
- multiline: true,
293
- minProperties: 3,
294
- },
167
+ consistent: true,
168
+ multiline: true,
169
+ minProperties: 3,
295
170
  },
296
171
  ],
297
172
  "@stylistic/object-curly-spacing": [
298
173
  ON,
299
- always,
300
- {
301
- arraysInObjects: true,
302
- objectsInObjects: true,
303
- },
174
+ always /* always | @default never */,
304
175
  ],
305
176
  "@stylistic/object-property-newline": ON,
306
177
  "@stylistic/one-var-declaration-per-line": [
307
178
  ON,
308
- always,
179
+ always /* always | @default initializations */,
309
180
  ],
310
181
  "@stylistic/operator-linebreak": [
311
182
  ON,
312
- before,
313
- {
314
- overrides: {} /* e.g., = | ? | : | @default: { "?": "before", ":": "before" } */,
315
- },
183
+ before /* ignore | none | before | @default after */,
316
184
  ],
317
185
  "@stylistic/padded-blocks": [
318
186
  ON,
319
- never /* @OVERRIDE || { blocks, classes, switches } */,
187
+ never /* never | start | end | @default always */,
320
188
  {
321
189
  allowSingleLineBlocks: true,
322
190
  },
@@ -375,7 +243,7 @@ export const EnableStyle = {
375
243
  next: wildcard,
376
244
  },
377
245
  // #endregion
378
- // #region < Block >
246
+ // #region <Block>
379
247
  {
380
248
  blankLine: always,
381
249
  prev: [
@@ -425,7 +293,7 @@ export const EnableStyle = {
425
293
  ],
426
294
  },
427
295
  // #endregion
428
- // #region Declaration >
296
+ // #region Declaration>
429
297
  {
430
298
  blankLine: never,
431
299
  prev: "interface",
@@ -444,7 +312,7 @@ export const EnableStyle = {
444
312
  ],
445
313
  },
446
314
  // #endregion
447
- // #region < =[]
315
+ // #region <=[]
448
316
  {
449
317
  blankLine: always,
450
318
  prev: [
@@ -467,7 +335,7 @@ export const EnableStyle = {
467
335
  ],
468
336
  },
469
337
  // #endregion
470
- // #region Import[] >
338
+ // #region Import[]>
471
339
  {
472
340
  blankLine: always,
473
341
  prev: [
@@ -488,7 +356,7 @@ export const EnableStyle = {
488
356
  ],
489
357
  },
490
358
  // #endregion
491
- // #region < Export[] >
359
+ // #region <Export[]>
492
360
  {
493
361
  blankLine: always,
494
362
  prev: [
@@ -525,7 +393,7 @@ export const EnableStyle = {
525
393
  ],
526
394
  },
527
395
  // #endregion
528
- // #region < Return >
396
+ // #region <Return>
529
397
  {
530
398
  blankLine: always,
531
399
  prev: [
@@ -553,78 +421,30 @@ export const EnableStyle = {
553
421
  as_needed,
554
422
  {
555
423
  keywords: true,
556
- unnecessary: true,
557
- numbers: false,
558
424
  },
559
425
  ],
560
426
  "@stylistic/quotes": [
561
427
  ON,
562
- double,
428
+ double /* @default double */,
563
429
  {
564
430
  avoidEscape: true,
565
- allowTemplateLiterals: always /* always, avoidEscape, @default: never */,
566
- ignoreStringLiterals: false,
567
- },
568
- ],
569
- "@stylistic/rest-spread-spacing": [
570
- ON,
571
- never,
572
- ],
573
- "@stylistic/semi": [
574
- ON,
575
- always,
576
- {
577
- omitLastInOneLineBlock: false,
578
- omitLastInOneLineClassBody: false,
579
- },
580
- ],
581
- "@stylistic/semi-spacing": [
582
- ON,
583
- {
584
- before: false,
585
- after: true,
586
- },
587
- ],
588
- "@stylistic/semi-style": [
589
- ON,
590
- last,
591
- ],
592
- "@stylistic/space-before-blocks": [
593
- ON,
594
- {
595
- functions: always,
596
- keywords: always,
597
- classes: always,
431
+ allowTemplateLiterals: always /* always | avoidEscape | @default never */,
598
432
  },
599
433
  ],
434
+ "@stylistic/rest-spread-spacing": ON,
435
+ "@stylistic/semi": ON,
436
+ "@stylistic/semi-spacing": ON,
437
+ "@stylistic/semi-style": ON,
438
+ "@stylistic/space-before-blocks": ON,
600
439
  "@stylistic/space-before-function-paren": [
601
440
  ON,
602
441
  {
603
- anonymous: always,
604
442
  named: never,
605
- asyncArrow: always,
606
- "catch": always,
607
- },
608
- ],
609
- "@stylistic/space-in-parens": [
610
- ON,
611
- never,
612
- ],
613
- "@stylistic/space-infix-ops": [
614
- ON,
615
- {
616
- int32Hint: true,
617
- ignoreTypes: false,
618
- },
619
- ],
620
- "@stylistic/space-unary-ops": [
621
- ON,
622
- {
623
- words: true,
624
- nonwords: false,
625
- overrides: {},
626
443
  },
627
444
  ],
445
+ "@stylistic/space-in-parens": ON,
446
+ "@stylistic/space-infix-ops": ON,
447
+ "@stylistic/space-unary-ops": ON,
628
448
  "@stylistic/spaced-comment": [
629
449
  ON,
630
450
  always,
@@ -656,21 +476,9 @@ export const EnableStyle = {
656
476
  },
657
477
  },
658
478
  ],
659
- "@stylistic/switch-colon-spacing": [
660
- ON,
661
- {
662
- after: true,
663
- before: false,
664
- },
665
- ],
666
- "@stylistic/template-curly-spacing": [
667
- ON,
668
- never,
669
- ],
670
- "@stylistic/template-tag-spacing": [
671
- ON,
672
- never,
673
- ],
479
+ "@stylistic/switch-colon-spacing": ON,
480
+ "@stylistic/template-curly-spacing": ON,
481
+ "@stylistic/template-tag-spacing": ON,
674
482
  "@stylistic/type-annotation-spacing": [
675
483
  ON,
676
484
  {
@@ -694,12 +502,6 @@ export const EnableStyle = {
694
502
  },
695
503
  ],
696
504
  "@stylistic/wrap-regex": ON,
697
- "@stylistic/yield-star-spacing": [
698
- ON,
699
- {
700
- before: false,
701
- after: true,
702
- },
703
- ],
505
+ "@stylistic/yield-star-spacing": ON,
704
506
  } as const,
705
507
  };
@@ -297,9 +297,6 @@ export const Enable = {
297
297
  {
298
298
  allowShortCircuit: true /* @default false */,
299
299
  allowTernary: true /* @default false */,
300
- // allowTaggedTemplates: false,
301
- // enforceForJSX: false,
302
- // ignoreDirectives: false /* emcaVersion:3 only */,
303
300
  },
304
301
  ] /* TS-capable */,
305
302
  "no-unused-labels": ON,
@@ -343,24 +340,16 @@ export const Enable = {
343
340
  ON,
344
341
  {
345
342
  destructuring: all /* any | @default all */,
346
- // ignoreReadBeforeAssign: false,
347
343
  },
348
344
  ],
349
345
  "prefer-destructuring": [
350
346
  ON,
351
347
  {
352
- // VariableDeclarator: {
353
- // array: true,
354
- // object: true,
355
- // },
356
348
  AssignmentExpression: {
357
349
  array: false /* @default true */,
358
350
  object: false /* @default true */,
359
351
  },
360
352
  },
361
- {
362
- enforceForRenamedProperties: true /* @default false */,
363
- },
364
353
  ] /* TSLint */,
365
354
  "prefer-exponentiation-operator": ON,
366
355
  // "prefer-named-capture-group": OFF,
@@ -4,10 +4,6 @@ import {
4
4
  ON,
5
5
  always,
6
6
  consistent,
7
- double,
8
- last,
9
- never,
10
- strict,
11
7
  } from "../../../_strings";
12
8
 
13
9
  export const JsonEnablePluginExtension = {
@@ -15,39 +11,18 @@ export const JsonEnablePluginExtension = {
15
11
  rules: {
16
12
  // DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
17
13
  // "jsonc/array-bracket-newline": OFF /* @OVERRIDE: BIGGER BUG: i mean this basically just doesn't work, even with multiple lines it will still fail| BUG: the spec says: `requires line breaks if the number of elements is at least the given integer. If this is 0, this condition will act the same as the option "always". If this is null (the default), this condition is disabled`. However, when null, the jsonc plugin actually errors when there are linebreaks with a single item | (was: MUST match @stylistic/array-bracket-newline) */,
18
- "jsonc/array-bracket-spacing": [
19
- ON,
20
- never,
21
- {
22
- singleValue: false,
23
- objectsInArrays: false,
24
- arraysInArrays: false,
25
- },
26
- ] /* MUST match @stylistic/array-bracket-spacing */,
14
+ "jsonc/array-bracket-spacing": ON /* MUST match @stylistic/array-bracket-spacing */,
27
15
  "jsonc/array-element-newline": [
28
16
  ON,
29
17
  consistent,
30
- ],
31
- "jsonc/comma-dangle": [
32
- ON,
33
- never,
34
- ] /* trailing commas are NOT allowed in JSON */,
35
- "jsonc/comma-style": [
36
- ON,
37
- last,
38
- ],
18
+ ] /* WOULD match @stylistic/array-element-newline, but jsonc plugin has slightly different options */,
19
+ "jsonc/comma-dangle": ON /* trailing commas are NOT allowed in JSON */,
20
+ "jsonc/comma-style": ON,
39
21
  "jsonc/indent": [
40
22
  ON,
41
23
  2,
42
24
  ],
43
- "jsonc/key-spacing": [
44
- ON,
45
- {
46
- beforeColon: false,
47
- afterColon: true,
48
- mode: strict,
49
- },
50
- ] /* MUST match @stylistic/key-spacing */,
25
+ "jsonc/key-spacing": ON /* MUST match @stylistic/key-spacing */,
51
26
  // "jsonc/no-dupe-keys": OFF /* ESLint: json/no-duplicate-keys */,
52
27
  "jsonc/no-floating-decimal": ON,
53
28
  "jsonc/no-irregular-whitespace": [
@@ -70,29 +45,16 @@ export const JsonEnablePluginExtension = {
70
45
  {
71
46
  consistent: true,
72
47
  multiline: true,
73
- minProperties: 2,
48
+ minProperties: 2 /* instead of 3 in stylistic */,
74
49
  },
75
- ] /* @OVERRIDE CHILD of @stylistic/object-curly-newline */,
50
+ ] /* @OVERRIDE @stylistic/object-curly-newline */,
76
51
  "jsonc/object-curly-spacing": [
77
52
  ON,
78
53
  always,
79
- {
80
- arraysInObjects: true,
81
- objectsInObjects: true,
82
- },
83
54
  ] /* MUST match @stylistic/object-curly-spacing */,
84
55
  "jsonc/object-property-newline": ON /* MUST match @stylistic/object-property-newline */,
85
- "jsonc/quote-props": [
86
- ON,
87
- always,
88
- ],
89
- "jsonc/quotes": [
90
- ON,
91
- double,
92
- {
93
- avoidEscape: false,
94
- },
95
- ],
56
+ "jsonc/quote-props": ON,
57
+ "jsonc/quotes": ON,
96
58
  "jsonc/space-unary-ops": ON,
97
59
  } as const,
98
60
  };
@@ -12,8 +12,6 @@ export const MochaEnablePluginChai = {
12
12
  {
13
13
  allowShortCircuit: true,
14
14
  allowTernary: true,
15
- allowTaggedTemplates: true,
16
- enforceForJSX: false,
17
15
  },
18
16
  ] /* TSLint */,
19
17
  } as const,
@@ -10,18 +10,8 @@ export const MochaEnable = {
10
10
  // DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
11
11
  // "mocha/consistent-interface": OFF /* unable, must choose BDD or TDD first */,
12
12
  // "mocha/consistent-spacing-between-blocks": OFF,
13
- "mocha/handle-done-callback": [
14
- ON,
15
- {
16
- ignorePending: false,
17
- },
18
- ],
19
- "mocha/max-top-level-suites": [
20
- ON,
21
- {
22
- limit: 1,
23
- },
24
- ],
13
+ "mocha/handle-done-callback": ON,
14
+ "mocha/max-top-level-suites": ON,
25
15
  "mocha/no-async-suite": ON,
26
16
  "mocha/no-empty-title": ON,
27
17
  "mocha/no-exclusive-tests": ON,
@@ -39,13 +29,7 @@ export const MochaEnable = {
39
29
  "mocha/no-sibling-hooks": ON,
40
30
  // "mocha/no-synchronous-tests": OFF,
41
31
  "mocha/no-top-level-hooks": ON,
42
- "mocha/prefer-arrow-callback": [
43
- ON,
44
- {
45
- allowNamedFunctions: false,
46
- allowUnboundThis: true,
47
- },
48
- ] /* MUST match ../js/enable.ts, which is TS-capable -- is this?? */,
32
+ "mocha/prefer-arrow-callback": ON /* MUST match ../js/enable.ts, which is TS-capable -- is this?? */,
49
33
  // "mocha/valid-suite-title": OFF /* preference */,
50
34
  // "mocha/valid-test-title": OFF /* preference */,
51
35
  } as const,
@@ -8,7 +8,7 @@ export const SvelteDisable = {
8
8
  rules: {
9
9
  // ESLint core rules known to cause problems with `.svelte`.
10
10
  // DOC: https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
11
- "no-inner-declarations": OFF /* The AST generated by svelte-eslint-parser will false positives in it rule because the root node of the script is not the `Program`. */,
11
+ "no-inner-declarations": OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. */,
12
12
  "no-self-assign": OFF /* Self assign is one of way to update reactive value in Svelte */,
13
13
  "no-unused-vars": OFF /* breaks use of svelte global */,
14
14
  "@typescript-eslint/no-unused-vars": OFF /* TS: breaks use of svelte global */,