@eslinted/defaults 16.0.3 → 17.0.0-rc.1

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 (201) hide show
  1. package/dist/index.d.ts +194 -207
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.spec.js +2 -2
  4. package/dist/index.spec.js.map +1 -1
  5. package/dist/rules/css/index.d.ts +13 -12
  6. package/dist/rules/css/index.d.ts.map +1 -1
  7. package/dist/rules/css/index.js +19 -3
  8. package/dist/rules/css/index.js.map +1 -1
  9. package/dist/rules/html/index.d.ts +43 -42
  10. package/dist/rules/html/index.d.ts.map +1 -1
  11. package/dist/rules/html/index.js +75 -3
  12. package/dist/rules/html/index.js.map +1 -1
  13. package/dist/rules/index.d.ts +194 -207
  14. package/dist/rules/index.d.ts.map +1 -1
  15. package/dist/rules/index.js +1 -1
  16. package/dist/rules/index.js.map +1 -1
  17. package/dist/rules/{base.d.ts → js.d.ts} +70 -70
  18. package/dist/rules/{base.d.ts.map → js.d.ts.map} +1 -1
  19. package/dist/rules/{base.eslint.d.ts → js.eslint.d.ts} +2 -2
  20. package/dist/rules/js.eslint.d.ts.map +1 -0
  21. package/dist/rules/{base.eslint.js → js.eslint.js} +2 -2
  22. package/dist/rules/js.eslint.js.map +1 -0
  23. package/dist/rules/js.js +7 -0
  24. package/dist/rules/js.js.map +1 -0
  25. package/dist/rules/{base.stylistic.d.ts → js.stylistic.d.ts} +69 -69
  26. package/dist/rules/js.stylistic.d.ts.map +1 -0
  27. package/dist/rules/{base.stylistic.js → js.stylistic.js} +69 -69
  28. package/dist/rules/js.stylistic.js.map +1 -0
  29. package/dist/rules/json/index.d.ts +3 -3
  30. package/dist/rules/json/index.js +6 -6
  31. package/dist/rules/json/index.js.map +1 -1
  32. package/dist/rules/json/{enable.d.ts → json.d.ts} +2 -2
  33. package/dist/rules/json/json.d.ts.map +1 -0
  34. package/dist/rules/json/{enable.js → json.js} +2 -2
  35. package/dist/rules/json/json.js.map +1 -0
  36. package/dist/rules/json/plugin/{extension.d.ts → extend.d.ts} +2 -2
  37. package/dist/rules/json/plugin/extend.d.ts.map +1 -0
  38. package/dist/rules/json/plugin/{extension.js → extend.js} +2 -2
  39. package/dist/rules/json/plugin/extend.js.map +1 -0
  40. package/dist/rules/json/plugin/index.d.ts +1 -1
  41. package/dist/rules/json/plugin/index.js +1 -1
  42. package/dist/rules/json/plugin/index.js.map +1 -1
  43. package/dist/rules/jsonc/index.d.ts +3 -2
  44. package/dist/rules/jsonc/index.d.ts.map +1 -1
  45. package/dist/rules/jsonc/index.js +9 -3
  46. package/dist/rules/jsonc/index.js.map +1 -1
  47. package/dist/rules/jsoncc/index.d.ts +3 -2
  48. package/dist/rules/jsoncc/index.d.ts.map +1 -1
  49. package/dist/rules/jsoncc/index.js +12 -3
  50. package/dist/rules/jsoncc/index.js.map +1 -1
  51. package/dist/rules/mocha/chai/expect.d.ts +1 -1
  52. package/dist/rules/mocha/chai/expect.js +1 -1
  53. package/dist/rules/mocha/chai/expect.js.map +1 -1
  54. package/dist/rules/mocha/chai/index.d.ts +3 -2
  55. package/dist/rules/mocha/chai/index.d.ts.map +1 -1
  56. package/dist/rules/mocha/chai/index.js +3 -2
  57. package/dist/rules/mocha/chai/index.js.map +1 -1
  58. package/dist/rules/mocha/index.d.ts +6 -10
  59. package/dist/rules/mocha/index.d.ts.map +1 -1
  60. package/dist/rules/mocha/index.js +6 -8
  61. package/dist/rules/mocha/index.js.map +1 -1
  62. package/dist/rules/mocha/{enable.d.ts → mocha.d.ts} +3 -2
  63. package/dist/rules/mocha/mocha.d.ts.map +1 -0
  64. package/dist/rules/mocha/{enable.js → mocha.js} +3 -2
  65. package/dist/rules/mocha/mocha.js.map +1 -0
  66. package/dist/rules/svelte/disable.d.ts +4 -4
  67. package/dist/rules/svelte/disable.d.ts.map +1 -1
  68. package/dist/rules/svelte/disable.js +4 -4
  69. package/dist/rules/svelte/disable.js.map +1 -1
  70. package/dist/rules/svelte/{extension/index.d.ts → extend.d.ts} +5 -3
  71. package/dist/rules/svelte/extend.d.ts.map +1 -0
  72. package/dist/rules/svelte/{extension/index.js → extend.js} +4 -2
  73. package/dist/rules/svelte/extend.js.map +1 -0
  74. package/dist/rules/svelte/index.d.ts +8 -13
  75. package/dist/rules/svelte/index.d.ts.map +1 -1
  76. package/dist/rules/svelte/index.js +6 -8
  77. package/dist/rules/svelte/index.js.map +1 -1
  78. package/dist/rules/svelte/{enable.d.ts → svelte.d.ts} +2 -2
  79. package/dist/rules/svelte/svelte.d.ts.map +1 -0
  80. package/dist/rules/svelte/{enable.js → svelte.js} +2 -2
  81. package/dist/rules/svelte/{enable.js.map → svelte.js.map} +1 -1
  82. package/dist/rules/ts/disable.d.ts +1 -1
  83. package/dist/rules/ts/disable.js +1 -1
  84. package/dist/rules/ts/disable.js.map +1 -1
  85. package/dist/rules/ts/extend.d.ts +48 -0
  86. package/dist/rules/ts/extend.d.ts.map +1 -0
  87. package/dist/rules/ts/{extension/index.js → extend.js} +17 -9
  88. package/dist/rules/ts/extend.js.map +1 -0
  89. package/dist/rules/ts/index.d.ts +102 -106
  90. package/dist/rules/ts/index.d.ts.map +1 -1
  91. package/dist/rules/ts/index.js +6 -8
  92. package/dist/rules/ts/index.js.map +1 -1
  93. package/dist/rules/ts/ts.d.ts +164 -0
  94. package/dist/rules/ts/ts.d.ts.map +1 -0
  95. package/dist/rules/ts/ts.js +162 -0
  96. package/dist/rules/ts/ts.js.map +1 -0
  97. package/dist/rules/yml/{extension.d.ts → extend.d.ts} +2 -2
  98. package/dist/rules/yml/extend.d.ts.map +1 -0
  99. package/dist/rules/yml/{extension.js → extend.js} +2 -2
  100. package/dist/rules/yml/extend.js.map +1 -0
  101. package/dist/rules/yml/index.d.ts +2 -2
  102. package/dist/rules/yml/index.js +4 -4
  103. package/dist/rules/yml/index.js.map +1 -1
  104. package/dist/rules/yml/{enable.d.ts → yml.d.ts} +2 -2
  105. package/dist/rules/yml/yml.d.ts.map +1 -0
  106. package/dist/rules/yml/{enable.js → yml.js} +2 -2
  107. package/dist/rules/yml/yml.js.map +1 -0
  108. package/package.json +1 -1
  109. package/src/index.spec.ts +2 -2
  110. package/src/rules/css/index.ts +23 -2
  111. package/src/rules/html/index.ts +113 -2
  112. package/src/rules/index.ts +1 -1
  113. package/src/rules/{base.eslint.ts → js.eslint.ts} +1 -1
  114. package/src/rules/{base.stylistic.ts → js.stylistic.ts} +75 -75
  115. package/src/rules/js.ts +7 -0
  116. package/src/rules/json/index.ts +6 -6
  117. package/src/rules/json/{enable.ts → json.ts} +1 -1
  118. package/src/rules/json/plugin/{extension.ts → extend.ts} +8 -8
  119. package/src/rules/json/plugin/index.ts +1 -1
  120. package/src/rules/jsonc/index.ts +9 -2
  121. package/src/rules/jsoncc/index.ts +12 -2
  122. package/src/rules/mocha/chai/expect.ts +1 -1
  123. package/src/rules/mocha/chai/index.ts +4 -3
  124. package/src/rules/mocha/index.ts +6 -8
  125. package/src/rules/mocha/{enable.ts → mocha.ts} +2 -1
  126. package/src/rules/svelte/disable.ts +7 -7
  127. package/src/rules/svelte/extend.ts +15 -0
  128. package/src/rules/svelte/index.ts +6 -8
  129. package/src/rules/svelte/{enable.ts → svelte.ts} +2 -2
  130. package/src/rules/ts/disable.ts +1 -1
  131. package/src/rules/ts/extend.ts +51 -0
  132. package/src/rules/ts/index.ts +6 -8
  133. package/src/rules/ts/ts.ts +181 -0
  134. package/src/rules/yml/{extension.ts → extend.ts} +4 -4
  135. package/src/rules/yml/index.ts +4 -4
  136. package/src/rules/yml/{enable.ts → yml.ts} +2 -2
  137. package/dist/rules/base.eslint.d.ts.map +0 -1
  138. package/dist/rules/base.eslint.js.map +0 -1
  139. package/dist/rules/base.js +0 -7
  140. package/dist/rules/base.js.map +0 -1
  141. package/dist/rules/base.stylistic.d.ts.map +0 -1
  142. package/dist/rules/base.stylistic.js.map +0 -1
  143. package/dist/rules/css/enable.d.ts +0 -19
  144. package/dist/rules/css/enable.d.ts.map +0 -1
  145. package/dist/rules/css/enable.js +0 -17
  146. package/dist/rules/css/enable.js.map +0 -1
  147. package/dist/rules/html/enable.d.ts +0 -79
  148. package/dist/rules/html/enable.d.ts.map +0 -1
  149. package/dist/rules/html/enable.js +0 -73
  150. package/dist/rules/html/enable.js.map +0 -1
  151. package/dist/rules/json/enable.d.ts.map +0 -1
  152. package/dist/rules/json/enable.js.map +0 -1
  153. package/dist/rules/json/plugin/extension.d.ts.map +0 -1
  154. package/dist/rules/json/plugin/extension.js.map +0 -1
  155. package/dist/rules/jsonc/override.d.ts +0 -9
  156. package/dist/rules/jsonc/override.d.ts.map +0 -1
  157. package/dist/rules/jsonc/override.js +0 -7
  158. package/dist/rules/jsonc/override.js.map +0 -1
  159. package/dist/rules/jsoncc/override.d.ts +0 -12
  160. package/dist/rules/jsoncc/override.d.ts.map +0 -1
  161. package/dist/rules/jsoncc/override.js +0 -10
  162. package/dist/rules/jsoncc/override.js.map +0 -1
  163. package/dist/rules/mocha/disable.d.ts +0 -10
  164. package/dist/rules/mocha/disable.d.ts.map +0 -1
  165. package/dist/rules/mocha/disable.js +0 -8
  166. package/dist/rules/mocha/disable.js.map +0 -1
  167. package/dist/rules/mocha/enable.d.ts.map +0 -1
  168. package/dist/rules/mocha/enable.js.map +0 -1
  169. package/dist/rules/svelte/enable.d.ts.map +0 -1
  170. package/dist/rules/svelte/extension/disable.d.ts +0 -11
  171. package/dist/rules/svelte/extension/disable.d.ts.map +0 -1
  172. package/dist/rules/svelte/extension/disable.js +0 -9
  173. package/dist/rules/svelte/extension/disable.js.map +0 -1
  174. package/dist/rules/svelte/extension/index.d.ts.map +0 -1
  175. package/dist/rules/svelte/extension/index.js.map +0 -1
  176. package/dist/rules/ts/enable.d.ts +0 -164
  177. package/dist/rules/ts/enable.d.ts.map +0 -1
  178. package/dist/rules/ts/enable.js +0 -162
  179. package/dist/rules/ts/enable.js.map +0 -1
  180. package/dist/rules/ts/extension/disable.d.ts +0 -16
  181. package/dist/rules/ts/extension/disable.d.ts.map +0 -1
  182. package/dist/rules/ts/extension/disable.js +0 -14
  183. package/dist/rules/ts/extension/disable.js.map +0 -1
  184. package/dist/rules/ts/extension/index.d.ts +0 -40
  185. package/dist/rules/ts/extension/index.d.ts.map +0 -1
  186. package/dist/rules/ts/extension/index.js.map +0 -1
  187. package/dist/rules/yml/enable.d.ts.map +0 -1
  188. package/dist/rules/yml/enable.js.map +0 -1
  189. package/dist/rules/yml/extension.d.ts.map +0 -1
  190. package/dist/rules/yml/extension.js.map +0 -1
  191. package/src/rules/base.ts +0 -7
  192. package/src/rules/css/enable.ts +0 -22
  193. package/src/rules/html/enable.ts +0 -112
  194. package/src/rules/jsonc/override.ts +0 -8
  195. package/src/rules/jsoncc/override.ts +0 -11
  196. package/src/rules/mocha/disable.ts +0 -10
  197. package/src/rules/svelte/extension/disable.ts +0 -10
  198. package/src/rules/svelte/extension/index.ts +0 -13
  199. package/src/rules/ts/enable.ts +0 -181
  200. package/src/rules/ts/extension/disable.ts +0 -31
  201. package/src/rules/ts/extension/index.ts +0 -58
@@ -2,11 +2,11 @@ import { State } from "./state";
2
2
 
3
3
  // DOC: https://eslint.style/rules
4
4
  export default {
5
- id: "enable/stylistic",
5
+ name: "enable/stylistic",
6
6
  rules: {
7
- "@stylistic/array-bracket-newline": State.ON,
8
- "@stylistic/array-bracket-spacing": State.ON,
9
- "@stylistic/array-element-newline": [
7
+ "stylistic/array-bracket-newline": State.ON,
8
+ "stylistic/array-bracket-spacing": State.ON,
9
+ "stylistic/array-element-newline": [
10
10
  State.ON,
11
11
  {
12
12
  consistent: true,
@@ -14,44 +14,44 @@ export default {
14
14
  minItems: 3,
15
15
  } /* never | consistent | @default always | { ... } */,
16
16
  ],
17
- "@stylistic/arrow-parens": [
17
+ "stylistic/arrow-parens": [
18
18
  State.ON,
19
19
  "as-needed" /* as-needed | @default always */,
20
20
  ],
21
- "@stylistic/arrow-spacing": State.ON,
22
- "@stylistic/block-spacing": State.ON,
23
- "@stylistic/brace-style": [
21
+ "stylistic/arrow-spacing": State.ON,
22
+ "stylistic/block-spacing": State.ON,
23
+ "stylistic/brace-style": [
24
24
  State.ON,
25
25
  "stroustrup" /* stroustrup | allman | @default 1tbs */,
26
26
  {
27
27
  allowSingleLine: true /* @default false */,
28
28
  },
29
29
  ],
30
- "@stylistic/comma-dangle": [
30
+ "stylistic/comma-dangle": [
31
31
  State.ON,
32
32
  "always-multiline",
33
33
  ],
34
- "@stylistic/comma-spacing": State.ON,
35
- "@stylistic/comma-style": State.ON,
36
- "@stylistic/computed-property-spacing": State.ON,
37
- "@stylistic/curly-newline": State.ON,
38
- "@stylistic/dot-location": [
34
+ "stylistic/comma-spacing": State.ON,
35
+ "stylistic/comma-style": State.ON,
36
+ "stylistic/computed-property-spacing": State.ON,
37
+ "stylistic/curly-newline": State.ON,
38
+ "stylistic/dot-location": [
39
39
  State.ON,
40
40
  "property" /* property | @default object */,
41
41
  ],
42
- "@stylistic/eol-last": State.ON,
43
- "@stylistic/function-call-argument-newline": [
42
+ "stylistic/eol-last": State.ON,
43
+ "stylistic/function-call-argument-newline": [
44
44
  State.ON,
45
45
  "consistent" /* consistent | never | @default always */,
46
46
  ],
47
- "@stylistic/function-call-spacing": State.ON,
48
- "@stylistic/function-paren-newline": [
47
+ "stylistic/function-call-spacing": State.ON,
48
+ "stylistic/function-paren-newline": [
49
49
  State.ON,
50
50
  "multiline-arguments",
51
51
  ] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
52
- "@stylistic/generator-star-spacing": State.ON,
53
- "@stylistic/implicit-arrow-linebreak": State.ON,
54
- "@stylistic/indent": [
52
+ "stylistic/generator-star-spacing": State.ON,
53
+ "stylistic/implicit-arrow-linebreak": State.ON,
54
+ "stylistic/indent": [
55
55
  State.ON,
56
56
  2 /* tab | number | @default 4 */,
57
57
  {
@@ -65,15 +65,15 @@ export default {
65
65
  offsetTernaryExpressions: true,
66
66
  },
67
67
  ],
68
- "@stylistic/indent-binary-ops": [
68
+ "stylistic/indent-binary-ops": [
69
69
  State.ON,
70
- 2 /* MUST be same as `@stylistic/indent`[1] */,
70
+ 2 /* MUST be same as `stylistic/indent`[1] */,
71
71
  ],
72
- "@stylistic/key-spacing": State.ON,
73
- "@stylistic/keyword-spacing": State.ON,
74
- // "@stylistic/line-comment-position": State.OFF,
75
- // "@stylistic/lines-around-comment": State.OFF,
76
- "@stylistic/lines-between-class-members": [
72
+ "stylistic/key-spacing": State.ON,
73
+ "stylistic/keyword-spacing": State.ON,
74
+ // "stylistic/line-comment-position": State.OFF,
75
+ // "stylistic/lines-around-comment": State.OFF,
76
+ "stylistic/lines-between-class-members": [
77
77
  State.ON,
78
78
  {
79
79
  enforce: [
@@ -95,7 +95,7 @@ export default {
95
95
  ],
96
96
  },
97
97
  ],
98
- "@stylistic/max-len": [
98
+ "stylistic/max-len": [
99
99
  State.ON,
100
100
  {
101
101
  code: 300 /* @default 80 */,
@@ -108,22 +108,22 @@ export default {
108
108
  ignoreRegExpLiterals: true,
109
109
  },
110
110
  ],
111
- "@stylistic/max-statements-per-line": State.ON,
112
- "@stylistic/member-delimiter-style": State.ON,
113
- // "@stylistic/multiline-comment-style": State.OFF,
114
- "@stylistic/multiline-ternary": [
111
+ "stylistic/max-statements-per-line": State.ON,
112
+ "stylistic/member-delimiter-style": State.ON,
113
+ // "stylistic/multiline-comment-style": State.OFF,
114
+ "stylistic/multiline-ternary": [
115
115
  State.ON,
116
116
  "always-multiline" /* never | always-multiline | @default always */,
117
117
  ],
118
- // "@stylistic/new-parens": State.OFF,
119
- "@stylistic/newline-per-chained-call": State.ON,
120
- // "@stylistic/no-confusing-arrow": State.OFF,
121
- "@stylistic/no-extra-parens": State.ON,
122
- "@stylistic/no-extra-semi": State.ON,
123
- "@stylistic/no-floating-decimal": State.ON,
124
- // "@stylistic/no-mixed-operators": State.OFF,
125
- "@stylistic/no-mixed-spaces-and-tabs": State.ON,
126
- "@stylistic/no-multi-spaces": [
118
+ // "stylistic/new-parens": State.OFF,
119
+ "stylistic/newline-per-chained-call": State.ON,
120
+ // "stylistic/no-confusing-arrow": State.OFF,
121
+ "stylistic/no-extra-parens": State.ON,
122
+ "stylistic/no-extra-semi": State.ON,
123
+ "stylistic/no-floating-decimal": State.ON,
124
+ // "stylistic/no-mixed-operators": State.OFF,
125
+ "stylistic/no-mixed-spaces-and-tabs": State.ON,
126
+ "stylistic/no-multi-spaces": [
127
127
  State.ON,
128
128
  {
129
129
  exceptions: {
@@ -132,7 +132,7 @@ export default {
132
132
  },
133
133
  },
134
134
  ],
135
- "@stylistic/no-multiple-empty-lines": [
135
+ "stylistic/no-multiple-empty-lines": [
136
136
  State.ON,
137
137
  {
138
138
  max: 1 /* @default 2 */,
@@ -140,14 +140,14 @@ export default {
140
140
  maxEOF: 0 /* combine with `eol-last` to ensure file still ends with a single line-break (eol character) */,
141
141
  },
142
142
  ],
143
- "@stylistic/no-tabs": State.ON,
144
- "@stylistic/no-trailing-spaces": State.ON,
145
- "@stylistic/no-whitespace-before-property": State.ON,
146
- "@stylistic/nonblock-statement-body-position": [
143
+ "stylistic/no-tabs": State.ON,
144
+ "stylistic/no-trailing-spaces": State.ON,
145
+ "stylistic/no-whitespace-before-property": State.ON,
146
+ "stylistic/nonblock-statement-body-position": [
147
147
  State.ON,
148
148
  "below" /* any | below | @default beside */,
149
149
  ],
150
- "@stylistic/object-curly-newline": [
150
+ "stylistic/object-curly-newline": [
151
151
  State.ON,
152
152
  {
153
153
  consistent: true,
@@ -155,30 +155,30 @@ export default {
155
155
  minProperties: 3,
156
156
  },
157
157
  ],
158
- "@stylistic/object-curly-spacing": [
158
+ "stylistic/object-curly-spacing": [
159
159
  State.ON,
160
160
  "always" /* always | @default never */,
161
161
  {
162
162
  emptyObjects: "never",
163
163
  },
164
164
  ],
165
- "@stylistic/object-property-newline": State.ON,
166
- "@stylistic/one-var-declaration-per-line": [
165
+ "stylistic/object-property-newline": State.ON,
166
+ "stylistic/one-var-declaration-per-line": [
167
167
  State.ON,
168
168
  "always" /* always | @default initializations */,
169
169
  ],
170
- "@stylistic/operator-linebreak": [
170
+ "stylistic/operator-linebreak": [
171
171
  State.ON,
172
172
  "before" /* ignore | none | before | @default after */,
173
173
  ],
174
- "@stylistic/padded-blocks": [
174
+ "stylistic/padded-blocks": [
175
175
  State.ON,
176
176
  "never" /* never | start | end | @default always */,
177
177
  {
178
178
  allowSingleLineBlocks: true,
179
179
  },
180
180
  ],
181
- "@stylistic/padding-line-between-statements": [
181
+ "stylistic/padding-line-between-statements": [
182
182
  State.WARN,
183
183
  // #region *<
184
184
  {
@@ -378,14 +378,14 @@ export default {
378
378
  },
379
379
  // #endregion
380
380
  ],
381
- "@stylistic/quote-props": [
381
+ "stylistic/quote-props": [
382
382
  State.ON,
383
383
  "as-needed",
384
384
  {
385
385
  keywords: true,
386
386
  },
387
387
  ],
388
- "@stylistic/quotes": [
388
+ "stylistic/quotes": [
389
389
  State.ON,
390
390
  "double" /* @default double */,
391
391
  {
@@ -393,21 +393,21 @@ export default {
393
393
  allowTemplateLiterals: "always" /* always | avoidEscape | @default never */,
394
394
  },
395
395
  ],
396
- "@stylistic/rest-spread-spacing": State.ON,
397
- "@stylistic/semi": State.ON,
398
- "@stylistic/semi-spacing": State.ON,
399
- "@stylistic/semi-style": State.ON,
400
- "@stylistic/space-before-blocks": State.ON,
401
- "@stylistic/space-before-function-paren": [
396
+ "stylistic/rest-spread-spacing": State.ON,
397
+ "stylistic/semi": State.ON,
398
+ "stylistic/semi-spacing": State.ON,
399
+ "stylistic/semi-style": State.ON,
400
+ "stylistic/space-before-blocks": State.ON,
401
+ "stylistic/space-before-function-paren": [
402
402
  State.ON,
403
403
  {
404
404
  named: "never",
405
405
  },
406
406
  ],
407
- "@stylistic/space-in-parens": State.ON,
408
- "@stylistic/space-infix-ops": State.ON,
409
- "@stylistic/space-unary-ops": State.ON,
410
- "@stylistic/spaced-comment": [
407
+ "stylistic/space-in-parens": State.ON,
408
+ "stylistic/space-infix-ops": State.ON,
409
+ "stylistic/space-unary-ops": State.ON,
410
+ "stylistic/spaced-comment": [
411
411
  State.ON,
412
412
  "always",
413
413
  {
@@ -438,10 +438,10 @@ export default {
438
438
  },
439
439
  },
440
440
  ],
441
- "@stylistic/switch-colon-spacing": State.ON,
442
- "@stylistic/template-curly-spacing": State.ON,
443
- "@stylistic/template-tag-spacing": State.ON,
444
- "@stylistic/type-annotation-spacing": [
441
+ "stylistic/switch-colon-spacing": State.ON,
442
+ "stylistic/template-curly-spacing": State.ON,
443
+ "stylistic/template-tag-spacing": State.ON,
444
+ "stylistic/type-annotation-spacing": [
445
445
  State.ON,
446
446
  {
447
447
  before: true,
@@ -454,16 +454,16 @@ export default {
454
454
  },
455
455
  } /* non-overriden rule affects all type annotations (arrows, "as" keyword, "satisfies" keyword) except colons */,
456
456
  ],
457
- "@stylistic/type-generic-spacing": State.ON,
458
- "@stylistic/type-named-tuple-spacing": State.ON,
459
- "@stylistic/wrap-iife": [
457
+ "stylistic/type-generic-spacing": State.ON,
458
+ "stylistic/type-named-tuple-spacing": State.ON,
459
+ "stylistic/wrap-iife": [
460
460
  State.ON,
461
461
  "inside",
462
462
  {
463
463
  functionPrototypeMethods: true,
464
464
  },
465
465
  ],
466
- "@stylistic/wrap-regex": State.ON,
467
- "@stylistic/yield-star-spacing": State.ON,
466
+ "stylistic/wrap-regex": State.ON,
467
+ "stylistic/yield-star-spacing": State.ON,
468
468
  } as const,
469
469
  };
@@ -0,0 +1,7 @@
1
+ import eslint from "./js.eslint";
2
+ import stylistic from "./js.stylistic";
3
+
4
+ export default [
5
+ eslint,
6
+ stylistic,
7
+ ];
@@ -1,9 +1,9 @@
1
- import JsonEnable from "./enable";
2
- import JsonEnablePlugin from "./plugin";
3
- import JsonEnablePluginExtension from "./plugin/extension";
1
+ import json from "./json";
2
+ import jsonc from "./plugin";
3
+ import jsoncExtend from "./plugin/extend";
4
4
 
5
5
  export default [
6
- JsonEnable,
7
- JsonEnablePlugin,
8
- JsonEnablePluginExtension,
6
+ json,
7
+ jsonc,
8
+ jsoncExtend,
9
9
  ];
@@ -2,7 +2,7 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: https://github.com/eslint/json?tab=readme-ov-file#rules
4
4
  export default {
5
- id: "enable",
5
+ name: "json",
6
6
  rules: {
7
7
  "json/no-duplicate-keys": State.ON /* replaces jsonc/no-dupe-keys */,
8
8
  // "json/no-empty-keys": State.OFF /* preference */,
@@ -2,21 +2,21 @@ import { State } from "../../state";
2
2
 
3
3
  // DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
4
4
  export default {
5
- id: "enable/plugin/extension",
5
+ name: "jsonc/json/extend",
6
6
  rules: {
7
- // "jsonc/array-bracket-newline": State.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) */,
8
- "jsonc/array-bracket-spacing": State.ON /* MUST match @stylistic/array-bracket-spacing */,
7
+ // "jsonc/array-bracket-newline": State.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) */,
8
+ "jsonc/array-bracket-spacing": State.ON /* MUST match stylistic/array-bracket-spacing */,
9
9
  "jsonc/array-element-newline": [
10
10
  State.ON,
11
11
  "consistent",
12
- ] /* WOULD match @stylistic/array-element-newline, but jsonc plugin has slightly different options */,
12
+ ] /* WOULD match stylistic/array-element-newline, but jsonc plugin has slightly different options */,
13
13
  "jsonc/comma-dangle": State.ON /* trailing commas are NOT allowed in JSState.ON */,
14
14
  "jsonc/comma-style": State.ON,
15
15
  "jsonc/indent": [
16
16
  State.ON,
17
17
  2,
18
18
  ],
19
- "jsonc/key-spacing": State.ON /* MUST match @stylistic/key-spacing */,
19
+ "jsonc/key-spacing": State.ON /* MUST match stylistic/key-spacing */,
20
20
  // "jsonc/no-dupe-keys": State.OFF /* ESLint: json/no-duplicate-keys */,
21
21
  "jsonc/no-floating-decimal": State.ON,
22
22
  "jsonc/no-irregular-whitespace": [
@@ -41,12 +41,12 @@ export default {
41
41
  multiline: true,
42
42
  minProperties: 2 /* instead of 3 in stylistic */,
43
43
  },
44
- ] /* @OVERRIDE @stylistic/object-curly-newline */,
44
+ ] /* @OVERRIDE stylistic/object-curly-newline */,
45
45
  "jsonc/object-curly-spacing": [
46
46
  State.ON,
47
47
  "always",
48
- ] /* MUST match @stylistic/object-curly-spacing (except unsupported 3rd options) */,
49
- "jsonc/object-property-newline": State.ON /* MUST match @stylistic/object-property-newline */,
48
+ ] /* MUST match stylistic/object-curly-spacing (except unsupported 3rd options) */,
49
+ "jsonc/object-property-newline": State.ON /* MUST match stylistic/object-property-newline */,
50
50
  "jsonc/quote-props": State.ON,
51
51
  "jsonc/quotes": State.ON,
52
52
  "jsonc/space-unary-ops": State.ON,
@@ -2,7 +2,7 @@ import { State } from "../../state";
2
2
 
3
3
  // DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
4
4
  export default {
5
- id: "enable/plugin",
5
+ name: "jsonc/json",
6
6
  rules: {
7
7
  // "jsonc/auto": State.OFF,
8
8
  // "jsonc/key-name-casing": State.OFF,
@@ -1,3 +1,10 @@
1
- import JsoncPluginDisable from "./override";
1
+ import { State } from "../state";
2
2
 
3
- export default [JsoncPluginDisable];
3
+ export default [
4
+ {
5
+ name: "jsonc/jsonc",
6
+ rules: {
7
+ "jsonc/no-comments": State.OFF /* comments ARE allowed in JSONC */,
8
+ } as const,
9
+ },
10
+ ];
@@ -1,3 +1,13 @@
1
- import JsoncCommaPluginDisable from "./override";
1
+ import { State } from "../state";
2
2
 
3
- export default [JsoncCommaPluginDisable];
3
+ export default [
4
+ {
5
+ name: "jsonc/jsoncc",
6
+ rules: {
7
+ "jsonc/comma-dangle": [
8
+ State.ON,
9
+ "always-multiline",
10
+ ] /* trailing commas ARE allowed in JSONC */,
11
+ } as const,
12
+ },
13
+ ];
@@ -2,7 +2,7 @@ import { State } from "../../state";
2
2
 
3
3
  // DOC: https://github.com/turbo87/eslint-plugin-chai-expect?tab=readme-ov-file#rules
4
4
  export default {
5
- id: "enable/chai/expect",
5
+ name: "chai-expect",
6
6
  rules: {
7
7
  "chai-expect/no-inner-compare": State.ON,
8
8
  "chai-expect/no-inner-literal": State.ON,
@@ -2,14 +2,15 @@ import { State } from "../../state";
2
2
 
3
3
  // DOC: https://github.com/ihordiachenko/eslint-plugin-chai-friendly?tab=readme-ov-file#usage
4
4
  export default {
5
- id: "enable/chai",
5
+ name: "chai",
6
6
  rules: {
7
- "chai-friendly/no-unused-expressions": [
7
+ /* @OVERRIDE */ "no-unused-expressions": State.OFF /* INFO: looks like these guys got the hint too ;) https://github.com/ihordiachenko/eslint-plugin-chai-friendly/releases/tag/v1.1.0 */,
8
+ "chai/no-unused-expressions": [
8
9
  State.ON,
9
10
  {
10
11
  allowShortCircuit: true,
11
12
  allowTernary: true,
12
13
  },
13
- ] /* TSLint */,
14
+ ],
14
15
  } as const,
15
16
  };
@@ -1,11 +1,9 @@
1
- import MochaDisable from "./disable";
2
- import MochaEnable from "./enable";
3
- import MochaEnablePluginChai from "./chai";
4
- import MochaEnablePluginChaiExpect from "./chai/expect";
1
+ import mocha from "./mocha";
2
+ import chai from "./chai";
3
+ import chaiExpect from "./chai/expect";
5
4
 
6
5
  export default [
7
- MochaDisable,
8
- MochaEnable,
9
- MochaEnablePluginChai,
10
- MochaEnablePluginChaiExpect,
6
+ mocha,
7
+ chai,
8
+ chaiExpect,
11
9
  ];
@@ -2,7 +2,7 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
4
4
  export default {
5
- id: "enable",
5
+ name: "mocha",
6
6
  rules: {
7
7
  // "mocha/consistent-interface": State.OFF /* unable, must choose BDD or TDD first */,
8
8
  // "mocha/consistent-spacing-between-blocks": State.OFF,
@@ -25,6 +25,7 @@ export default {
25
25
  "mocha/no-sibling-hooks": State.ON,
26
26
  // "mocha/no-synchronous-tests": State.OFF,
27
27
  "mocha/no-top-level-hooks": State.ON,
28
+ /* @OVERRIDE */ "prefer-arrow-callback": State.OFF /* TS-capable */,
28
29
  "mocha/prefer-arrow-callback": State.ON /* MUST match ../js/enable.ts, which is TS-capable -- is this?? */,
29
30
  // "mocha/valid-suite-title": State.OFF /* preference */,
30
31
  // "mocha/valid-test-title": State.OFF /* preference */,
@@ -1,17 +1,17 @@
1
1
  import { State } from "../state";
2
2
 
3
+ // DOC: https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
3
4
  export default {
4
- id: "disable",
5
+ name: "svelte/disable",
5
6
  rules: {
6
7
  // ESLint core rules known to cause problems with `.svelte`.
7
- // DOC: https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
8
- "no-inner-declarations": State.OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. */,
9
- "no-self-assign": State.OFF /* Self assign is one of way to update reactive value in Svelte */,
8
+ "no-inner-declarations": State.OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. INFO: also extended by svelte */,
9
+ "no-self-assign": State.OFF /* Self assign is one of way to update reactive value in Svelte. */,
10
10
  "no-unused-vars": State.OFF /* breaks use of svelte global */,
11
- "@typescript-eslint/no-unused-vars": State.OFF /* TS: breaks use of svelte global */,
11
+ "ts/no-unused-vars": State.OFF /* TS: breaks use of svelte global */,
12
12
  "prefer-const": State.OFF /* svelte/prefer-const */,
13
13
  // My own
14
- "@stylistic/indent": State.OFF /* Conflicts with `svelte/indent` */,
15
- "@typescript-eslint/no-confusing-void-expression": State.OFF /* errors on render() */,
14
+ "stylistic/indent": State.OFF /* Conflicts with `svelte/indent` */,
15
+ "ts/no-confusing-void-expression": State.OFF /* errors on render() */,
16
16
  } as const,
17
17
  };
@@ -0,0 +1,15 @@
1
+ import { State } from "../state";
2
+
3
+ // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
4
+ export default {
5
+ name: "svelte/extend",
6
+ rules: {
7
+ "no-inner-declarations": State.OFF /* INFO: also disabled by svelte */,
8
+ "svelte/no-inner-declarations": [
9
+ State.ON,
10
+ "both",
11
+ ] /* same options: no-inner-declarations */,
12
+ "stylistic/no-trailing-spaces": State.OFF /* replaces `no-trailing-spaces` */,
13
+ "svelte/no-trailing-spaces": State.ON /* same options: stylistic/no-trailing-spaces */,
14
+ } as const,
15
+ };
@@ -1,11 +1,9 @@
1
- import SvelteDisable from "./disable";
2
- import SvelteDisableExtension from "./extension/disable";
3
- import SvelteEnable from "./enable";
4
- import SvelteEnableExtension from "./extension";
1
+ import disable from "./disable";
2
+ import svelte from "./svelte";
3
+ import extend from "./extend";
5
4
 
6
5
  export default [
7
- SvelteDisable,
8
- SvelteDisableExtension,
9
- SvelteEnable,
10
- SvelteEnableExtension,
6
+ disable,
7
+ svelte,
8
+ extend,
11
9
  ];
@@ -2,7 +2,7 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/
4
4
  export default {
5
- id: "enable",
5
+ name: "svelte",
6
6
  rules: {
7
7
  // #region ERRORS
8
8
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#possible-errors
@@ -118,7 +118,7 @@ export default {
118
118
  "svelte/shorthand-attribute": State.ON,
119
119
  "svelte/shorthand-directive": State.ON,
120
120
  // "svelte/sort-attributes": State.OFF /* INVESTIGATE: */,
121
- "svelte/spaced-html-comment": State.ON /* INFO: does not have third object option (exceptions/markers), unlike @stylistic/spaced-comment */,
121
+ "svelte/spaced-html-comment": State.ON /* INFO: does not have third object option (exceptions/markers), unlike stylistic/spaced-comment */,
122
122
  // #endregion
123
123
 
124
124
  // #region SVELTE-KIT
@@ -1,7 +1,7 @@
1
1
  import { State } from "../state";
2
2
 
3
3
  export default {
4
- id: "disable",
4
+ name: "disable",
5
5
  rules: {
6
6
  // Handled by TypeScript compiler
7
7
  "consistent-return": State.OFF /* TSLint BUT tsc */,
@@ -0,0 +1,51 @@
1
+ import { State } from "../state";
2
+
3
+ // DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
4
+ export default {
5
+ name: "enable/extension",
6
+ rules: {
7
+ /* @OVERRIDE */ "dot-notation": State.OFF,
8
+ "ts/dot-notation": [
9
+ State.ON,
10
+ {
11
+ // TS-only:
12
+ allowPrivateClassPropertyAccess: true,
13
+ allowProtectedClassPropertyAccess: true,
14
+ allowIndexSignaturePropertyAccess: true,
15
+ },
16
+ ],
17
+ /* @OVERRIDE */ "no-implied-eval": State.OFF,
18
+ "ts/no-implied-eval": State.ON,
19
+ // "ts/no-redeclare": State.OFF /* tsc (let, const, -var) */,
20
+ /* @OVERRIDE */ "no-restricted-imports": State.OFF,
21
+ // "ts/no-restricted-imports": State.OFF /* preference */,
22
+ /* @OVERRIDE */ "no-unused-vars": State.OFF,
23
+ "ts/no-unused-vars": State.ON,
24
+ /* @OVERRIDE */ "no-throw-literal": State.OFF,
25
+ "ts/only-throw-error": [
26
+ State.ON,
27
+ {
28
+ allowThrowingAny: false,
29
+ },
30
+ ],
31
+ /* @OVERRIDE */ "prefer-destructuring": State.OFF,
32
+ "ts/prefer-destructuring": [
33
+ State.ON,
34
+ {
35
+ AssignmentExpression: {
36
+ array: false,
37
+ object: false,
38
+ },
39
+ },
40
+ ],
41
+ /* @OVERRIDE */ "prefer-promise-reject-errors": State.OFF,
42
+ "ts/prefer-promise-reject-errors": [
43
+ State.ON,
44
+ {
45
+ allowThrowingUnknown: true,
46
+ },
47
+ ],
48
+ /* @OVERRIDE */ "require-await": State.OFF,
49
+ "ts/require-await": State.ON,
50
+ } as const,
51
+ };
@@ -1,11 +1,9 @@
1
- import TsDisable from "./disable";
2
- import TsDisableExtension from "./extension/disable";
3
- import TsEnable from "./enable";
4
- import TsEnableExtension from "./extension";
1
+ import disable from "./disable";
2
+ import ts from "./ts";
3
+ import extend from "./extend";
5
4
 
6
5
  export default [
7
- TsDisable,
8
- TsDisableExtension,
9
- TsEnable,
10
- TsEnableExtension,
6
+ disable,
7
+ ts,
8
+ extend,
11
9
  ];