@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,21 +1,17 @@
1
1
  import {
2
2
  ID,
3
- OFF,
3
+ // OFF,
4
4
  WARN,
5
5
  ON,
6
- all,
7
6
  always_multiline,
8
7
  always,
9
8
  as_needed,
10
9
  before,
11
10
  below,
12
- beside,
13
11
  consistent,
14
12
  double,
15
13
  inside,
16
- last,
17
14
  never,
18
- strict,
19
15
  wildcard,
20
16
  } from "../_strings";
21
17
 
@@ -23,219 +19,72 @@ export const EnableStyle = {
23
19
  id: ID.Enable.Style,
24
20
  rules: {
25
21
  // DOC: https://eslint.style/rules
26
- "@stylistic/array-bracket-newline": [
27
- ON,
28
- {
29
- multiline: true,
30
- minItems: null,
31
- },
32
- ],
33
- "@stylistic/array-bracket-spacing": [
34
- ON,
35
- never,
36
- {
37
- singleValue: false,
38
- objectsInArrays: false,
39
- arraysInArrays: false,
40
- },
41
- ],
22
+ "@stylistic/array-bracket-newline": ON,
23
+ "@stylistic/array-bracket-spacing": ON,
42
24
  "@stylistic/array-element-newline": [
43
25
  ON,
44
26
  {
45
- ArrayExpression: {
46
- consistent: true,
47
- multiline: true,
48
- minItems: 3,
49
- },
50
- ArrayPattern: {
51
- consistent: true,
52
- multiline: true,
53
- minItems: 3,
54
- },
55
- },
27
+ consistent: true,
28
+ multiline: true,
29
+ minItems: 3,
30
+ } /* never | consistent | @default always | { ... } */,
56
31
  ],
57
32
  "@stylistic/arrow-parens": [
58
33
  ON,
59
- as_needed,
60
- {
61
- requireForBlockBody: false,
62
- },
63
- ],
64
- "@stylistic/arrow-spacing": [
65
- ON,
66
- {
67
- before: true,
68
- after: true,
69
- },
70
- ],
71
- "@stylistic/block-spacing": [
72
- ON,
73
- always,
34
+ as_needed /* as-needed | @default always */,
74
35
  ],
36
+ "@stylistic/arrow-spacing": ON,
37
+ "@stylistic/block-spacing": ON,
75
38
  "@stylistic/brace-style": [
76
39
  ON,
77
- "stroustrup",
40
+ "stroustrup" /* stroustrup | allman | @default 1tbs */,
78
41
  {
79
- allowSingleLine: true,
42
+ allowSingleLine: true /* @default false */,
80
43
  },
81
44
  ],
82
45
  "@stylistic/comma-dangle": [
83
46
  ON,
84
47
  always_multiline,
85
48
  ],
86
- "@stylistic/comma-spacing": [
87
- ON,
88
- {
89
- before: false,
90
- after: true,
91
- },
92
- ],
93
- "@stylistic/comma-style": [
94
- ON,
95
- last,
96
- {
97
- exceptions: {
98
- ArrayExpression: false /* ignores comma style in array literals */,
99
- ArrayPattern: false /* ignores comma style in array patterns of destructuring */,
100
- ArrowFunctionExpression: false /* ignores comma style in the parameters of arrow function expressions */,
101
- CallExpression: false /* ignores comma style in the arguments of function calls */,
102
- FunctionDeclaration: false /* ignores comma style in the parameters of function declarations */,
103
- FunctionExpression: false /* ignores comma style in the parameters of function expressions */,
104
- ImportDeclaration: false /* ignores comma style in the specifiers / import attributes of import declarations */,
105
- ObjectExpression: false /* ignores comma style in object literals */,
106
- ObjectPattern: false /* ignores comma style in object patterns of destructuring */,
107
- VariableDeclaration: false /* ignores comma style in variable declarations */,
108
- NewExpression: false /* ignores comma style in the parameters of constructor expressions */,
109
- ExportAllDeclaration: false /* ignores comma style in the import attributes of export all declarations */,
110
- ExportNamedDeclaration: false /* ignores comma style in the specifiers / import attributes of export named declarations */,
111
- ImportExpression: false /* ignores comma style in the arguments of import expressions */,
112
- SequenceExpression: false /* ignores comma style in sequence expressions */,
113
- ClassDeclaration: false /* ignores comma style in the TypeScript implements of class declarations */,
114
- ClassExpression: false /* ignores comma style in the TypeScript implements of class declarations */,
115
- TSDeclareFunction: false /* ignores comma style in the parameters of TypeScript declare functions */,
116
- TSFunctionType: false /* ignores comma style in the parameters of TypeScript function types */,
117
- TSConstructorType: false /* ignores comma style in the parameters of TypeScript constructor types */,
118
- TSEmptyBodyFunctionExpression: false /* ignores comma style in the parameters of TypeScript empty body function expressions */,
119
- TSMethodSignature: false /* ignores comma style in the parameters of TypeScript method signatures */,
120
- TSCallSignatureDeclaration: false /* ignores comma style in the parameters of TypeScript call signature declarations */,
121
- TSConstructSignatureDeclaration: false /* ignores comma style in the parameters of TypeScript construct signature declarations */,
122
- TSEnumBody: false /* ignores comma style in the members of TypeScript enums */,
123
- TSTypeLiteral: false /* ignores comma style in the members of TypeScript type literals */,
124
- TSInterfaceBody: false /* ignores comma style in the members of TypeScript interfaces */,
125
- TSIndexSignature: false /* ignores comma style in the key parameters of TypeScript index signatures */,
126
- TSInterfaceDeclaration: false /* ignores comma style in the extend classes of TypeScript interfaces */,
127
- TSTupleType: false /* ignores comma style in the elements of TypeScript tuple types */,
128
- TSTypeParameterDeclaration: false /* ignores comma style in the type parameters of TypeScript type parameter declarations */,
129
- TSTypeParameterInstantiation: false /* ignores comma style in the type arguments of TypeScript type parameter instantiations */,
130
- },
131
- },
132
- ],
133
- "@stylistic/computed-property-spacing": [
134
- ON,
135
- never,
136
- {
137
- enforceForClassMembers: true,
138
- },
139
- ],
140
- "@stylistic/curly-newline": [
141
- ON,
142
- {
143
- // multiline: false,
144
- // minElements: 2 /* when consistent:true, this errors if there are linebreaks with elements < minElements */,
145
- consistent: true /* @default */,
146
- },
147
- ],
49
+ "@stylistic/comma-spacing": ON,
50
+ "@stylistic/comma-style": ON,
51
+ "@stylistic/computed-property-spacing": ON,
52
+ "@stylistic/curly-newline": ON,
148
53
  "@stylistic/dot-location": [
149
54
  ON,
150
- "property",
151
- ],
152
- "@stylistic/eol-last": [
153
- ON,
154
- always,
55
+ "property" /* property | @default object */,
155
56
  ],
57
+ "@stylistic/eol-last": ON,
156
58
  "@stylistic/function-call-argument-newline": [
157
59
  ON,
158
- consistent,
159
- ],
160
- "@stylistic/function-call-spacing": [
161
- ON,
162
- never,
60
+ consistent /* consistent | never | @default always */,
163
61
  ],
62
+ "@stylistic/function-call-spacing": ON,
164
63
  "@stylistic/function-paren-newline": [
165
64
  ON,
166
65
  "multiline-arguments",
167
66
  ] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
168
- "@stylistic/generator-star-spacing": [
169
- ON,
170
- {
171
- before: true,
172
- after: false,
173
- },
174
- ],
175
- "@stylistic/implicit-arrow-linebreak": [
176
- ON,
177
- beside,
178
- ],
67
+ "@stylistic/generator-star-spacing": ON,
68
+ "@stylistic/implicit-arrow-linebreak": ON,
179
69
  "@stylistic/indent": [
180
70
  ON,
181
- 2,
71
+ 2 /* tab | number | @default 4 */,
182
72
  {
183
- ignoredNodes: [],
184
- SwitchCase: 1,
185
73
  VariableDeclarator: {
186
74
  "var": 0,
187
75
  let: 0,
188
76
  "const": 0,
189
77
  },
190
78
  outerIIFEBody: 0,
191
- MemberExpression: 1,
192
- FunctionDeclaration: {
193
- parameters: 1,
194
- body: 1,
195
- returnType: 1,
196
- },
197
- FunctionExpression: {
198
- parameters: 1,
199
- body: 1,
200
- returnType: 1,
201
- },
202
- StaticBlock: {
203
- body: 1,
204
- },
205
- CallExpression: {
206
- arguments: 1,
207
- },
208
- ArrayExpression: 1,
209
- ObjectExpression: 1,
210
- ImportDeclaration: 1,
211
- flatTernaryExpressions: false,
212
79
  offsetTernaryExpressions: true,
213
- offsetTernaryExpressionsOffsetCallExpressions: true,
214
- ignoreComments: false,
215
- tabLength: 2 /* @default: 4 */,
216
80
  },
217
81
  ],
218
82
  "@stylistic/indent-binary-ops": [
219
83
  ON,
220
- 2,
221
- ],
222
- "@stylistic/key-spacing": [
223
- ON,
224
- {
225
- beforeColon: false,
226
- afterColon: true,
227
- mode: strict,
228
- ignoredNodes: [],
229
- },
230
- ],
231
- "@stylistic/keyword-spacing": [
232
- ON,
233
- {
234
- before: true,
235
- after: true,
236
- overrides: {},
237
- },
84
+ 2 /* MUST be same as `@stylistic/indent`[1] */,
238
85
  ],
86
+ "@stylistic/key-spacing": ON,
87
+ "@stylistic/keyword-spacing": ON,
239
88
  // "@stylistic/line-comment-position": OFF,
240
89
  // "@stylistic/lines-around-comment": OFF,
241
90
  "@stylistic/lines-between-class-members": [
@@ -259,16 +108,12 @@ export const EnableStyle = {
259
108
  },
260
109
  ],
261
110
  },
262
- {
263
- exceptAfterSingleLine: false,
264
- exceptAfterOverload: true /* TS-only */,
265
- },
266
111
  ],
267
112
  "@stylistic/max-len": [
268
113
  ON,
269
114
  {
270
- code: 300,
271
- tabWidth: 2,
115
+ code: 300 /* @default 80 */,
116
+ // tabWidth: 4,
272
117
  ignoreComments: true,
273
118
  ignoreTrailingComments: true,
274
119
  ignoreUrls: true,
@@ -277,64 +122,17 @@ export const EnableStyle = {
277
122
  ignoreRegExpLiterals: true,
278
123
  },
279
124
  ],
280
- "@stylistic/max-statements-per-line": [
281
- ON,
282
- {
283
- max: 1,
284
- },
285
- ],
286
- "@stylistic/member-delimiter-style": [
287
- ON,
288
- {
289
- multiline: {
290
- delimiter: "semi",
291
- requireLast: true,
292
- },
293
- singleline: {
294
- delimiter: "semi",
295
- requireLast: false,
296
- },
297
- multilineDetection: "brackets",
298
- },
299
- ],
125
+ "@stylistic/max-statements-per-line": ON,
126
+ "@stylistic/member-delimiter-style": ON,
300
127
  // "@stylistic/multiline-comment-style": OFF,
301
128
  "@stylistic/multiline-ternary": [
302
129
  ON,
303
- always_multiline,
304
- ],
305
- "@stylistic/new-parens": [
306
- OFF,
307
- never,
308
- ],
309
- "@stylistic/newline-per-chained-call": [
310
- ON,
311
- {
312
- ignoreChainWithDepth: 2,
313
- },
130
+ always_multiline /* never | always-multiline | @default always */,
314
131
  ],
132
+ // "@stylistic/new-parens": OFF,
133
+ "@stylistic/newline-per-chained-call": ON,
315
134
  // "@stylistic/no-confusing-arrow": OFF,
316
- "@stylistic/no-extra-parens": [
317
- ON,
318
- all,
319
- {
320
- conditionalAssign: true,
321
- returnAssign: true,
322
- nestedBinaryExpressions: true,
323
- ternaryOperandBinaryExpressions: true,
324
- // ignoreJSX: "none" /* all | multi-line | single-line | @default: none */,
325
- enforceForArrowConditionals: true,
326
- enforceForSequenceExpressions: true,
327
- enforceForNewInMemberExpressions: true,
328
- enforceForFunctionPrototypeMethods: true,
329
- // allowParensAfterCommentPattern: "" /* regex */,
330
- nestedConditionalExpressions: true,
331
- allowNodesInSpreadElement: {
332
- ConditionalExpression: false,
333
- LogicalExpression: false,
334
- AwaitExpression: false,
335
- } /* @default: all true */,
336
- },
337
- ],
135
+ "@stylistic/no-extra-parens": ON,
338
136
  "@stylistic/no-extra-semi": ON,
339
137
  "@stylistic/no-floating-decimal": ON,
340
138
  // "@stylistic/no-mixed-operators": OFF,
@@ -342,107 +140,51 @@ export const EnableStyle = {
342
140
  "@stylistic/no-multi-spaces": [
343
141
  ON,
344
142
  {
345
- ignoreEOLComments: false /* @OVERRIDE */,
346
143
  exceptions: {
347
- Property: false /* @OVERRIDE */,
348
- ImportAttributes: false /* @OVERRIDE */,
144
+ Property: false,
145
+ ImportAttributes: false,
349
146
  },
350
- includeTabs: true /* @OVERRIDE */,
351
147
  },
352
148
  ],
353
149
  "@stylistic/no-multiple-empty-lines": [
354
150
  ON,
355
151
  {
356
- max: 1,
152
+ max: 1 /* @default 2 */,
357
153
  maxBOF: 0,
358
154
  maxEOF: 0 /* combine with `eol-last` to ensure file still ends with a single line-break (eol character) */,
359
155
  },
360
156
  ],
361
- "@stylistic/no-tabs": [
362
- ON,
363
- {
364
- allowIndentationTabs: false,
365
- },
366
- ],
367
- "@stylistic/no-trailing-spaces": [
368
- ON,
369
- {
370
- skipBlankLines: false,
371
- ignoreComments: false,
372
- },
373
- ],
157
+ "@stylistic/no-tabs": ON,
158
+ "@stylistic/no-trailing-spaces": ON,
374
159
  "@stylistic/no-whitespace-before-property": ON,
375
160
  "@stylistic/nonblock-statement-body-position": [
376
161
  ON,
377
- below,
378
- {
379
- overrides: {
380
- } /* if | else | while | do | for */,
381
- },
162
+ below /* any | below | @default beside */,
382
163
  ],
383
164
  "@stylistic/object-curly-newline": [
384
165
  ON,
385
166
  {
386
- ObjectExpression: {
387
- consistent: true,
388
- multiline: true,
389
- minProperties: 3,
390
- },
391
- ObjectPattern: {
392
- consistent: true,
393
- multiline: true,
394
- minProperties: 3,
395
- },
396
- ImportDeclaration: {
397
- consistent: true,
398
- multiline: true,
399
- minProperties: 3,
400
- },
401
- ExportDeclaration: {
402
- consistent: true,
403
- multiline: true,
404
- minProperties: 3,
405
- },
406
- TSTypeLiteral: {
407
- consistent: true,
408
- multiline: true,
409
- minProperties: 3,
410
- },
411
- TSInterfaceBody: {
412
- consistent: true,
413
- multiline: true,
414
- minProperties: 3,
415
- },
416
- TSEnumBody: {
417
- consistent: true,
418
- multiline: true,
419
- minProperties: 3,
420
- },
167
+ consistent: true,
168
+ multiline: true,
169
+ minProperties: 3,
421
170
  },
422
171
  ],
423
172
  "@stylistic/object-curly-spacing": [
424
173
  ON,
425
- always,
426
- {
427
- arraysInObjects: true,
428
- objectsInObjects: true,
429
- },
174
+ always /* always | @default never */,
430
175
  ],
431
176
  "@stylistic/object-property-newline": ON,
432
177
  "@stylistic/one-var-declaration-per-line": [
433
178
  ON,
434
- always,
179
+ always /* always | @default initializations */,
435
180
  ],
436
181
  "@stylistic/operator-linebreak": [
437
182
  ON,
438
- before,
439
- {
440
- overrides: {} /* e.g., = | ? | : | @default: { "?": "before", ":": "before" } */,
441
- },
183
+ before /* ignore | none | before | @default after */,
442
184
  ],
443
185
  "@stylistic/padded-blocks": [
444
186
  ON,
445
- never /* @OVERRIDE || { blocks, classes, switches } */,
187
+ never /* never | start | end | @default always */,
446
188
  {
447
189
  allowSingleLineBlocks: true,
448
190
  },
@@ -501,7 +243,7 @@ export const EnableStyle = {
501
243
  next: wildcard,
502
244
  },
503
245
  // #endregion
504
- // #region < Block >
246
+ // #region <Block>
505
247
  {
506
248
  blankLine: always,
507
249
  prev: [
@@ -551,7 +293,7 @@ export const EnableStyle = {
551
293
  ],
552
294
  },
553
295
  // #endregion
554
- // #region Declaration >
296
+ // #region Declaration>
555
297
  {
556
298
  blankLine: never,
557
299
  prev: "interface",
@@ -570,7 +312,7 @@ export const EnableStyle = {
570
312
  ],
571
313
  },
572
314
  // #endregion
573
- // #region < =[]
315
+ // #region <=[]
574
316
  {
575
317
  blankLine: always,
576
318
  prev: [
@@ -593,7 +335,7 @@ export const EnableStyle = {
593
335
  ],
594
336
  },
595
337
  // #endregion
596
- // #region Import[] >
338
+ // #region Import[]>
597
339
  {
598
340
  blankLine: always,
599
341
  prev: [
@@ -614,7 +356,7 @@ export const EnableStyle = {
614
356
  ],
615
357
  },
616
358
  // #endregion
617
- // #region < Export[] >
359
+ // #region <Export[]>
618
360
  {
619
361
  blankLine: always,
620
362
  prev: [
@@ -651,7 +393,7 @@ export const EnableStyle = {
651
393
  ],
652
394
  },
653
395
  // #endregion
654
- // #region < Return >
396
+ // #region <Return>
655
397
  {
656
398
  blankLine: always,
657
399
  prev: [
@@ -679,78 +421,30 @@ export const EnableStyle = {
679
421
  as_needed,
680
422
  {
681
423
  keywords: true,
682
- unnecessary: true,
683
- numbers: false,
684
424
  },
685
425
  ],
686
426
  "@stylistic/quotes": [
687
427
  ON,
688
- double,
428
+ double /* @default double */,
689
429
  {
690
430
  avoidEscape: true,
691
- allowTemplateLiterals: always /* always, avoidEscape, @default: never */,
692
- ignoreStringLiterals: false,
693
- },
694
- ],
695
- "@stylistic/rest-spread-spacing": [
696
- ON,
697
- never,
698
- ],
699
- "@stylistic/semi": [
700
- ON,
701
- always,
702
- {
703
- omitLastInOneLineBlock: false,
704
- omitLastInOneLineClassBody: false,
705
- },
706
- ],
707
- "@stylistic/semi-spacing": [
708
- ON,
709
- {
710
- before: false,
711
- after: true,
712
- },
713
- ],
714
- "@stylistic/semi-style": [
715
- ON,
716
- last,
717
- ],
718
- "@stylistic/space-before-blocks": [
719
- ON,
720
- {
721
- functions: always,
722
- keywords: always,
723
- classes: always,
431
+ allowTemplateLiterals: always /* always | avoidEscape | @default never */,
724
432
  },
725
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,
726
439
  "@stylistic/space-before-function-paren": [
727
440
  ON,
728
441
  {
729
- anonymous: always,
730
442
  named: never,
731
- asyncArrow: always,
732
- "catch": always,
733
- },
734
- ],
735
- "@stylistic/space-in-parens": [
736
- ON,
737
- never,
738
- ],
739
- "@stylistic/space-infix-ops": [
740
- ON,
741
- {
742
- int32Hint: true,
743
- ignoreTypes: false,
744
- },
745
- ],
746
- "@stylistic/space-unary-ops": [
747
- ON,
748
- {
749
- words: true,
750
- nonwords: false,
751
- overrides: {},
752
443
  },
753
444
  ],
445
+ "@stylistic/space-in-parens": ON,
446
+ "@stylistic/space-infix-ops": ON,
447
+ "@stylistic/space-unary-ops": ON,
754
448
  "@stylistic/spaced-comment": [
755
449
  ON,
756
450
  always,
@@ -782,21 +476,9 @@ export const EnableStyle = {
782
476
  },
783
477
  },
784
478
  ],
785
- "@stylistic/switch-colon-spacing": [
786
- ON,
787
- {
788
- after: true,
789
- before: false,
790
- },
791
- ],
792
- "@stylistic/template-curly-spacing": [
793
- ON,
794
- never,
795
- ],
796
- "@stylistic/template-tag-spacing": [
797
- ON,
798
- never,
799
- ],
479
+ "@stylistic/switch-colon-spacing": ON,
480
+ "@stylistic/template-curly-spacing": ON,
481
+ "@stylistic/template-tag-spacing": ON,
800
482
  "@stylistic/type-annotation-spacing": [
801
483
  ON,
802
484
  {
@@ -820,12 +502,6 @@ export const EnableStyle = {
820
502
  },
821
503
  ],
822
504
  "@stylistic/wrap-regex": ON,
823
- "@stylistic/yield-star-spacing": [
824
- ON,
825
- {
826
- before: false,
827
- after: true,
828
- },
829
- ],
505
+ "@stylistic/yield-star-spacing": ON,
830
506
  } as const,
831
507
  };