linted 21.0.0-rc.8 → 21.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. package/dist/imports/index.d.ts +363 -1
  2. package/dist/imports/index.d.ts.map +1 -1
  3. package/dist/imports/parsers.d.ts +2 -0
  4. package/dist/imports/parsers.d.ts.map +1 -1
  5. package/dist/imports/parsers.js +2 -0
  6. package/dist/imports/parsers.js.map +1 -1
  7. package/dist/imports/plugins.d.ts +362 -2
  8. package/dist/imports/plugins.d.ts.map +1 -1
  9. package/dist/imports/plugins.js +2 -2
  10. package/dist/imports/plugins.js.map +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +8 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/rules/index.d.ts +122 -1509
  15. package/dist/rules/index.d.ts.map +1 -1
  16. package/dist/rules/js/enable.d.ts.map +1 -1
  17. package/dist/rules/js/enable.js +37 -11
  18. package/dist/rules/js/enable.js.map +1 -1
  19. package/dist/rules/js/index.d.ts.map +1 -1
  20. package/dist/rules/js/index.js +4 -1
  21. package/dist/rules/js/index.js.map +1 -1
  22. package/dist/rules/js/stylistic.d.ts.map +1 -1
  23. package/dist/rules/js/stylistic.js +73 -20
  24. package/dist/rules/js/stylistic.js.map +1 -1
  25. package/dist/rules/json/enable.d.ts +23 -2
  26. package/dist/rules/json/enable.d.ts.map +1 -1
  27. package/dist/rules/json/enable.js +24 -4
  28. package/dist/rules/json/enable.js.map +1 -1
  29. package/dist/rules/json/enable_x.d.ts +50 -0
  30. package/dist/rules/json/enable_x.d.ts.map +1 -0
  31. package/dist/rules/json/enable_x.js +80 -0
  32. package/dist/rules/json/enable_x.js.map +1 -0
  33. package/dist/rules/json/index.d.ts +52 -747
  34. package/dist/rules/json/index.d.ts.map +1 -1
  35. package/dist/rules/json/index.js +2 -2
  36. package/dist/rules/json/index.js.map +1 -1
  37. package/dist/rules/jsonc/index.d.ts +77 -3
  38. package/dist/rules/jsonc/index.d.ts.map +1 -1
  39. package/dist/rules/jsonc/index.js +5 -1
  40. package/dist/rules/jsonc/index.js.map +1 -1
  41. package/dist/rules/jsonc/override.d.ts +6 -0
  42. package/dist/rules/jsonc/override.d.ts.map +1 -0
  43. package/dist/rules/jsonc/override.js +12 -0
  44. package/dist/rules/jsonc/override.js.map +1 -0
  45. package/dist/rules/mocha/disable.d.ts.map +1 -1
  46. package/dist/rules/mocha/disable.js +1 -1
  47. package/dist/rules/mocha/disable.js.map +1 -1
  48. package/dist/rules/mocha/index.d.ts.map +1 -1
  49. package/dist/rules/mocha/index.js +4 -2
  50. package/dist/rules/mocha/index.js.map +1 -1
  51. package/dist/rules/svelte/disable.d.ts.map +1 -1
  52. package/dist/rules/svelte/disable.js +1 -1
  53. package/dist/rules/svelte/disable.js.map +1 -1
  54. package/dist/rules/svelte/enable.d.ts.map +1 -1
  55. package/dist/rules/svelte/enable.js +5 -3
  56. package/dist/rules/svelte/enable.js.map +1 -1
  57. package/dist/rules/svelte/enable_x.d.ts.map +1 -1
  58. package/dist/rules/svelte/enable_x.js +1 -2
  59. package/dist/rules/svelte/enable_x.js.map +1 -1
  60. package/dist/rules/ts/disable.d.ts.map +1 -1
  61. package/dist/rules/ts/disable.js +1 -1
  62. package/dist/rules/ts/disable.js.map +1 -1
  63. package/dist/rules/ts/disable_x.d.ts.map +1 -1
  64. package/dist/rules/ts/disable_x.js +1 -1
  65. package/dist/rules/ts/disable_x.js.map +1 -1
  66. package/dist/rules/ts/enable.d.ts.map +1 -1
  67. package/dist/rules/ts/enable.js +21 -7
  68. package/dist/rules/ts/enable.js.map +1 -1
  69. package/dist/rules/ts/enable_x.d.ts.map +1 -1
  70. package/dist/rules/ts/enable_x.js +1 -2
  71. package/dist/rules/ts/enable_x.js.map +1 -1
  72. package/dist/rules/yml/enable.d.ts.map +1 -1
  73. package/dist/rules/yml/enable.js +13 -5
  74. package/dist/rules/yml/enable.js.map +1 -1
  75. package/dist/rules/yml/enable_x.d.ts.map +1 -1
  76. package/dist/rules/yml/enable_x.js +5 -3
  77. package/dist/rules/yml/enable_x.js.map +1 -1
  78. package/dist/rules/yml/index.d.ts.map +1 -1
  79. package/dist/rules/yml/index.js +4 -1
  80. package/dist/rules/yml/index.js.map +1 -1
  81. package/package.json +4 -3
  82. package/src/imports/parsers.ts +2 -0
  83. package/src/imports/plugins.ts +2 -2
  84. package/src/index.ts +8 -2
  85. package/src/rules/html/enable.ts +1 -1
  86. package/src/rules/js/enable.ts +41 -15
  87. package/src/rules/js/index.ts +4 -1
  88. package/src/rules/js/stylistic.ts +77 -24
  89. package/src/rules/json/enable.ts +29 -6
  90. package/src/rules/json/enable_x.ts +91 -0
  91. package/src/rules/json/index.ts +2 -2
  92. package/src/rules/jsonc/index.ts +5 -1
  93. package/src/rules/jsonc/override.ts +18 -0
  94. package/src/rules/mocha/disable.ts +4 -1
  95. package/src/rules/mocha/index.ts +4 -2
  96. package/src/rules/svelte/disable.ts +4 -1
  97. package/src/rules/svelte/enable.ts +9 -7
  98. package/src/rules/svelte/enable_x.ts +7 -5
  99. package/src/rules/ts/disable.ts +4 -1
  100. package/src/rules/ts/disable_x.ts +4 -1
  101. package/src/rules/ts/enable.ts +27 -10
  102. package/src/rules/ts/enable_x.ts +7 -5
  103. package/src/rules/yml/enable.ts +20 -8
  104. package/src/rules/yml/enable_x.ts +11 -6
  105. package/src/rules/yml/index.ts +4 -1
  106. package/dist/rules/mocha/base.d.ts +0 -37
  107. package/dist/rules/mocha/base.d.ts.map +0 -1
  108. package/dist/rules/mocha/base.js +0 -7
  109. package/dist/rules/mocha/base.js.map +0 -1
  110. package/dist/rules/mochaJs/index.d.ts +0 -800
  111. package/dist/rules/mochaJs/index.d.ts.map +0 -1
  112. package/dist/rules/mochaJs/index.js +0 -7
  113. package/dist/rules/mochaJs/index.js.map +0 -1
  114. package/src/rules/mocha/base.ts +0 -7
  115. package/src/rules/mochaJs/index.ts +0 -7
package/src/index.ts CHANGED
@@ -13,8 +13,14 @@ export default function (
13
13
  {
14
14
  plugins: imports.plugins,
15
15
  parsers: imports.parsers,
16
- files: { files, includes },
17
- rules: { rules, overrides },
16
+ files: {
17
+ files,
18
+ includes,
19
+ },
20
+ rules: {
21
+ rules,
22
+ overrides,
23
+ },
18
24
  },
19
25
  );
20
26
  }
@@ -1,4 +1,4 @@
1
- import type * as Rule from "@html-eslint/eslint-plugin/types/rules";
1
+ import type Rule from "@html-eslint/eslint-plugin/types/rules";
2
2
  import {
3
3
  enable,
4
4
  ERROR,
@@ -1,8 +1,7 @@
1
- import { enable, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- {
1
+ import {
2
+ enable,
3
+ ERROR,
4
+ OFF,
6
5
  Never,
7
6
  Always,
8
7
  AsNeeded,
@@ -11,7 +10,7 @@ const
11
10
  All,
12
11
  Multi,
13
12
  Both,
14
- } = state;
13
+ } from "../../_strings";
15
14
 
16
15
  export default [
17
16
  enable,
@@ -38,7 +37,10 @@ export default [
38
37
  "no-await-in-loop": ERROR,
39
38
  "no-class-assign": ERROR,
40
39
  "no-compare-neg-zero": ERROR,
41
- "no-cond-assign": [ERROR, Always],
40
+ "no-cond-assign": [
41
+ ERROR,
42
+ Always,
43
+ ],
42
44
  "no-const-assign": ERROR, /* tsc */
43
45
  "no-constant-binary-expression": ERROR,
44
46
  "no-constant-condition": [
@@ -215,7 +217,10 @@ export default [
215
217
  },
216
218
  ] /* tsc -- TSLint:off: tsconfig: noImplicitReturns */,
217
219
  "consistent-this": ERROR,
218
- curly: [ERROR, Multi],
220
+ curly: [
221
+ ERROR,
222
+ Multi,
223
+ ],
219
224
  "default-case": OFF, /* preference: don't care */
220
225
  "default-case-last": ERROR,
221
226
  "default-param-last": ERROR /* TSLint */,
@@ -225,7 +230,10 @@ export default [
225
230
  allowKeywords: true,
226
231
  },
227
232
  ] /* TSLint */,
228
- eqeqeq: [ERROR, Always],
233
+ eqeqeq: [
234
+ ERROR,
235
+ Always,
236
+ ],
229
237
  "func-name-matching": OFF /* preference */,
230
238
  "func-names": OFF /* preference */,
231
239
  "func-style": OFF /* preference */,
@@ -234,7 +242,10 @@ export default [
234
242
  "id-denylist": OFF /* preference */,
235
243
  "id-length": OFF /* preference */,
236
244
  "id-match": OFF /* preference */,
237
- "init-declarations": [ERROR, Always] /* TSLint */,
245
+ "init-declarations": [
246
+ ERROR,
247
+ Always,
248
+ ] /* TSLint */,
238
249
  "logical-assignment-operators": [
239
250
  ERROR,
240
251
  Always,
@@ -321,7 +332,10 @@ export default [
321
332
  "no-implicit-globals": OFF /* investigate (breaks Scriptable? breaks Sveltekit?) */,
322
333
  "no-implied-eval": ERROR /* TSLint */,
323
334
  "no-inline-comments": OFF /* preference */,
324
- "no-invalid-this": [ERROR, { capIsConstructor: false }] /* TSLint:off: tsconfig: { strict, noImplicitThis } */,
335
+ "no-invalid-this": [
336
+ ERROR,
337
+ { capIsConstructor: false },
338
+ ] /* TSLint:off: tsconfig: { strict, noImplicitThis } */,
325
339
  "no-iterator": ERROR,
326
340
  "no-label-var": ERROR,
327
341
  "no-lone-blocks": ERROR,
@@ -359,14 +373,20 @@ export default [
359
373
  },
360
374
  ],
361
375
  "no-proto": ERROR,
362
- "no-redeclare": [ERROR, { builtinGlobals: true }] /* tsc -- TSLint:off: tsc (let, const, -var) */,
376
+ "no-redeclare": [
377
+ ERROR,
378
+ { builtinGlobals: true },
379
+ ] /* tsc -- TSLint:off: tsc (let, const, -var) */,
363
380
  "no-regex-spaces": OFF /* preference */,
364
381
  "no-restricted-exports": OFF /* preference */,
365
382
  "no-restricted-globals": OFF /* preference */,
366
383
  "no-restricted-imports": OFF /* preference -- TSLint:off */,
367
384
  "no-restricted-properties": OFF /* preference */,
368
385
  "no-restricted-syntax": OFF /* preference */,
369
- "no-return-assign": [ERROR, Always] /* ALWAYS | "except-parens" (disallow assignments unless enclosed in parens) */,
386
+ "no-return-assign": [
387
+ ERROR,
388
+ Always,
389
+ ] /* ALWAYS | "except-parens" (disallow assignments unless enclosed in parens) */,
370
390
  "no-script-url": ERROR,
371
391
  "no-sequences": [
372
392
  ERROR,
@@ -445,7 +465,10 @@ export default [
445
465
  separateRequires: true,
446
466
  },
447
467
  ],
448
- "operator-assignment": [ERROR, Always],
468
+ "operator-assignment": [
469
+ ERROR,
470
+ Always,
471
+ ],
449
472
  "prefer-arrow-callback": [
450
473
  ERROR,
451
474
  {
@@ -494,7 +517,10 @@ export default [
494
517
  "prefer-rest-params": ERROR,
495
518
  "prefer-spread": ERROR,
496
519
  "prefer-template": ERROR,
497
- radix: [ERROR, AsNeeded],
520
+ radix: [
521
+ ERROR,
522
+ AsNeeded,
523
+ ],
498
524
  "require-await": ERROR /* TSLint */,
499
525
  "require-unicode-regexp": ERROR,
500
526
  "require-yield": ERROR,
@@ -1,4 +1,7 @@
1
1
  import stylistic from "./stylistic";
2
2
  import enable from "./enable";
3
3
 
4
- export default [stylistic, enable];
4
+ export default [
5
+ stylistic,
6
+ enable,
7
+ ];
@@ -1,8 +1,7 @@
1
- import { stylistic, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- {
1
+ import {
2
+ stylistic,
3
+ ERROR,
4
+ OFF,
6
5
  Never,
7
6
  Always,
8
7
  AlwaysMultiline,
@@ -18,7 +17,7 @@ const
18
17
  Beside,
19
18
  Inside,
20
19
  Double,
21
- } = state;
20
+ } from "../../_strings";
22
21
 
23
22
  export default [
24
23
  stylistic,
@@ -69,7 +68,10 @@ export default [
69
68
  after: true,
70
69
  },
71
70
  ],
72
- "@stylistic/block-spacing": [ERROR, Always],
71
+ "@stylistic/block-spacing": [
72
+ ERROR,
73
+ Always,
74
+ ],
73
75
  "@stylistic/brace-style": [
74
76
  ERROR,
75
77
  "stroustrup",
@@ -77,7 +79,10 @@ export default [
77
79
  allowSingleLine: true,
78
80
  },
79
81
  ],
80
- "@stylistic/comma-dangle": [ERROR, AlwaysMultiline],
82
+ "@stylistic/comma-dangle": [
83
+ ERROR,
84
+ AlwaysMultiline,
85
+ ],
81
86
  "@stylistic/comma-spacing": [
82
87
  ERROR,
83
88
  {
@@ -111,12 +116,27 @@ export default [
111
116
  enforceForClassMembers: true,
112
117
  },
113
118
  ],
114
- "@stylistic/dot-location": [ERROR, "property"],
115
- "@stylistic/eol-last": [ERROR, Always],
116
- "@stylistic/function-call-argument-newline": [ERROR, Consistent],
117
- "@stylistic/function-call-spacing": [ERROR, Never],
119
+ "@stylistic/dot-location": [
120
+ ERROR,
121
+ "property",
122
+ ],
123
+ "@stylistic/eol-last": [
124
+ ERROR,
125
+ Always,
126
+ ],
127
+ "@stylistic/function-call-argument-newline": [
128
+ ERROR,
129
+ Consistent,
130
+ ],
131
+ "@stylistic/function-call-spacing": [
132
+ ERROR,
133
+ Never,
134
+ ],
118
135
 
119
- "@stylistic/function-paren-newline": [ERROR, "multiline-arguments"] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
136
+ "@stylistic/function-paren-newline": [
137
+ ERROR,
138
+ "multiline-arguments",
139
+ ] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
120
140
  "@stylistic/generator-star-spacing": [
121
141
  ERROR,
122
142
  {
@@ -124,7 +144,10 @@ export default [
124
144
  after: false,
125
145
  },
126
146
  ],
127
- "@stylistic/implicit-arrow-linebreak": [ERROR, Beside],
147
+ "@stylistic/implicit-arrow-linebreak": [
148
+ ERROR,
149
+ Beside,
150
+ ],
128
151
  "@stylistic/indent": [
129
152
  ERROR,
130
153
  2,
@@ -146,7 +169,10 @@ export default [
146
169
  ignoreComments: false,
147
170
  },
148
171
  ],
149
- "@stylistic/indent-binary-ops": [ERROR, 2],
172
+ "@stylistic/indent-binary-ops": [
173
+ ERROR,
174
+ 2,
175
+ ],
150
176
  "@stylistic/key-spacing": [
151
177
  ERROR,
152
178
  {
@@ -241,8 +267,14 @@ export default [
241
267
  },
242
268
  ],
243
269
  "@stylistic/multiline-comment-style": OFF,
244
- "@stylistic/multiline-ternary": [ERROR, AlwaysMultiline],
245
- "@stylistic/new-parens": [OFF, Never],
270
+ "@stylistic/multiline-ternary": [
271
+ ERROR,
272
+ AlwaysMultiline,
273
+ ],
274
+ "@stylistic/new-parens": [
275
+ OFF,
276
+ Never,
277
+ ],
246
278
  "@stylistic/newline-per-chained-call": [
247
279
  ERROR,
248
280
  {
@@ -353,7 +385,10 @@ export default [
353
385
  allowAllPropertiesOnSameLine: true,
354
386
  },
355
387
  ],
356
- "@stylistic/one-var-declaration-per-line": [ERROR, Always],
388
+ "@stylistic/one-var-declaration-per-line": [
389
+ ERROR,
390
+ Always,
391
+ ],
357
392
  "@stylistic/operator-linebreak": [
358
393
  ERROR,
359
394
  Before,
@@ -519,7 +554,10 @@ export default [
519
554
  allowTemplateLiterals: true,
520
555
  },
521
556
  ],
522
- "@stylistic/rest-spread-spacing": [ERROR, Never],
557
+ "@stylistic/rest-spread-spacing": [
558
+ ERROR,
559
+ Never,
560
+ ],
523
561
  "@stylistic/semi": [
524
562
  ERROR,
525
563
  Always,
@@ -535,7 +573,10 @@ export default [
535
573
  after: true,
536
574
  },
537
575
  ],
538
- "@stylistic/semi-style": [ERROR, Last],
576
+ "@stylistic/semi-style": [
577
+ ERROR,
578
+ Last,
579
+ ],
539
580
  "@stylistic/space-before-blocks": [
540
581
  ERROR,
541
582
  {
@@ -552,7 +593,10 @@ export default [
552
593
  asyncArrow: Always,
553
594
  },
554
595
  ],
555
- "@stylistic/space-in-parens": [ERROR, Never],
596
+ "@stylistic/space-in-parens": [
597
+ ERROR,
598
+ Never,
599
+ ],
556
600
  "@stylistic/space-infix-ops": [
557
601
  ERROR,
558
602
  {
@@ -567,7 +611,10 @@ export default [
567
611
  overrides: {},
568
612
  },
569
613
  ],
570
- "@stylistic/spaced-comment": [ERROR, Always],
614
+ "@stylistic/spaced-comment": [
615
+ ERROR,
616
+ Always,
617
+ ],
571
618
  "@stylistic/switch-colon-spacing": [
572
619
  ERROR,
573
620
  {
@@ -575,8 +622,14 @@ export default [
575
622
  before: false,
576
623
  },
577
624
  ],
578
- "@stylistic/template-curly-spacing": [ERROR, Never],
579
- "@stylistic/template-tag-spacing": [ERROR, Never],
625
+ "@stylistic/template-curly-spacing": [
626
+ ERROR,
627
+ Never,
628
+ ],
629
+ "@stylistic/template-tag-spacing": [
630
+ ERROR,
631
+ Never,
632
+ ],
580
633
  "@stylistic/type-annotation-spacing": [
581
634
  ERROR,
582
635
  {
@@ -1,12 +1,35 @@
1
- import { enable, level } from "../../_strings";
2
-
3
- const { ERROR, OFF } = level;
1
+ import {
2
+ enable,
3
+ ERROR,
4
+ OFF,
5
+ } from "../../_strings";
4
6
 
5
7
  export default [
6
8
  enable,
7
9
  {
8
- // https://github.com/eslint/json?tab=readme-ov-file#rules
9
- "json/no-duplicate-keys": ERROR,
10
- "json/no-empty-keys": OFF,
10
+ // https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
11
+ "jsonc/auto": OFF,
12
+ "jsonc/key-name-casing": OFF,
13
+ "jsonc/no-bigint-literals": ERROR,
14
+ "jsonc/no-binary-expression": ERROR,
15
+ "jsonc/no-binary-numeric-literals": ERROR,
16
+ "jsonc/no-comments": ERROR /* comments are NOT allowed in JSON */,
17
+ "jsonc/no-escape-sequence-in-identifier": ERROR,
18
+ "jsonc/no-hexadecimal-numeric-literals": ERROR,
19
+ "jsonc/no-infinity": ERROR,
20
+ "jsonc/no-nan": ERROR,
21
+ "jsonc/no-number-props": ERROR,
22
+ "jsonc/no-numeric-separators": ERROR,
23
+ "jsonc/no-octal-numeric-literals": ERROR,
24
+ "jsonc/no-parenthesized": ERROR,
25
+ "jsonc/no-plus-sign": ERROR,
26
+ "jsonc/no-regexp-literals": ERROR,
27
+ "jsonc/no-template-literals": ERROR,
28
+ "jsonc/no-undefined-value": ERROR,
29
+ "jsonc/no-unicode-codepoint-escapes": ERROR,
30
+ "jsonc/sort-array-values": OFF,
31
+ "jsonc/sort-keys": OFF,
32
+ "jsonc/valid-json-number": ERROR,
33
+ "jsonc/vue-custom-block/no-parsing-error": ERROR,
11
34
  },
12
35
  ] as const;
@@ -0,0 +1,91 @@
1
+ import {
2
+ enable_x,
3
+ ERROR,
4
+ OFF,
5
+ Always,
6
+ Consistent,
7
+ Double,
8
+ Last,
9
+ Never,
10
+ Strict,
11
+ } from "../../_strings";
12
+
13
+ export default [
14
+ enable_x,
15
+ {
16
+ // https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
17
+ "jsonc/array-bracket-newline": OFF /* DO NOT CHANGE */,
18
+ "jsonc/array-bracket-spacing": [
19
+ ERROR,
20
+ Never,
21
+ {
22
+ singleValue: false,
23
+ objectsInArrays: false,
24
+ arraysInArrays: false,
25
+ },
26
+ ] /* MUST match ../js/stylistic.ts */,
27
+ "jsonc/array-element-newline": [
28
+ ERROR,
29
+ Consistent,
30
+ ],
31
+ "jsonc/comma-dangle": [ERROR, Never] /* trailing commas are NOT allowed in JSON */,
32
+ "jsonc/comma-style": [ERROR, Last],
33
+ "jsonc/indent": [ERROR, 2],
34
+ "jsonc/key-spacing": [
35
+ ERROR,
36
+ {
37
+ beforeColon: false,
38
+ afterColon: true,
39
+ mode: Strict,
40
+ },
41
+ ] /* MUST match ../js/stylistic.ts */,
42
+ "jsonc/no-dupe-keys": ERROR,
43
+ "jsonc/no-floating-decimal": ERROR,
44
+ "jsonc/no-irregular-whitespace": [
45
+ ERROR,
46
+ {
47
+ skipStrings: true,
48
+ skipComments: true,
49
+ skipRegExps: true,
50
+ skipTemplates: true,
51
+ skipJSXText: true,
52
+ },
53
+ ],
54
+ "jsonc/no-multi-str": ERROR,
55
+ "jsonc/no-octal-escape": ERROR,
56
+ "jsonc/no-octal": ERROR,
57
+ "jsonc/no-sparse-arrays": ERROR,
58
+ "jsonc/no-useless-escape": ERROR,
59
+ "jsonc/object-curly-newline": [
60
+ ERROR,
61
+ {
62
+ consistent: true,
63
+ multiline: true,
64
+ minProperties: 4,
65
+ },
66
+ ] /* MUST match CHILD of ../js/stylistic.ts */,
67
+ "jsonc/object-curly-spacing": [
68
+ ERROR,
69
+ Always,
70
+ {
71
+ arraysInObjects: true,
72
+ objectsInObjects: true,
73
+ },
74
+ ] /* MUST match ../js/stylistic.ts */,
75
+ "jsonc/object-property-newline": [
76
+ ERROR,
77
+ {
78
+ allowAllPropertiesOnSameLine: true,
79
+ },
80
+ ] /* MUST match ../js/stylistic.ts */,
81
+ "jsonc/quote-props": [ERROR, Always],
82
+ "jsonc/quotes": [
83
+ ERROR,
84
+ Double,
85
+ {
86
+ avoidEscape: false,
87
+ },
88
+ ],
89
+ "jsonc/space-unary-ops": ERROR,
90
+ },
91
+ ] as const;
@@ -1,7 +1,7 @@
1
- import js from "../js";
1
+ import enable_x from "./enable_x";
2
2
  import enable from "./enable";
3
3
 
4
4
  export default [
5
- ...js,
5
+ enable_x,
6
6
  enable,
7
7
  ];
@@ -1,3 +1,7 @@
1
1
  import json from "../json";
2
+ import override from "./override";
2
3
 
3
- export default json;
4
+ export default [
5
+ ...json,
6
+ override,
7
+ ];
@@ -0,0 +1,18 @@
1
+ import {
2
+ override,
3
+ ERROR,
4
+ OFF,
5
+ AlwaysMultiline,
6
+ } from "../../_strings";
7
+
8
+ export default [
9
+ override,
10
+ {
11
+ // https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
12
+ "jsonc/no-comments": OFF /* comments ARE allowed in JSONC */,
13
+ "jsonc/comma-dangle": [
14
+ ERROR,
15
+ AlwaysMultiline,
16
+ ] /* trailing commas ARE allowed in JSONC */,
17
+ },
18
+ ] as const;
@@ -1,4 +1,7 @@
1
- import { disable, OFF } from "../../_strings";
1
+ import {
2
+ disable,
3
+ OFF,
4
+ } from "../../_strings";
2
5
 
3
6
  export default [
4
7
  disable,
@@ -1,7 +1,9 @@
1
1
  import ts from "../ts";
2
- import base from "./base";
2
+ import disable from "./disable";
3
+ import enable from "./enable";
3
4
 
4
5
  export default [
5
6
  ...ts,
6
- ...base,
7
+ disable,
8
+ enable,
7
9
  ];
@@ -1,4 +1,7 @@
1
- import { disable, OFF } from "../../_strings";
1
+ import {
2
+ disable,
3
+ OFF,
4
+ } from "../../_strings";
2
5
 
3
6
  export default [
4
7
  disable,
@@ -1,14 +1,13 @@
1
- import { enable, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- {
1
+ import {
2
+ enable,
3
+ ERROR,
4
+ OFF,
6
5
  Ignore,
7
6
  Never,
8
7
  Always,
9
8
  Below,
10
9
  Double,
11
- } = state;
10
+ } from "../../_strings";
12
11
 
13
12
  export default [
14
13
  enable,
@@ -204,7 +203,10 @@ export default [
204
203
  },
205
204
  ],
206
205
  "svelte/sort-attributes": OFF /* INVESTIGATE: */,
207
- "svelte/spaced-html-comment": [ERROR, Always],
206
+ "svelte/spaced-html-comment": [
207
+ ERROR,
208
+ Always,
209
+ ],
208
210
 
209
211
  // #endregion STYLE
210
212
 
@@ -1,8 +1,10 @@
1
- import { enable_x, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- { Allow, Both } = state;
1
+ import {
2
+ enable_x,
3
+ ERROR,
4
+ OFF,
5
+ Allow,
6
+ Both,
7
+ } from "../../_strings";
6
8
 
7
9
  export default [
8
10
  enable_x,
@@ -1,4 +1,7 @@
1
- import { disable, OFF } from "../../_strings";
1
+ import {
2
+ disable,
3
+ OFF,
4
+ } from "../../_strings";
2
5
 
3
6
  export default [
4
7
  disable,
@@ -1,4 +1,7 @@
1
- import { disable_x, OFF } from "../../_strings";
1
+ import {
2
+ disable_x,
3
+ OFF,
4
+ } from "../../_strings";
2
5
 
3
6
  export default [
4
7
  disable_x,
@@ -1,8 +1,10 @@
1
- import { enable, level, state } from "../../_strings";
2
-
3
- const
4
- { ERROR, OFF } = level,
5
- { Never, Explicit } = state;
1
+ import {
2
+ enable,
3
+ ERROR,
4
+ OFF,
5
+ Never,
6
+ Explicit,
7
+ } from "../../_strings";
6
8
 
7
9
  export default [
8
10
  enable,
@@ -30,9 +32,18 @@ export default [
30
32
  },
31
33
  ],
32
34
  "@typescript-eslint/ban-tslint-comment": ERROR,
33
- "@typescript-eslint/class-literal-property-style": [ERROR, "fields"],
34
- "@typescript-eslint/consistent-generic-constructors": [ERROR, "constructor"],
35
- "@typescript-eslint/consistent-indexed-object-style": [ERROR, "record"],
35
+ "@typescript-eslint/class-literal-property-style": [
36
+ ERROR,
37
+ "fields",
38
+ ],
39
+ "@typescript-eslint/consistent-generic-constructors": [
40
+ ERROR,
41
+ "constructor",
42
+ ],
43
+ "@typescript-eslint/consistent-indexed-object-style": [
44
+ ERROR,
45
+ "record",
46
+ ],
36
47
  "@typescript-eslint/consistent-type-assertions": [
37
48
  ERROR,
38
49
  {
@@ -240,7 +251,10 @@ export default [
240
251
 
241
252
  },
242
253
  ],
243
- "@typescript-eslint/method-signature-style": [ERROR, "property"],
254
+ "@typescript-eslint/method-signature-style": [
255
+ ERROR,
256
+ "property",
257
+ ],
244
258
  "@typescript-eslint/naming-convention": OFF,
245
259
  "@typescript-eslint/no-array-delete": ERROR,
246
260
  "@typescript-eslint/no-base-to-string": [
@@ -502,7 +516,10 @@ export default [
502
516
  allowRegExp: false,
503
517
  }, /* investigate: make stricter */
504
518
  ],
505
- "@typescript-eslint/return-await": [ERROR, "in-try-catch"] /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
519
+ "@typescript-eslint/return-await": [
520
+ ERROR,
521
+ "in-try-catch",
522
+ ] /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
506
523
  "@typescript-eslint/strict-boolean-expressions": [
507
524
  ERROR,
508
525
  {