@eslinted/defaults 12.9.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 (128) hide show
  1. package/dist/ignores/global.js +0 -2
  2. package/dist/ignores/global.js.map +1 -1
  3. package/dist/index.d.ts +170 -1435
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/rules/index.d.ts +159 -817
  6. package/dist/rules/index.d.ts.map +1 -1
  7. package/dist/rules/scopes/css/enable.d.ts +2 -7
  8. package/dist/rules/scopes/css/enable.d.ts.map +1 -1
  9. package/dist/rules/scopes/css/enable.js +3 -19
  10. package/dist/rules/scopes/css/enable.js.map +1 -1
  11. package/dist/rules/scopes/css/index.d.ts +2 -7
  12. package/dist/rules/scopes/css/index.d.ts.map +1 -1
  13. package/dist/rules/scopes/enable.d.ts +35 -186
  14. package/dist/rules/scopes/enable.d.ts.map +1 -1
  15. package/dist/rules/scopes/enable.js +68 -329
  16. package/dist/rules/scopes/enable.js.map +1 -1
  17. package/dist/rules/scopes/enable.style.d.ts +42 -250
  18. package/dist/rules/scopes/enable.style.d.ts.map +1 -1
  19. package/dist/rules/scopes/enable.style.js +45 -388
  20. package/dist/rules/scopes/enable.style.js.map +1 -1
  21. package/dist/rules/scopes/html/index.d.ts +5 -18
  22. package/dist/rules/scopes/html/index.d.ts.map +1 -1
  23. package/dist/rules/scopes/html/plugin/index.d.ts +5 -18
  24. package/dist/rules/scopes/html/plugin/index.d.ts.map +1 -1
  25. package/dist/rules/scopes/html/plugin/index.js +7 -63
  26. package/dist/rules/scopes/html/plugin/index.js.map +1 -1
  27. package/dist/rules/scopes/index.d.ts +77 -436
  28. package/dist/rules/scopes/index.d.ts.map +1 -1
  29. package/dist/rules/scopes/json/enable.js +2 -7
  30. package/dist/rules/scopes/json/enable.js.map +1 -1
  31. package/dist/rules/scopes/json/index.d.ts +7 -20
  32. package/dist/rules/scopes/json/index.d.ts.map +1 -1
  33. package/dist/rules/scopes/json/plugin/extension.d.ts +7 -20
  34. package/dist/rules/scopes/json/plugin/extension.d.ts.map +1 -1
  35. package/dist/rules/scopes/json/plugin/extension.js +9 -48
  36. package/dist/rules/scopes/json/plugin/extension.js.map +1 -1
  37. package/dist/rules/scopes/json/plugin/index.js +2 -9
  38. package/dist/rules/scopes/json/plugin/index.js.map +1 -1
  39. package/dist/rules/scopes/jsonc/plugin/index.js +1 -2
  40. package/dist/rules/scopes/jsonc/plugin/index.js.map +1 -1
  41. package/dist/rules/scopes/jsoncc/plugin/index.js +1 -2
  42. package/dist/rules/scopes/jsoncc/plugin/index.js.map +1 -1
  43. package/dist/rules/scopes/mocha/chai/expect.js +1 -5
  44. package/dist/rules/scopes/mocha/chai/expect.js.map +1 -1
  45. package/dist/rules/scopes/mocha/chai/index.d.ts +0 -2
  46. package/dist/rules/scopes/mocha/chai/index.d.ts.map +1 -1
  47. package/dist/rules/scopes/mocha/chai/index.js +1 -4
  48. package/dist/rules/scopes/mocha/chai/index.js.map +1 -1
  49. package/dist/rules/scopes/mocha/disable.js +2 -3
  50. package/dist/rules/scopes/mocha/disable.js.map +1 -1
  51. package/dist/rules/scopes/mocha/enable.d.ts +3 -10
  52. package/dist/rules/scopes/mocha/enable.d.ts.map +1 -1
  53. package/dist/rules/scopes/mocha/enable.js +4 -31
  54. package/dist/rules/scopes/mocha/enable.js.map +1 -1
  55. package/dist/rules/scopes/mocha/index.d.ts +3 -12
  56. package/dist/rules/scopes/mocha/index.d.ts.map +1 -1
  57. package/dist/rules/scopes/svelte/disable.js +6 -9
  58. package/dist/rules/scopes/svelte/disable.js.map +1 -1
  59. package/dist/rules/scopes/svelte/enable.d.ts +19 -91
  60. package/dist/rules/scopes/svelte/enable.d.ts.map +1 -1
  61. package/dist/rules/scopes/svelte/enable.js +23 -179
  62. package/dist/rules/scopes/svelte/enable.js.map +1 -1
  63. package/dist/rules/scopes/svelte/extension/disable.js +2 -3
  64. package/dist/rules/scopes/svelte/extension/disable.js.map +1 -1
  65. package/dist/rules/scopes/svelte/extension/index.d.ts +2 -7
  66. package/dist/rules/scopes/svelte/extension/index.d.ts.map +1 -1
  67. package/dist/rules/scopes/svelte/extension/index.js +3 -13
  68. package/dist/rules/scopes/svelte/extension/index.js.map +1 -1
  69. package/dist/rules/scopes/svelte/index.d.ts +21 -98
  70. package/dist/rules/scopes/svelte/index.d.ts.map +1 -1
  71. package/dist/rules/scopes/ts/disable.js +4 -5
  72. package/dist/rules/scopes/ts/disable.js.map +1 -1
  73. package/dist/rules/scopes/ts/enable.d.ts +31 -163
  74. package/dist/rules/scopes/ts/enable.d.ts.map +1 -1
  75. package/dist/rules/scopes/ts/enable.js +34 -408
  76. package/dist/rules/scopes/ts/enable.js.map +1 -1
  77. package/dist/rules/scopes/ts/extension/disable.js +1 -18
  78. package/dist/rules/scopes/ts/extension/disable.js.map +1 -1
  79. package/dist/rules/scopes/ts/extension/index.d.ts +1 -20
  80. package/dist/rules/scopes/ts/extension/index.d.ts.map +1 -1
  81. package/dist/rules/scopes/ts/extension/index.js +2 -46
  82. package/dist/rules/scopes/ts/extension/index.js.map +1 -1
  83. package/dist/rules/scopes/ts/index.d.ts +32 -183
  84. package/dist/rules/scopes/ts/index.d.ts.map +1 -1
  85. package/dist/rules/scopes/yml/index.d.ts +12 -43
  86. package/dist/rules/scopes/yml/index.d.ts.map +1 -1
  87. package/dist/rules/scopes/yml/plugin/extension.d.ts +5 -22
  88. package/dist/rules/scopes/yml/plugin/extension.d.ts.map +1 -1
  89. package/dist/rules/scopes/yml/plugin/extension.js +9 -41
  90. package/dist/rules/scopes/yml/plugin/extension.js.map +1 -1
  91. package/dist/rules/scopes/yml/plugin/index.d.ts +7 -21
  92. package/dist/rules/scopes/yml/plugin/index.d.ts.map +1 -1
  93. package/dist/rules/scopes/yml/plugin/index.js +9 -64
  94. package/dist/rules/scopes/yml/plugin/index.js.map +1 -1
  95. package/dist/settings/registry/manifests/css.js +1 -3
  96. package/dist/settings/registry/manifests/css.js.map +1 -1
  97. package/dist/settings/registry/manifests/html.js +1 -2
  98. package/dist/settings/registry/manifests/html.js.map +1 -1
  99. package/dist/settings/registry/manifests/js.js +2 -6
  100. package/dist/settings/registry/manifests/js.js.map +1 -1
  101. package/dist/settings/registry/manifests/json.js +2 -2
  102. package/dist/settings/registry/manifests/json.js.map +1 -1
  103. package/dist/settings/registry/manifests/jsonc.js +2 -6
  104. package/dist/settings/registry/manifests/jsonc.js.map +1 -1
  105. package/dist/settings/registry/manifests/jsoncc.js +2 -6
  106. package/dist/settings/registry/manifests/jsoncc.js.map +1 -1
  107. package/dist/settings/registry/manifests/mocha.js +2 -6
  108. package/dist/settings/registry/manifests/mocha.js.map +1 -1
  109. package/dist/settings/registry/manifests/ts.js +7 -20
  110. package/dist/settings/registry/manifests/ts.js.map +1 -1
  111. package/dist/settings/registry/manifests/yml.js +1 -4
  112. package/dist/settings/registry/manifests/yml.js.map +1 -1
  113. package/package.json +1 -1
  114. package/src/rules/scopes/css/enable.ts +2 -13
  115. package/src/rules/scopes/enable.style.ts +67 -391
  116. package/src/rules/scopes/enable.ts +132 -318
  117. package/src/rules/scopes/html/plugin/index.ts +18 -40
  118. package/src/rules/scopes/json/plugin/extension.ts +9 -47
  119. package/src/rules/scopes/mocha/chai/index.ts +0 -2
  120. package/src/rules/scopes/mocha/enable.ts +3 -19
  121. package/src/rules/scopes/svelte/disable.ts +1 -1
  122. package/src/rules/scopes/svelte/enable.ts +22 -157
  123. package/src/rules/scopes/svelte/extension/index.ts +1 -11
  124. package/src/rules/scopes/ts/enable.ts +34 -424
  125. package/src/rules/scopes/ts/extension/index.ts +2 -27
  126. package/src/rules/scopes/yml/plugin/extension.ts +4 -37
  127. package/src/rules/scopes/yml/plugin/index.ts +8 -58
  128. package/tsconfig.json +2 -2
@@ -1,57 +1,23 @@
1
- import { ID, OFF, WARN, ON, all, always_multiline, always, as_needed, before, below, beside, consistent, double, inside, last, never, strict, wildcard, } from "../_strings/index.js";
1
+ import { ID, WARN, ON, always_multiline, always, as_needed, before, below, consistent, double, inside, never, wildcard, } from "../_strings/index.js";
2
2
  export const EnableStyle = {
3
3
  id: ID.Enable.Style,
4
4
  rules: {
5
- // DOC: https://eslint.style/rules
6
- "@stylistic/array-bracket-newline": [
7
- ON,
8
- {
9
- multiline: true,
10
- minItems: null,
11
- },
12
- ],
13
- "@stylistic/array-bracket-spacing": [
14
- ON,
15
- never,
16
- {
17
- singleValue: false,
18
- objectsInArrays: false,
19
- arraysInArrays: false,
20
- },
21
- ],
5
+ "@stylistic/array-bracket-newline": ON,
6
+ "@stylistic/array-bracket-spacing": ON,
22
7
  "@stylistic/array-element-newline": [
23
8
  ON,
24
9
  {
25
- ArrayExpression: {
26
- consistent: true,
27
- multiline: true,
28
- minItems: 3,
29
- },
30
- ArrayPattern: {
31
- consistent: true,
32
- multiline: true,
33
- minItems: 3,
34
- },
10
+ consistent: true,
11
+ multiline: true,
12
+ minItems: 3,
35
13
  },
36
14
  ],
37
15
  "@stylistic/arrow-parens": [
38
16
  ON,
39
17
  as_needed,
40
- {
41
- requireForBlockBody: false,
42
- },
43
- ],
44
- "@stylistic/arrow-spacing": [
45
- ON,
46
- {
47
- before: true,
48
- after: true,
49
- },
50
- ],
51
- "@stylistic/block-spacing": [
52
- ON,
53
- always,
54
18
  ],
19
+ "@stylistic/arrow-spacing": ON,
20
+ "@stylistic/block-spacing": ON,
55
21
  "@stylistic/brace-style": [
56
22
  ON,
57
23
  "stroustrup",
@@ -63,161 +29,45 @@ export const EnableStyle = {
63
29
  ON,
64
30
  always_multiline,
65
31
  ],
66
- "@stylistic/comma-spacing": [
67
- ON,
68
- {
69
- before: false,
70
- after: true,
71
- },
72
- ],
73
- "@stylistic/comma-style": [
74
- ON,
75
- last,
76
- {
77
- exceptions: {
78
- ArrayExpression: false /* ignores comma style in array literals */,
79
- ArrayPattern: false /* ignores comma style in array patterns of destructuring */,
80
- ArrowFunctionExpression: false /* ignores comma style in the parameters of arrow function expressions */,
81
- CallExpression: false /* ignores comma style in the arguments of function calls */,
82
- FunctionDeclaration: false /* ignores comma style in the parameters of function declarations */,
83
- FunctionExpression: false /* ignores comma style in the parameters of function expressions */,
84
- ImportDeclaration: false /* ignores comma style in the specifiers / import attributes of import declarations */,
85
- ObjectExpression: false /* ignores comma style in object literals */,
86
- ObjectPattern: false /* ignores comma style in object patterns of destructuring */,
87
- VariableDeclaration: false /* ignores comma style in variable declarations */,
88
- NewExpression: false /* ignores comma style in the parameters of constructor expressions */,
89
- ExportAllDeclaration: false /* ignores comma style in the import attributes of export all declarations */,
90
- ExportNamedDeclaration: false /* ignores comma style in the specifiers / import attributes of export named declarations */,
91
- ImportExpression: false /* ignores comma style in the arguments of import expressions */,
92
- SequenceExpression: false /* ignores comma style in sequence expressions */,
93
- ClassDeclaration: false /* ignores comma style in the TypeScript implements of class declarations */,
94
- ClassExpression: false /* ignores comma style in the TypeScript implements of class declarations */,
95
- TSDeclareFunction: false /* ignores comma style in the parameters of TypeScript declare functions */,
96
- TSFunctionType: false /* ignores comma style in the parameters of TypeScript function types */,
97
- TSConstructorType: false /* ignores comma style in the parameters of TypeScript constructor types */,
98
- TSEmptyBodyFunctionExpression: false /* ignores comma style in the parameters of TypeScript empty body function expressions */,
99
- TSMethodSignature: false /* ignores comma style in the parameters of TypeScript method signatures */,
100
- TSCallSignatureDeclaration: false /* ignores comma style in the parameters of TypeScript call signature declarations */,
101
- TSConstructSignatureDeclaration: false /* ignores comma style in the parameters of TypeScript construct signature declarations */,
102
- TSEnumBody: false /* ignores comma style in the members of TypeScript enums */,
103
- TSTypeLiteral: false /* ignores comma style in the members of TypeScript type literals */,
104
- TSInterfaceBody: false /* ignores comma style in the members of TypeScript interfaces */,
105
- TSIndexSignature: false /* ignores comma style in the key parameters of TypeScript index signatures */,
106
- TSInterfaceDeclaration: false /* ignores comma style in the extend classes of TypeScript interfaces */,
107
- TSTupleType: false /* ignores comma style in the elements of TypeScript tuple types */,
108
- TSTypeParameterDeclaration: false /* ignores comma style in the type parameters of TypeScript type parameter declarations */,
109
- TSTypeParameterInstantiation: false /* ignores comma style in the type arguments of TypeScript type parameter instantiations */,
110
- },
111
- },
112
- ],
113
- "@stylistic/computed-property-spacing": [
114
- ON,
115
- never,
116
- {
117
- enforceForClassMembers: true,
118
- },
119
- ],
120
- "@stylistic/curly-newline": [
121
- ON,
122
- {
123
- // multiline: false,
124
- // minElements: 2 /* when consistent:true, this errors if there are linebreaks with elements < minElements */,
125
- consistent: true /* @default */,
126
- },
127
- ],
32
+ "@stylistic/comma-spacing": ON,
33
+ "@stylistic/comma-style": ON,
34
+ "@stylistic/computed-property-spacing": ON,
35
+ "@stylistic/curly-newline": ON,
128
36
  "@stylistic/dot-location": [
129
37
  ON,
130
38
  "property",
131
39
  ],
132
- "@stylistic/eol-last": [
133
- ON,
134
- always,
135
- ],
40
+ "@stylistic/eol-last": ON,
136
41
  "@stylistic/function-call-argument-newline": [
137
42
  ON,
138
43
  consistent,
139
44
  ],
140
- "@stylistic/function-call-spacing": [
141
- ON,
142
- never,
143
- ],
45
+ "@stylistic/function-call-spacing": ON,
144
46
  "@stylistic/function-paren-newline": [
145
47
  ON,
146
48
  "multiline-arguments",
147
- ] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
148
- "@stylistic/generator-star-spacing": [
149
- ON,
150
- {
151
- before: true,
152
- after: false,
153
- },
154
- ],
155
- "@stylistic/implicit-arrow-linebreak": [
156
- ON,
157
- beside,
158
49
  ],
50
+ "@stylistic/generator-star-spacing": ON,
51
+ "@stylistic/implicit-arrow-linebreak": ON,
159
52
  "@stylistic/indent": [
160
53
  ON,
161
54
  2,
162
55
  {
163
- ignoredNodes: [],
164
- SwitchCase: 1,
165
56
  VariableDeclarator: {
166
57
  "var": 0,
167
58
  let: 0,
168
59
  "const": 0,
169
60
  },
170
61
  outerIIFEBody: 0,
171
- MemberExpression: 1,
172
- FunctionDeclaration: {
173
- parameters: 1,
174
- body: 1,
175
- returnType: 1,
176
- },
177
- FunctionExpression: {
178
- parameters: 1,
179
- body: 1,
180
- returnType: 1,
181
- },
182
- StaticBlock: {
183
- body: 1,
184
- },
185
- CallExpression: {
186
- arguments: 1,
187
- },
188
- ArrayExpression: 1,
189
- ObjectExpression: 1,
190
- ImportDeclaration: 1,
191
- flatTernaryExpressions: false,
192
62
  offsetTernaryExpressions: true,
193
- offsetTernaryExpressionsOffsetCallExpressions: true,
194
- ignoreComments: false,
195
- tabLength: 2 /* @default: 4 */,
196
63
  },
197
64
  ],
198
65
  "@stylistic/indent-binary-ops": [
199
66
  ON,
200
67
  2,
201
68
  ],
202
- "@stylistic/key-spacing": [
203
- ON,
204
- {
205
- beforeColon: false,
206
- afterColon: true,
207
- mode: strict,
208
- ignoredNodes: [],
209
- },
210
- ],
211
- "@stylistic/keyword-spacing": [
212
- ON,
213
- {
214
- before: true,
215
- after: true,
216
- overrides: {},
217
- },
218
- ],
219
- // "@stylistic/line-comment-position": OFF,
220
- // "@stylistic/lines-around-comment": OFF,
69
+ "@stylistic/key-spacing": ON,
70
+ "@stylistic/keyword-spacing": ON,
221
71
  "@stylistic/lines-between-class-members": [
222
72
  ON,
223
73
  {
@@ -239,16 +89,11 @@ export const EnableStyle = {
239
89
  },
240
90
  ],
241
91
  },
242
- {
243
- exceptAfterSingleLine: false,
244
- exceptAfterOverload: true /* TS-only */,
245
- },
246
92
  ],
247
93
  "@stylistic/max-len": [
248
94
  ON,
249
95
  {
250
96
  code: 300,
251
- tabWidth: 2,
252
97
  ignoreComments: true,
253
98
  ignoreTrailingComments: true,
254
99
  ignoreUrls: true,
@@ -257,77 +102,24 @@ export const EnableStyle = {
257
102
  ignoreRegExpLiterals: true,
258
103
  },
259
104
  ],
260
- "@stylistic/max-statements-per-line": [
261
- ON,
262
- {
263
- max: 1,
264
- },
265
- ],
266
- "@stylistic/member-delimiter-style": [
267
- ON,
268
- {
269
- multiline: {
270
- delimiter: "semi",
271
- requireLast: true,
272
- },
273
- singleline: {
274
- delimiter: "semi",
275
- requireLast: false,
276
- },
277
- multilineDetection: "brackets",
278
- },
279
- ],
280
- // "@stylistic/multiline-comment-style": OFF,
105
+ "@stylistic/max-statements-per-line": ON,
106
+ "@stylistic/member-delimiter-style": ON,
281
107
  "@stylistic/multiline-ternary": [
282
108
  ON,
283
109
  always_multiline,
284
110
  ],
285
- "@stylistic/new-parens": [
286
- OFF,
287
- never,
288
- ],
289
- "@stylistic/newline-per-chained-call": [
290
- ON,
291
- {
292
- ignoreChainWithDepth: 2,
293
- },
294
- ],
295
- // "@stylistic/no-confusing-arrow": OFF,
296
- "@stylistic/no-extra-parens": [
297
- ON,
298
- all,
299
- {
300
- conditionalAssign: true,
301
- returnAssign: true,
302
- nestedBinaryExpressions: true,
303
- ternaryOperandBinaryExpressions: true,
304
- // ignoreJSX: "none" /* all | multi-line | single-line | @default: none */,
305
- enforceForArrowConditionals: true,
306
- enforceForSequenceExpressions: true,
307
- enforceForNewInMemberExpressions: true,
308
- enforceForFunctionPrototypeMethods: true,
309
- // allowParensAfterCommentPattern: "" /* regex */,
310
- nestedConditionalExpressions: true,
311
- allowNodesInSpreadElement: {
312
- ConditionalExpression: false,
313
- LogicalExpression: false,
314
- AwaitExpression: false,
315
- } /* @default: all true */,
316
- },
317
- ],
111
+ "@stylistic/newline-per-chained-call": ON,
112
+ "@stylistic/no-extra-parens": ON,
318
113
  "@stylistic/no-extra-semi": ON,
319
114
  "@stylistic/no-floating-decimal": ON,
320
- // "@stylistic/no-mixed-operators": OFF,
321
115
  "@stylistic/no-mixed-spaces-and-tabs": ON,
322
116
  "@stylistic/no-multi-spaces": [
323
117
  ON,
324
118
  {
325
- ignoreEOLComments: false /* @OVERRIDE */,
326
119
  exceptions: {
327
- Property: false /* @OVERRIDE */,
328
- ImportAttributes: false /* @OVERRIDE */,
120
+ Property: false,
121
+ ImportAttributes: false,
329
122
  },
330
- includeTabs: true /* @OVERRIDE */,
331
123
  },
332
124
  ],
333
125
  "@stylistic/no-multiple-empty-lines": [
@@ -335,77 +127,27 @@ export const EnableStyle = {
335
127
  {
336
128
  max: 1,
337
129
  maxBOF: 0,
338
- maxEOF: 0 /* combine with `eol-last` to ensure file still ends with a single line-break (eol character) */,
339
- },
340
- ],
341
- "@stylistic/no-tabs": [
342
- ON,
343
- {
344
- allowIndentationTabs: false,
345
- },
346
- ],
347
- "@stylistic/no-trailing-spaces": [
348
- ON,
349
- {
350
- skipBlankLines: false,
351
- ignoreComments: false,
130
+ maxEOF: 0,
352
131
  },
353
132
  ],
133
+ "@stylistic/no-tabs": ON,
134
+ "@stylistic/no-trailing-spaces": ON,
354
135
  "@stylistic/no-whitespace-before-property": ON,
355
136
  "@stylistic/nonblock-statement-body-position": [
356
137
  ON,
357
138
  below,
358
- {
359
- overrides: {} /* if | else | while | do | for */,
360
- },
361
139
  ],
362
140
  "@stylistic/object-curly-newline": [
363
141
  ON,
364
142
  {
365
- ObjectExpression: {
366
- consistent: true,
367
- multiline: true,
368
- minProperties: 3,
369
- },
370
- ObjectPattern: {
371
- consistent: true,
372
- multiline: true,
373
- minProperties: 3,
374
- },
375
- ImportDeclaration: {
376
- consistent: true,
377
- multiline: true,
378
- minProperties: 3,
379
- },
380
- ExportDeclaration: {
381
- consistent: true,
382
- multiline: true,
383
- minProperties: 3,
384
- },
385
- TSTypeLiteral: {
386
- consistent: true,
387
- multiline: true,
388
- minProperties: 3,
389
- },
390
- TSInterfaceBody: {
391
- consistent: true,
392
- multiline: true,
393
- minProperties: 3,
394
- },
395
- TSEnumBody: {
396
- consistent: true,
397
- multiline: true,
398
- minProperties: 3,
399
- },
143
+ consistent: true,
144
+ multiline: true,
145
+ minProperties: 3,
400
146
  },
401
147
  ],
402
148
  "@stylistic/object-curly-spacing": [
403
149
  ON,
404
150
  always,
405
- {
406
- arraysInObjects: true,
407
- objectsInObjects: true,
408
- },
409
151
  ],
410
152
  "@stylistic/object-property-newline": ON,
411
153
  "@stylistic/one-var-declaration-per-line": [
@@ -415,20 +157,16 @@ export const EnableStyle = {
415
157
  "@stylistic/operator-linebreak": [
416
158
  ON,
417
159
  before,
418
- {
419
- overrides: {} /* e.g., = | ? | : | @default: { "?": "before", ":": "before" } */,
420
- },
421
160
  ],
422
161
  "@stylistic/padded-blocks": [
423
162
  ON,
424
- never /* @OVERRIDE || { blocks, classes, switches } */,
163
+ never,
425
164
  {
426
165
  allowSingleLineBlocks: true,
427
166
  },
428
167
  ],
429
168
  "@stylistic/padding-line-between-statements": [
430
169
  WARN,
431
- // #region *<
432
170
  {
433
171
  blankLine: never,
434
172
  prev: [
@@ -448,7 +186,6 @@ export const EnableStyle = {
448
186
  "empty",
449
187
  "enum",
450
188
  "export",
451
- // "expression" /* aren't most of these expressions? */,
452
189
  "for",
453
190
  "function-overload",
454
191
  "function",
@@ -460,7 +197,6 @@ export const EnableStyle = {
460
197
  "multiline-block-like",
461
198
  "multiline-const",
462
199
  "multiline-export",
463
- // "multiline-expression" /* aren't most of these expressions? */,
464
200
  "multiline-let",
465
201
  "multiline-var",
466
202
  "return",
@@ -479,8 +215,6 @@ export const EnableStyle = {
479
215
  ],
480
216
  next: wildcard,
481
217
  },
482
- // #endregion
483
- // #region < Block >
484
218
  {
485
219
  blankLine: always,
486
220
  prev: [
@@ -529,8 +263,6 @@ export const EnableStyle = {
529
263
  "with",
530
264
  ],
531
265
  },
532
- // #endregion
533
- // #region Declaration >
534
266
  {
535
267
  blankLine: never,
536
268
  prev: "interface",
@@ -548,8 +280,6 @@ export const EnableStyle = {
548
280
  "function",
549
281
  ],
550
282
  },
551
- // #endregion
552
- // #region < =[]
553
283
  {
554
284
  blankLine: always,
555
285
  prev: [
@@ -571,8 +301,6 @@ export const EnableStyle = {
571
301
  "iife",
572
302
  ],
573
303
  },
574
- // #endregion
575
- // #region Import[] >
576
304
  {
577
305
  blankLine: always,
578
306
  prev: [
@@ -592,8 +320,6 @@ export const EnableStyle = {
592
320
  "import",
593
321
  ],
594
322
  },
595
- // #endregion
596
- // #region < Export[] >
597
323
  {
598
324
  blankLine: always,
599
325
  prev: [
@@ -629,8 +355,6 @@ export const EnableStyle = {
629
355
  "singleline-export",
630
356
  ],
631
357
  },
632
- // #endregion
633
- // #region < Return >
634
358
  {
635
359
  blankLine: always,
636
360
  prev: [
@@ -651,15 +375,12 @@ export const EnableStyle = {
651
375
  "throw",
652
376
  ],
653
377
  },
654
- // #endregion
655
378
  ],
656
379
  "@stylistic/quote-props": [
657
380
  ON,
658
381
  as_needed,
659
382
  {
660
383
  keywords: true,
661
- unnecessary: true,
662
- numbers: false,
663
384
  },
664
385
  ],
665
386
  "@stylistic/quotes": [
@@ -667,69 +388,23 @@ export const EnableStyle = {
667
388
  double,
668
389
  {
669
390
  avoidEscape: true,
670
- allowTemplateLiterals: always /* always, avoidEscape, @default: never */,
671
- ignoreStringLiterals: false,
672
- },
673
- ],
674
- "@stylistic/rest-spread-spacing": [
675
- ON,
676
- never,
677
- ],
678
- "@stylistic/semi": [
679
- ON,
680
- always,
681
- {
682
- omitLastInOneLineBlock: false,
683
- omitLastInOneLineClassBody: false,
684
- },
685
- ],
686
- "@stylistic/semi-spacing": [
687
- ON,
688
- {
689
- before: false,
690
- after: true,
691
- },
692
- ],
693
- "@stylistic/semi-style": [
694
- ON,
695
- last,
696
- ],
697
- "@stylistic/space-before-blocks": [
698
- ON,
699
- {
700
- functions: always,
701
- keywords: always,
702
- classes: always,
391
+ allowTemplateLiterals: always,
703
392
  },
704
393
  ],
394
+ "@stylistic/rest-spread-spacing": ON,
395
+ "@stylistic/semi": ON,
396
+ "@stylistic/semi-spacing": ON,
397
+ "@stylistic/semi-style": ON,
398
+ "@stylistic/space-before-blocks": ON,
705
399
  "@stylistic/space-before-function-paren": [
706
400
  ON,
707
401
  {
708
- anonymous: always,
709
402
  named: never,
710
- asyncArrow: always,
711
- "catch": always,
712
- },
713
- ],
714
- "@stylistic/space-in-parens": [
715
- ON,
716
- never,
717
- ],
718
- "@stylistic/space-infix-ops": [
719
- ON,
720
- {
721
- int32Hint: true,
722
- ignoreTypes: false,
723
- },
724
- ],
725
- "@stylistic/space-unary-ops": [
726
- ON,
727
- {
728
- words: true,
729
- nonwords: false,
730
- overrides: {},
731
403
  },
732
404
  ],
405
+ "@stylistic/space-in-parens": ON,
406
+ "@stylistic/space-infix-ops": ON,
407
+ "@stylistic/space-unary-ops": ON,
733
408
  "@stylistic/spaced-comment": [
734
409
  ON,
735
410
  always,
@@ -761,21 +436,9 @@ export const EnableStyle = {
761
436
  },
762
437
  },
763
438
  ],
764
- "@stylistic/switch-colon-spacing": [
765
- ON,
766
- {
767
- after: true,
768
- before: false,
769
- },
770
- ],
771
- "@stylistic/template-curly-spacing": [
772
- ON,
773
- never,
774
- ],
775
- "@stylistic/template-tag-spacing": [
776
- ON,
777
- never,
778
- ],
439
+ "@stylistic/switch-colon-spacing": ON,
440
+ "@stylistic/template-curly-spacing": ON,
441
+ "@stylistic/template-tag-spacing": ON,
779
442
  "@stylistic/type-annotation-spacing": [
780
443
  ON,
781
444
  {
@@ -787,7 +450,7 @@ export const EnableStyle = {
787
450
  after: true,
788
451
  },
789
452
  },
790
- } /* non-overriden rule affects all type annotations (arrows, "as" keyword, "satisfies" keyword) except colons */,
453
+ },
791
454
  ],
792
455
  "@stylistic/type-generic-spacing": ON,
793
456
  "@stylistic/type-named-tuple-spacing": ON,
@@ -799,13 +462,7 @@ export const EnableStyle = {
799
462
  },
800
463
  ],
801
464
  "@stylistic/wrap-regex": ON,
802
- "@stylistic/yield-star-spacing": [
803
- ON,
804
- {
805
- before: false,
806
- after: true,
807
- },
808
- ],
465
+ "@stylistic/yield-star-spacing": ON,
809
466
  },
810
467
  };
811
468
  //# sourceMappingURL=enable.style.js.map