@eslinted/defaults 12.8.1 → 12.10.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 (127) 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 +60 -572
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/rules/index.d.ts +60 -385
  6. package/dist/rules/index.d.ts.map +1 -1
  7. package/dist/rules/scopes/css/enable.d.ts +2 -9
  8. package/dist/rules/scopes/css/enable.d.ts.map +1 -1
  9. package/dist/rules/scopes/css/enable.js +3 -17
  10. package/dist/rules/scopes/css/enable.js.map +1 -1
  11. package/dist/rules/scopes/css/index.d.ts +2 -9
  12. package/dist/rules/scopes/css/index.d.ts.map +1 -1
  13. package/dist/rules/scopes/enable.d.ts +35 -184
  14. package/dist/rules/scopes/enable.d.ts.map +1 -1
  15. package/dist/rules/scopes/enable.js +68 -326
  16. package/dist/rules/scopes/enable.js.map +1 -1
  17. package/dist/rules/scopes/enable.style.d.ts +18 -121
  18. package/dist/rules/scopes/enable.style.d.ts.map +1 -1
  19. package/dist/rules/scopes/enable.style.js +31 -204
  20. package/dist/rules/scopes/enable.style.js.map +1 -1
  21. package/dist/rules/scopes/html/index.d.ts +5 -31
  22. package/dist/rules/scopes/html/index.d.ts.map +1 -1
  23. package/dist/rules/scopes/html/plugin/index.d.ts +5 -31
  24. package/dist/rules/scopes/html/plugin/index.d.ts.map +1 -1
  25. package/dist/rules/scopes/html/plugin/index.js +7 -61
  26. package/dist/rules/scopes/html/plugin/index.js.map +1 -1
  27. package/dist/rules/scopes/index.d.ts +53 -305
  28. package/dist/rules/scopes/index.d.ts.map +1 -1
  29. package/dist/rules/scopes/json/enable.d.ts +0 -2
  30. package/dist/rules/scopes/json/enable.d.ts.map +1 -1
  31. package/dist/rules/scopes/json/enable.js +2 -5
  32. package/dist/rules/scopes/json/enable.js.map +1 -1
  33. package/dist/rules/scopes/json/index.d.ts +0 -7
  34. package/dist/rules/scopes/json/index.d.ts.map +1 -1
  35. package/dist/rules/scopes/json/plugin/extension.d.ts +0 -1
  36. package/dist/rules/scopes/json/plugin/extension.d.ts.map +1 -1
  37. package/dist/rules/scopes/json/plugin/extension.js +7 -10
  38. package/dist/rules/scopes/json/plugin/extension.js.map +1 -1
  39. package/dist/rules/scopes/json/plugin/index.d.ts +0 -4
  40. package/dist/rules/scopes/json/plugin/index.d.ts.map +1 -1
  41. package/dist/rules/scopes/json/plugin/index.js +2 -7
  42. package/dist/rules/scopes/json/plugin/index.js.map +1 -1
  43. package/dist/rules/scopes/jsonc/plugin/index.js +1 -2
  44. package/dist/rules/scopes/jsonc/plugin/index.js.map +1 -1
  45. package/dist/rules/scopes/jsoncc/plugin/index.js +1 -2
  46. package/dist/rules/scopes/jsoncc/plugin/index.js.map +1 -1
  47. package/dist/rules/scopes/mocha/chai/expect.d.ts +0 -1
  48. package/dist/rules/scopes/mocha/chai/expect.d.ts.map +1 -1
  49. package/dist/rules/scopes/mocha/chai/expect.js +1 -3
  50. package/dist/rules/scopes/mocha/chai/expect.js.map +1 -1
  51. package/dist/rules/scopes/mocha/chai/index.js +1 -2
  52. package/dist/rules/scopes/mocha/chai/index.js.map +1 -1
  53. package/dist/rules/scopes/mocha/disable.js +2 -3
  54. package/dist/rules/scopes/mocha/disable.js.map +1 -1
  55. package/dist/rules/scopes/mocha/enable.d.ts +0 -8
  56. package/dist/rules/scopes/mocha/enable.d.ts.map +1 -1
  57. package/dist/rules/scopes/mocha/enable.js +2 -11
  58. package/dist/rules/scopes/mocha/enable.js.map +1 -1
  59. package/dist/rules/scopes/mocha/index.d.ts +0 -9
  60. package/dist/rules/scopes/mocha/index.d.ts.map +1 -1
  61. package/dist/rules/scopes/svelte/disable.js +6 -9
  62. package/dist/rules/scopes/svelte/disable.js.map +1 -1
  63. package/dist/rules/scopes/svelte/enable.d.ts +0 -3
  64. package/dist/rules/scopes/svelte/enable.d.ts.map +1 -1
  65. package/dist/rules/scopes/svelte/enable.js +14 -35
  66. package/dist/rules/scopes/svelte/enable.js.map +1 -1
  67. package/dist/rules/scopes/svelte/extension/disable.js +2 -3
  68. package/dist/rules/scopes/svelte/extension/disable.js.map +1 -1
  69. package/dist/rules/scopes/svelte/extension/index.js +2 -3
  70. package/dist/rules/scopes/svelte/extension/index.js.map +1 -1
  71. package/dist/rules/scopes/svelte/index.d.ts +0 -3
  72. package/dist/rules/scopes/svelte/index.d.ts.map +1 -1
  73. package/dist/rules/scopes/ts/disable.js +4 -5
  74. package/dist/rules/scopes/ts/disable.js.map +1 -1
  75. package/dist/rules/scopes/ts/enable.d.ts +3 -17
  76. package/dist/rules/scopes/ts/enable.d.ts.map +1 -1
  77. package/dist/rules/scopes/ts/enable.js +11 -35
  78. package/dist/rules/scopes/ts/enable.js.map +1 -1
  79. package/dist/rules/scopes/ts/extension/disable.js +1 -18
  80. package/dist/rules/scopes/ts/extension/disable.js.map +1 -1
  81. package/dist/rules/scopes/ts/extension/index.d.ts +0 -1
  82. package/dist/rules/scopes/ts/extension/index.d.ts.map +1 -1
  83. package/dist/rules/scopes/ts/extension/index.js +1 -20
  84. package/dist/rules/scopes/ts/extension/index.js.map +1 -1
  85. package/dist/rules/scopes/ts/index.d.ts +0 -15
  86. package/dist/rules/scopes/ts/index.d.ts.map +1 -1
  87. package/dist/rules/scopes/yml/index.d.ts +0 -6
  88. package/dist/rules/scopes/yml/index.d.ts.map +1 -1
  89. package/dist/rules/scopes/yml/plugin/extension.js +8 -9
  90. package/dist/rules/scopes/yml/plugin/extension.js.map +1 -1
  91. package/dist/rules/scopes/yml/plugin/index.d.ts +0 -6
  92. package/dist/rules/scopes/yml/plugin/index.d.ts.map +1 -1
  93. package/dist/rules/scopes/yml/plugin/index.js +9 -26
  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 +5 -16
  115. package/src/rules/scopes/enable.style.ts +56 -182
  116. package/src/rules/scopes/enable.ts +141 -316
  117. package/src/rules/scopes/html/plugin/index.ts +32 -54
  118. package/src/rules/scopes/json/enable.ts +3 -3
  119. package/src/rules/scopes/json/plugin/extension.ts +2 -2
  120. package/src/rules/scopes/json/plugin/index.ts +5 -5
  121. package/src/rules/scopes/mocha/chai/expect.ts +2 -2
  122. package/src/rules/scopes/mocha/enable.ts +9 -9
  123. package/src/rules/scopes/svelte/enable.ts +4 -4
  124. package/src/rules/scopes/ts/enable.ts +15 -15
  125. package/src/rules/scopes/ts/extension/index.ts +2 -2
  126. package/src/rules/scopes/yml/plugin/index.ts +7 -7
  127. package/tsconfig.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ID,
3
- OFF,
3
+ // OFF,
4
4
  WARN,
5
5
  ON,
6
6
  all,
@@ -9,13 +9,11 @@ import {
9
9
  as_needed,
10
10
  before,
11
11
  below,
12
- beside,
13
12
  consistent,
14
13
  double,
15
14
  inside,
16
15
  last,
17
16
  never,
18
- strict,
19
17
  wildcard,
20
18
  } from "../_strings";
21
19
 
@@ -23,164 +21,58 @@ export const EnableStyle = {
23
21
  id: ID.Enable.Style,
24
22
  rules: {
25
23
  // 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
- ],
24
+ "@stylistic/array-bracket-newline": ON,
25
+ "@stylistic/array-bracket-spacing": ON,
42
26
  "@stylistic/array-element-newline": [
43
27
  ON,
44
28
  {
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
- },
29
+ consistent: true,
30
+ multiline: true,
31
+ minItems: 3,
32
+ } /* never | consistent | @default always | { ... } */,
56
33
  ],
57
34
  "@stylistic/arrow-parens": [
58
35
  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,
36
+ as_needed /* as-needed | @default always */,
74
37
  ],
38
+ "@stylistic/arrow-spacing": ON,
39
+ "@stylistic/block-spacing": ON,
75
40
  "@stylistic/brace-style": [
76
41
  ON,
77
- "stroustrup",
42
+ "stroustrup" /* stroustrup | allman | @default 1tbs */,
78
43
  {
79
- allowSingleLine: true,
44
+ allowSingleLine: true /* @default false */,
80
45
  },
81
46
  ],
82
47
  "@stylistic/comma-dangle": [
83
48
  ON,
84
49
  always_multiline,
85
50
  ],
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
- ],
51
+ "@stylistic/comma-spacing": ON,
52
+ "@stylistic/comma-style": ON,
53
+ "@stylistic/computed-property-spacing": ON,
54
+ "@stylistic/curly-newline": ON,
148
55
  "@stylistic/dot-location": [
149
56
  ON,
150
- "property",
151
- ],
152
- "@stylistic/eol-last": [
153
- ON,
154
- always,
57
+ "property" /* property | @default object */,
155
58
  ],
59
+ "@stylistic/eol-last": ON,
156
60
  "@stylistic/function-call-argument-newline": [
157
61
  ON,
158
- consistent,
159
- ],
160
- "@stylistic/function-call-spacing": [
161
- ON,
162
- never,
62
+ consistent /* consistent | never | @default always */,
163
63
  ],
64
+ "@stylistic/function-call-spacing": ON,
164
65
  "@stylistic/function-paren-newline": [
165
66
  ON,
166
67
  "multiline-arguments",
167
68
  ] /* 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
- ],
69
+ "@stylistic/generator-star-spacing": ON,
70
+ "@stylistic/implicit-arrow-linebreak": ON,
179
71
  "@stylistic/indent": [
180
72
  ON,
181
- 2,
73
+ 2 /* tab | number | @default 4 */,
182
74
  {
183
- ignoredNodes: [],
75
+ // ignoredNodes: [],
184
76
  SwitchCase: 1,
185
77
  VariableDeclarator: {
186
78
  "var": 0,
@@ -188,56 +80,41 @@ export const EnableStyle = {
188
80
  "const": 0,
189
81
  },
190
82
  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,
83
+ // MemberExpression: 1,
84
+ // FunctionDeclaration: {
85
+ // parameters: 1,
86
+ // body: 1,
87
+ // returnType: 1,
88
+ // },
89
+ // FunctionExpression: {
90
+ // parameters: 1,
91
+ // body: 1,
92
+ // returnType: 1,
93
+ // },
94
+ // StaticBlock: {
95
+ // body: 1,
96
+ // },
97
+ // CallExpression: {
98
+ // arguments: 1,
99
+ // },
100
+ // ArrayExpression: 1,
101
+ // ObjectExpression: 1,
102
+ // ImportDeclaration: 1,
103
+ // flatTernaryExpressions: false,
212
104
  offsetTernaryExpressions: true,
213
- offsetTernaryExpressionsOffsetCallExpressions: true,
214
- ignoreComments: false,
215
- tabLength: 2 /* @default: 4 */,
105
+ // offsetTernaryExpressionsOffsetCallExpressions: true,
106
+ // ignoreComments: false,
107
+ tabLength: 2 /* @default 4 */,
216
108
  },
217
109
  ],
218
110
  "@stylistic/indent-binary-ops": [
219
111
  ON,
220
112
  2,
221
113
  ],
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
- },
238
- ],
239
- "@stylistic/line-comment-position": OFF,
240
- "@stylistic/lines-around-comment": OFF,
114
+ "@stylistic/key-spacing": ON,
115
+ "@stylistic/keyword-spacing": ON,
116
+ // "@stylistic/line-comment-position": OFF,
117
+ // "@stylistic/lines-around-comment": OFF,
241
118
  "@stylistic/lines-between-class-members": [
242
119
  ON,
243
120
  {
@@ -297,22 +174,19 @@ export const EnableStyle = {
297
174
  multilineDetection: "brackets",
298
175
  },
299
176
  ],
300
- "@stylistic/multiline-comment-style": OFF,
177
+ // "@stylistic/multiline-comment-style": OFF,
301
178
  "@stylistic/multiline-ternary": [
302
179
  ON,
303
180
  always_multiline,
304
181
  ],
305
- "@stylistic/new-parens": [
306
- OFF,
307
- never,
308
- ],
182
+ // "@stylistic/new-parens": OFF,
309
183
  "@stylistic/newline-per-chained-call": [
310
184
  ON,
311
185
  {
312
186
  ignoreChainWithDepth: 2,
313
187
  },
314
188
  ],
315
- "@stylistic/no-confusing-arrow": OFF,
189
+ // "@stylistic/no-confusing-arrow": OFF,
316
190
  "@stylistic/no-extra-parens": [
317
191
  ON,
318
192
  all,
@@ -337,7 +211,7 @@ export const EnableStyle = {
337
211
  ],
338
212
  "@stylistic/no-extra-semi": ON,
339
213
  "@stylistic/no-floating-decimal": ON,
340
- "@stylistic/no-mixed-operators": OFF,
214
+ // "@stylistic/no-mixed-operators": OFF,
341
215
  "@stylistic/no-mixed-spaces-and-tabs": ON,
342
216
  "@stylistic/no-multi-spaces": [
343
217
  ON,