@so1ve/eslint-config 3.11.4 → 3.14.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.
- package/dist/index.d.ts +2406 -149
- package/dist/index.js +39 -3
- package/package.json +20 -19
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,276 @@ interface RuleOptions {
|
|
|
74
74
|
* @deprecated
|
|
75
75
|
*/
|
|
76
76
|
'arrow-spacing'?: Linter.RuleEntry<ArrowSpacing>;
|
|
77
|
+
/**
|
|
78
|
+
* apply `jsx-a11y/alt-text` rule to Astro components
|
|
79
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/alt-text/
|
|
80
|
+
*/
|
|
81
|
+
'astro/jsx-a11y/alt-text'?: Linter.RuleEntry<[]>;
|
|
82
|
+
/**
|
|
83
|
+
* apply `jsx-a11y/anchor-ambiguous-text` rule to Astro components
|
|
84
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/anchor-ambiguous-text/
|
|
85
|
+
*/
|
|
86
|
+
'astro/jsx-a11y/anchor-ambiguous-text'?: Linter.RuleEntry<[]>;
|
|
87
|
+
/**
|
|
88
|
+
* apply `jsx-a11y/anchor-has-content` rule to Astro components
|
|
89
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/anchor-has-content/
|
|
90
|
+
*/
|
|
91
|
+
'astro/jsx-a11y/anchor-has-content'?: Linter.RuleEntry<[]>;
|
|
92
|
+
/**
|
|
93
|
+
* apply `jsx-a11y/anchor-is-valid` rule to Astro components
|
|
94
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/anchor-is-valid/
|
|
95
|
+
*/
|
|
96
|
+
'astro/jsx-a11y/anchor-is-valid'?: Linter.RuleEntry<[]>;
|
|
97
|
+
/**
|
|
98
|
+
* apply `jsx-a11y/aria-activedescendant-has-tabindex` rule to Astro components
|
|
99
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-activedescendant-has-tabindex/
|
|
100
|
+
*/
|
|
101
|
+
'astro/jsx-a11y/aria-activedescendant-has-tabindex'?: Linter.RuleEntry<[]>;
|
|
102
|
+
/**
|
|
103
|
+
* apply `jsx-a11y/aria-props` rule to Astro components
|
|
104
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-props/
|
|
105
|
+
*/
|
|
106
|
+
'astro/jsx-a11y/aria-props'?: Linter.RuleEntry<[]>;
|
|
107
|
+
/**
|
|
108
|
+
* apply `jsx-a11y/aria-proptypes` rule to Astro components
|
|
109
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-proptypes/
|
|
110
|
+
*/
|
|
111
|
+
'astro/jsx-a11y/aria-proptypes'?: Linter.RuleEntry<[]>;
|
|
112
|
+
/**
|
|
113
|
+
* apply `jsx-a11y/aria-role` rule to Astro components
|
|
114
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-role/
|
|
115
|
+
*/
|
|
116
|
+
'astro/jsx-a11y/aria-role'?: Linter.RuleEntry<[]>;
|
|
117
|
+
/**
|
|
118
|
+
* apply `jsx-a11y/aria-unsupported-elements` rule to Astro components
|
|
119
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-unsupported-elements/
|
|
120
|
+
*/
|
|
121
|
+
'astro/jsx-a11y/aria-unsupported-elements'?: Linter.RuleEntry<[]>;
|
|
122
|
+
/**
|
|
123
|
+
* apply `jsx-a11y/autocomplete-valid` rule to Astro components
|
|
124
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/autocomplete-valid/
|
|
125
|
+
*/
|
|
126
|
+
'astro/jsx-a11y/autocomplete-valid'?: Linter.RuleEntry<[]>;
|
|
127
|
+
/**
|
|
128
|
+
* apply `jsx-a11y/click-events-have-key-events` rule to Astro components
|
|
129
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/click-events-have-key-events/
|
|
130
|
+
*/
|
|
131
|
+
'astro/jsx-a11y/click-events-have-key-events'?: Linter.RuleEntry<[]>;
|
|
132
|
+
/**
|
|
133
|
+
* apply `jsx-a11y/control-has-associated-label` rule to Astro components
|
|
134
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/control-has-associated-label/
|
|
135
|
+
*/
|
|
136
|
+
'astro/jsx-a11y/control-has-associated-label'?: Linter.RuleEntry<[]>;
|
|
137
|
+
/**
|
|
138
|
+
* apply `jsx-a11y/heading-has-content` rule to Astro components
|
|
139
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/heading-has-content/
|
|
140
|
+
*/
|
|
141
|
+
'astro/jsx-a11y/heading-has-content'?: Linter.RuleEntry<[]>;
|
|
142
|
+
/**
|
|
143
|
+
* apply `jsx-a11y/html-has-lang` rule to Astro components
|
|
144
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/html-has-lang/
|
|
145
|
+
*/
|
|
146
|
+
'astro/jsx-a11y/html-has-lang'?: Linter.RuleEntry<[]>;
|
|
147
|
+
/**
|
|
148
|
+
* apply `jsx-a11y/iframe-has-title` rule to Astro components
|
|
149
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/iframe-has-title/
|
|
150
|
+
*/
|
|
151
|
+
'astro/jsx-a11y/iframe-has-title'?: Linter.RuleEntry<[]>;
|
|
152
|
+
/**
|
|
153
|
+
* apply `jsx-a11y/img-redundant-alt` rule to Astro components
|
|
154
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/img-redundant-alt/
|
|
155
|
+
*/
|
|
156
|
+
'astro/jsx-a11y/img-redundant-alt'?: Linter.RuleEntry<[]>;
|
|
157
|
+
/**
|
|
158
|
+
* apply `jsx-a11y/interactive-supports-focus` rule to Astro components
|
|
159
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/interactive-supports-focus/
|
|
160
|
+
*/
|
|
161
|
+
'astro/jsx-a11y/interactive-supports-focus'?: Linter.RuleEntry<[]>;
|
|
162
|
+
/**
|
|
163
|
+
* apply `jsx-a11y/label-has-associated-control` rule to Astro components
|
|
164
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/label-has-associated-control/
|
|
165
|
+
*/
|
|
166
|
+
'astro/jsx-a11y/label-has-associated-control'?: Linter.RuleEntry<[]>;
|
|
167
|
+
/**
|
|
168
|
+
* apply `jsx-a11y/lang` rule to Astro components
|
|
169
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/lang/
|
|
170
|
+
*/
|
|
171
|
+
'astro/jsx-a11y/lang'?: Linter.RuleEntry<[]>;
|
|
172
|
+
/**
|
|
173
|
+
* apply `jsx-a11y/media-has-caption` rule to Astro components
|
|
174
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/media-has-caption/
|
|
175
|
+
*/
|
|
176
|
+
'astro/jsx-a11y/media-has-caption'?: Linter.RuleEntry<[]>;
|
|
177
|
+
/**
|
|
178
|
+
* apply `jsx-a11y/mouse-events-have-key-events` rule to Astro components
|
|
179
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/mouse-events-have-key-events/
|
|
180
|
+
*/
|
|
181
|
+
'astro/jsx-a11y/mouse-events-have-key-events'?: Linter.RuleEntry<[]>;
|
|
182
|
+
/**
|
|
183
|
+
* apply `jsx-a11y/no-access-key` rule to Astro components
|
|
184
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-access-key/
|
|
185
|
+
*/
|
|
186
|
+
'astro/jsx-a11y/no-access-key'?: Linter.RuleEntry<[]>;
|
|
187
|
+
/**
|
|
188
|
+
* apply `jsx-a11y/no-aria-hidden-on-focusable` rule to Astro components
|
|
189
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-aria-hidden-on-focusable/
|
|
190
|
+
*/
|
|
191
|
+
'astro/jsx-a11y/no-aria-hidden-on-focusable'?: Linter.RuleEntry<[]>;
|
|
192
|
+
/**
|
|
193
|
+
* apply `jsx-a11y/no-autofocus` rule to Astro components
|
|
194
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-autofocus/
|
|
195
|
+
*/
|
|
196
|
+
'astro/jsx-a11y/no-autofocus'?: Linter.RuleEntry<[]>;
|
|
197
|
+
/**
|
|
198
|
+
* apply `jsx-a11y/no-distracting-elements` rule to Astro components
|
|
199
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-distracting-elements/
|
|
200
|
+
*/
|
|
201
|
+
'astro/jsx-a11y/no-distracting-elements'?: Linter.RuleEntry<[]>;
|
|
202
|
+
/**
|
|
203
|
+
* apply `jsx-a11y/no-interactive-element-to-noninteractive-role` rule to Astro components
|
|
204
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-interactive-element-to-noninteractive-role/
|
|
205
|
+
*/
|
|
206
|
+
'astro/jsx-a11y/no-interactive-element-to-noninteractive-role'?: Linter.RuleEntry<[]>;
|
|
207
|
+
/**
|
|
208
|
+
* apply `jsx-a11y/no-noninteractive-element-interactions` rule to Astro components
|
|
209
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-noninteractive-element-interactions/
|
|
210
|
+
*/
|
|
211
|
+
'astro/jsx-a11y/no-noninteractive-element-interactions'?: Linter.RuleEntry<[]>;
|
|
212
|
+
/**
|
|
213
|
+
* apply `jsx-a11y/no-noninteractive-element-to-interactive-role` rule to Astro components
|
|
214
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-noninteractive-element-to-interactive-role/
|
|
215
|
+
*/
|
|
216
|
+
'astro/jsx-a11y/no-noninteractive-element-to-interactive-role'?: Linter.RuleEntry<[]>;
|
|
217
|
+
/**
|
|
218
|
+
* apply `jsx-a11y/no-noninteractive-tabindex` rule to Astro components
|
|
219
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-noninteractive-tabindex/
|
|
220
|
+
*/
|
|
221
|
+
'astro/jsx-a11y/no-noninteractive-tabindex'?: Linter.RuleEntry<[]>;
|
|
222
|
+
/**
|
|
223
|
+
* apply `jsx-a11y/no-redundant-roles` rule to Astro components
|
|
224
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-redundant-roles/
|
|
225
|
+
*/
|
|
226
|
+
'astro/jsx-a11y/no-redundant-roles'?: Linter.RuleEntry<[]>;
|
|
227
|
+
/**
|
|
228
|
+
* apply `jsx-a11y/no-static-element-interactions` rule to Astro components
|
|
229
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-static-element-interactions/
|
|
230
|
+
*/
|
|
231
|
+
'astro/jsx-a11y/no-static-element-interactions'?: Linter.RuleEntry<[]>;
|
|
232
|
+
/**
|
|
233
|
+
* apply `jsx-a11y/prefer-tag-over-role` rule to Astro components
|
|
234
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/prefer-tag-over-role/
|
|
235
|
+
*/
|
|
236
|
+
'astro/jsx-a11y/prefer-tag-over-role'?: Linter.RuleEntry<[]>;
|
|
237
|
+
/**
|
|
238
|
+
* apply `jsx-a11y/role-has-required-aria-props` rule to Astro components
|
|
239
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/role-has-required-aria-props/
|
|
240
|
+
*/
|
|
241
|
+
'astro/jsx-a11y/role-has-required-aria-props'?: Linter.RuleEntry<[]>;
|
|
242
|
+
/**
|
|
243
|
+
* apply `jsx-a11y/role-supports-aria-props` rule to Astro components
|
|
244
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/role-supports-aria-props/
|
|
245
|
+
*/
|
|
246
|
+
'astro/jsx-a11y/role-supports-aria-props'?: Linter.RuleEntry<[]>;
|
|
247
|
+
/**
|
|
248
|
+
* apply `jsx-a11y/scope` rule to Astro components
|
|
249
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/scope/
|
|
250
|
+
*/
|
|
251
|
+
'astro/jsx-a11y/scope'?: Linter.RuleEntry<[]>;
|
|
252
|
+
/**
|
|
253
|
+
* apply `jsx-a11y/tabindex-no-positive` rule to Astro components
|
|
254
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/tabindex-no-positive/
|
|
255
|
+
*/
|
|
256
|
+
'astro/jsx-a11y/tabindex-no-positive'?: Linter.RuleEntry<[]>;
|
|
257
|
+
/**
|
|
258
|
+
* the client:only directive is missing the correct component's framework value
|
|
259
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/missing-client-only-directive-value/
|
|
260
|
+
*/
|
|
261
|
+
'astro/missing-client-only-directive-value'?: Linter.RuleEntry<[]>;
|
|
262
|
+
/**
|
|
263
|
+
* disallow conflicting set directives and child contents
|
|
264
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-conflict-set-directives/
|
|
265
|
+
*/
|
|
266
|
+
'astro/no-conflict-set-directives'?: Linter.RuleEntry<[]>;
|
|
267
|
+
/**
|
|
268
|
+
* disallow using deprecated `Astro.canonicalURL`
|
|
269
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-canonicalurl/
|
|
270
|
+
*/
|
|
271
|
+
'astro/no-deprecated-astro-canonicalurl'?: Linter.RuleEntry<[]>;
|
|
272
|
+
/**
|
|
273
|
+
* disallow using deprecated `Astro.fetchContent()`
|
|
274
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-fetchcontent/
|
|
275
|
+
*/
|
|
276
|
+
'astro/no-deprecated-astro-fetchcontent'?: Linter.RuleEntry<[]>;
|
|
277
|
+
/**
|
|
278
|
+
* disallow using deprecated `Astro.resolve()`
|
|
279
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-resolve/
|
|
280
|
+
*/
|
|
281
|
+
'astro/no-deprecated-astro-resolve'?: Linter.RuleEntry<[]>;
|
|
282
|
+
/**
|
|
283
|
+
* disallow using deprecated `getEntryBySlug()`
|
|
284
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-getentrybyslug/
|
|
285
|
+
*/
|
|
286
|
+
'astro/no-deprecated-getentrybyslug'?: Linter.RuleEntry<[]>;
|
|
287
|
+
/**
|
|
288
|
+
* disallow value export
|
|
289
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-exports-from-components/
|
|
290
|
+
*/
|
|
291
|
+
'astro/no-exports-from-components'?: Linter.RuleEntry<[]>;
|
|
292
|
+
/**
|
|
293
|
+
* disallow use of `set:html` to prevent XSS attack
|
|
294
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-html-directive/
|
|
295
|
+
*/
|
|
296
|
+
'astro/no-set-html-directive'?: Linter.RuleEntry<[]>;
|
|
297
|
+
/**
|
|
298
|
+
* disallow use of `set:text`
|
|
299
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
|
|
300
|
+
*/
|
|
301
|
+
'astro/no-set-text-directive'?: Linter.RuleEntry<[]>;
|
|
302
|
+
/**
|
|
303
|
+
* disallow inline `<script>` without `src` to encourage CSP-safe patterns
|
|
304
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
|
|
305
|
+
*/
|
|
306
|
+
'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>;
|
|
307
|
+
/**
|
|
308
|
+
* disallow selectors defined in `style` tag that don't use in HTML
|
|
309
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
|
|
310
|
+
*/
|
|
311
|
+
'astro/no-unused-css-selector'?: Linter.RuleEntry<[]>;
|
|
312
|
+
/**
|
|
313
|
+
* disallow unused `define:vars={...}` in `style` tag
|
|
314
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-define-vars-in-style/
|
|
315
|
+
*/
|
|
316
|
+
'astro/no-unused-define-vars-in-style'?: Linter.RuleEntry<[]>;
|
|
317
|
+
/**
|
|
318
|
+
* require `class:list` directives instead of `class` with expressions
|
|
319
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-class-list-directive/
|
|
320
|
+
*/
|
|
321
|
+
'astro/prefer-class-list-directive'?: Linter.RuleEntry<[]>;
|
|
322
|
+
/**
|
|
323
|
+
* require use object instead of ternary expression in `class:list`
|
|
324
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-object-class-list/
|
|
325
|
+
*/
|
|
326
|
+
'astro/prefer-object-class-list'?: Linter.RuleEntry<[]>;
|
|
327
|
+
/**
|
|
328
|
+
* require use split array elements in `class:list`
|
|
329
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-split-class-list/
|
|
330
|
+
*/
|
|
331
|
+
'astro/prefer-split-class-list'?: Linter.RuleEntry<AstroPreferSplitClassList>;
|
|
332
|
+
/**
|
|
333
|
+
* Require or disallow semicolons instead of ASI
|
|
334
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/semi/
|
|
335
|
+
*/
|
|
336
|
+
'astro/semi'?: Linter.RuleEntry<AstroSemi>;
|
|
337
|
+
/**
|
|
338
|
+
* enforce sorting of attributes
|
|
339
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/sort-attributes/
|
|
340
|
+
*/
|
|
341
|
+
'astro/sort-attributes'?: Linter.RuleEntry<AstroSortAttributes>;
|
|
342
|
+
/**
|
|
343
|
+
* disallow warnings when compiling.
|
|
344
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/
|
|
345
|
+
*/
|
|
346
|
+
'astro/valid-compile'?: Linter.RuleEntry<[]>;
|
|
77
347
|
/**
|
|
78
348
|
* Enforce the use of variables within the scope they are defined
|
|
79
349
|
* @see https://eslint.org/docs/latest/rules/block-scoped-var
|
|
@@ -2326,6 +2596,136 @@ interface RuleOptions {
|
|
|
2326
2596
|
* @deprecated
|
|
2327
2597
|
*/
|
|
2328
2598
|
'padding-line-between-statements'?: Linter.RuleEntry<PaddingLineBetweenStatements>;
|
|
2599
|
+
/**
|
|
2600
|
+
* Enforce sorted arrays before include method.
|
|
2601
|
+
* @see https://perfectionist.dev/rules/sort-array-includes
|
|
2602
|
+
*/
|
|
2603
|
+
'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
|
|
2604
|
+
/**
|
|
2605
|
+
* Enforce sorted classes.
|
|
2606
|
+
* @see https://perfectionist.dev/rules/sort-classes
|
|
2607
|
+
*/
|
|
2608
|
+
'perfectionist/sort-classes'?: Linter.RuleEntry<PerfectionistSortClasses>;
|
|
2609
|
+
/**
|
|
2610
|
+
* Enforce sorted decorators.
|
|
2611
|
+
* @see https://perfectionist.dev/rules/sort-decorators
|
|
2612
|
+
*/
|
|
2613
|
+
'perfectionist/sort-decorators'?: Linter.RuleEntry<PerfectionistSortDecorators>;
|
|
2614
|
+
/**
|
|
2615
|
+
* Enforce sorted TypeScript enums.
|
|
2616
|
+
* @see https://perfectionist.dev/rules/sort-enums
|
|
2617
|
+
*/
|
|
2618
|
+
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
2619
|
+
/**
|
|
2620
|
+
* Enforce sorted exports.
|
|
2621
|
+
* @see https://perfectionist.dev/rules/sort-exports
|
|
2622
|
+
*/
|
|
2623
|
+
'perfectionist/sort-exports'?: Linter.RuleEntry<PerfectionistSortExports>;
|
|
2624
|
+
/**
|
|
2625
|
+
* Enforce sorted heritage clauses.
|
|
2626
|
+
* @see https://perfectionist.dev/rules/sort-heritage-clauses
|
|
2627
|
+
*/
|
|
2628
|
+
'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
|
|
2629
|
+
/**
|
|
2630
|
+
* Enforce sorted imports.
|
|
2631
|
+
* @see https://perfectionist.dev/rules/sort-imports
|
|
2632
|
+
*/
|
|
2633
|
+
'perfectionist/sort-imports'?: Linter.RuleEntry<PerfectionistSortImports>;
|
|
2634
|
+
/**
|
|
2635
|
+
* Enforce sorted interface properties.
|
|
2636
|
+
* @see https://perfectionist.dev/rules/sort-interfaces
|
|
2637
|
+
*/
|
|
2638
|
+
'perfectionist/sort-interfaces'?: Linter.RuleEntry<PerfectionistSortInterfaces>;
|
|
2639
|
+
/**
|
|
2640
|
+
* Enforce sorted intersection types.
|
|
2641
|
+
* @see https://perfectionist.dev/rules/sort-intersection-types
|
|
2642
|
+
*/
|
|
2643
|
+
'perfectionist/sort-intersection-types'?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>;
|
|
2644
|
+
/**
|
|
2645
|
+
* Enforce sorted JSX props.
|
|
2646
|
+
* @see https://perfectionist.dev/rules/sort-jsx-props
|
|
2647
|
+
*/
|
|
2648
|
+
'perfectionist/sort-jsx-props'?: Linter.RuleEntry<PerfectionistSortJsxProps>;
|
|
2649
|
+
/**
|
|
2650
|
+
* Enforce sorted Map elements.
|
|
2651
|
+
* @see https://perfectionist.dev/rules/sort-maps
|
|
2652
|
+
*/
|
|
2653
|
+
'perfectionist/sort-maps'?: Linter.RuleEntry<PerfectionistSortMaps>;
|
|
2654
|
+
/**
|
|
2655
|
+
* Enforce sorted modules.
|
|
2656
|
+
* @see https://perfectionist.dev/rules/sort-modules
|
|
2657
|
+
*/
|
|
2658
|
+
'perfectionist/sort-modules'?: Linter.RuleEntry<PerfectionistSortModules>;
|
|
2659
|
+
/**
|
|
2660
|
+
* Enforce sorted named exports.
|
|
2661
|
+
* @see https://perfectionist.dev/rules/sort-named-exports
|
|
2662
|
+
*/
|
|
2663
|
+
'perfectionist/sort-named-exports'?: Linter.RuleEntry<PerfectionistSortNamedExports>;
|
|
2664
|
+
/**
|
|
2665
|
+
* Enforce sorted named imports.
|
|
2666
|
+
* @see https://perfectionist.dev/rules/sort-named-imports
|
|
2667
|
+
*/
|
|
2668
|
+
'perfectionist/sort-named-imports'?: Linter.RuleEntry<PerfectionistSortNamedImports>;
|
|
2669
|
+
/**
|
|
2670
|
+
* Enforce sorted object types.
|
|
2671
|
+
* @see https://perfectionist.dev/rules/sort-object-types
|
|
2672
|
+
*/
|
|
2673
|
+
'perfectionist/sort-object-types'?: Linter.RuleEntry<PerfectionistSortObjectTypes>;
|
|
2674
|
+
/**
|
|
2675
|
+
* Enforce sorted objects.
|
|
2676
|
+
* @see https://perfectionist.dev/rules/sort-objects
|
|
2677
|
+
*/
|
|
2678
|
+
'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>;
|
|
2679
|
+
/**
|
|
2680
|
+
* Enforce sorted sets.
|
|
2681
|
+
* @see https://perfectionist.dev/rules/sort-sets
|
|
2682
|
+
*/
|
|
2683
|
+
'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>;
|
|
2684
|
+
/**
|
|
2685
|
+
* Enforce sorted switch cases.
|
|
2686
|
+
* @see https://perfectionist.dev/rules/sort-switch-case
|
|
2687
|
+
*/
|
|
2688
|
+
'perfectionist/sort-switch-case'?: Linter.RuleEntry<PerfectionistSortSwitchCase>;
|
|
2689
|
+
/**
|
|
2690
|
+
* Enforce sorted union types.
|
|
2691
|
+
* @see https://perfectionist.dev/rules/sort-union-types
|
|
2692
|
+
*/
|
|
2693
|
+
'perfectionist/sort-union-types'?: Linter.RuleEntry<PerfectionistSortUnionTypes>;
|
|
2694
|
+
/**
|
|
2695
|
+
* Enforce sorted variable declarations.
|
|
2696
|
+
* @see https://perfectionist.dev/rules/sort-variable-declarations
|
|
2697
|
+
*/
|
|
2698
|
+
'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>;
|
|
2699
|
+
/**
|
|
2700
|
+
* Enforce using "catalog:" in `package.json`
|
|
2701
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-enforce-catalog.test.ts
|
|
2702
|
+
*/
|
|
2703
|
+
'pnpm/json-enforce-catalog'?: Linter.RuleEntry<PnpmJsonEnforceCatalog>;
|
|
2704
|
+
/**
|
|
2705
|
+
* Prefer having pnpm settings in `pnpm-workspace.yaml` instead of `package.json`. This requires pnpm v10.6+, see https://github.com/orgs/pnpm/discussions/9037.
|
|
2706
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-prefer-workspace-settings.test.ts
|
|
2707
|
+
*/
|
|
2708
|
+
'pnpm/json-prefer-workspace-settings'?: Linter.RuleEntry<PnpmJsonPreferWorkspaceSettings>;
|
|
2709
|
+
/**
|
|
2710
|
+
* Enforce using valid catalog in `package.json`
|
|
2711
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
|
|
2712
|
+
*/
|
|
2713
|
+
'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
|
|
2714
|
+
/**
|
|
2715
|
+
* Disallow duplicate catalog items in `pnpm-workspace.yaml`
|
|
2716
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
2717
|
+
*/
|
|
2718
|
+
'pnpm/yaml-no-duplicate-catalog-item'?: Linter.RuleEntry<PnpmYamlNoDuplicateCatalogItem>;
|
|
2719
|
+
/**
|
|
2720
|
+
* Disallow unused catalogs in `pnpm-workspace.yaml`
|
|
2721
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-unused-catalog-item.test.ts
|
|
2722
|
+
*/
|
|
2723
|
+
'pnpm/yaml-no-unused-catalog-item'?: Linter.RuleEntry<[]>;
|
|
2724
|
+
/**
|
|
2725
|
+
* Ensure all package patterns in `pnpm-workspace.yaml` match at least one directory
|
|
2726
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-valid-packages.test.ts
|
|
2727
|
+
*/
|
|
2728
|
+
'pnpm/yaml-valid-packages'?: Linter.RuleEntry<[]>;
|
|
2329
2729
|
/**
|
|
2330
2730
|
* Require using arrow functions for callbacks
|
|
2331
2731
|
* @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
|
|
@@ -3243,6 +3643,11 @@ interface RuleOptions {
|
|
|
3243
3643
|
* @see https://eslint.style/rules/eol-last
|
|
3244
3644
|
*/
|
|
3245
3645
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
|
|
3646
|
+
/**
|
|
3647
|
+
* Enforce consistent spacing and line break styles inside brackets.
|
|
3648
|
+
* @see https://eslint.style/rules/list-style
|
|
3649
|
+
*/
|
|
3650
|
+
'style/exp-list-style'?: Linter.RuleEntry<StyleExpListStyle>;
|
|
3246
3651
|
/**
|
|
3247
3652
|
* Enforce line breaks between arguments of a function call
|
|
3248
3653
|
* @see https://eslint.style/rules/function-call-argument-newline
|
|
@@ -4227,6 +4632,11 @@ interface RuleOptions {
|
|
|
4227
4632
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
4228
4633
|
*/
|
|
4229
4634
|
'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>;
|
|
4635
|
+
/**
|
|
4636
|
+
* Disallow unused private class members
|
|
4637
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
4638
|
+
*/
|
|
4639
|
+
'ts/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
|
|
4230
4640
|
/**
|
|
4231
4641
|
* Disallow unused variables
|
|
4232
4642
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
@@ -4453,710 +4863,725 @@ interface RuleOptions {
|
|
|
4453
4863
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
4454
4864
|
/**
|
|
4455
4865
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
4457
4867
|
*/
|
|
4458
4868
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
4459
4869
|
/**
|
|
4460
4870
|
* Enforce a specific parameter name in catch clauses.
|
|
4461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
4462
4872
|
*/
|
|
4463
4873
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
4464
4874
|
/**
|
|
4465
4875
|
* Enforce consistent assertion style with `node:assert`.
|
|
4466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
4467
4877
|
*/
|
|
4468
4878
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
4469
4879
|
/**
|
|
4470
4880
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
4471
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
4472
4882
|
*/
|
|
4473
4883
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
4474
4884
|
/**
|
|
4475
4885
|
* Use destructured variables over properties.
|
|
4476
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
4477
4887
|
*/
|
|
4478
4888
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
4479
4889
|
/**
|
|
4480
4890
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4481
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4482
4892
|
*/
|
|
4483
4893
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
4484
4894
|
/**
|
|
4485
4895
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4486
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
4487
4897
|
*/
|
|
4488
4898
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
4489
4899
|
/**
|
|
4490
4900
|
* Move function definitions to the highest possible scope.
|
|
4491
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
4492
4902
|
*/
|
|
4493
4903
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
4494
4904
|
/**
|
|
4495
4905
|
* Enforce correct `Error` subclassing.
|
|
4496
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
4497
4907
|
*/
|
|
4498
4908
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
4499
4909
|
/**
|
|
4500
4910
|
* Enforce no spaces between braces.
|
|
4501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
4502
4912
|
*/
|
|
4503
4913
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
4504
4914
|
/**
|
|
4505
4915
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
4507
4917
|
*/
|
|
4508
4918
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
4509
4919
|
/**
|
|
4510
4920
|
* Require escape sequences to use uppercase or lowercase values.
|
|
4511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
4512
4922
|
*/
|
|
4513
4923
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
4514
4924
|
/**
|
|
4515
4925
|
* Add expiration conditions to TODO comments.
|
|
4516
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
4517
4927
|
*/
|
|
4518
4928
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
4519
4929
|
/**
|
|
4520
4930
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
4522
4932
|
*/
|
|
4523
4933
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
4524
4934
|
/**
|
|
4525
4935
|
* Enforce a case style for filenames.
|
|
4526
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
4527
4937
|
*/
|
|
4528
4938
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
4529
4939
|
/**
|
|
4530
4940
|
* Enforce specific import styles per module.
|
|
4531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
4532
4942
|
*/
|
|
4533
4943
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
4534
4944
|
/**
|
|
4535
4945
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
4537
4947
|
*/
|
|
4538
4948
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
4539
4949
|
/**
|
|
4540
4950
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4542
4952
|
*/
|
|
4543
4953
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
4544
4954
|
/**
|
|
4545
4955
|
* Disallow recursive access to `this` within getters and setters.
|
|
4546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
4547
4957
|
*/
|
|
4548
4958
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
4549
4959
|
/**
|
|
4550
4960
|
* Disallow anonymous functions and classes as the default export.
|
|
4551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
4552
4962
|
*/
|
|
4553
4963
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
4554
4964
|
/**
|
|
4555
4965
|
* Prevent passing a function reference directly to iterator methods.
|
|
4556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
4557
4967
|
*/
|
|
4558
4968
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
4559
4969
|
/**
|
|
4560
4970
|
* Prefer `for…of` over the `forEach` method.
|
|
4561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
4562
4972
|
*/
|
|
4563
4973
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
4564
4974
|
/**
|
|
4565
4975
|
* Disallow using the `this` argument in array methods.
|
|
4566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
4567
4977
|
*/
|
|
4568
4978
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
4569
4979
|
/**
|
|
4570
4980
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
4571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
4572
4982
|
* @deprecated
|
|
4573
4983
|
*/
|
|
4574
4984
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
4575
4985
|
/**
|
|
4576
4986
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4577
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
4578
4988
|
*/
|
|
4579
4989
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
4580
4990
|
/**
|
|
4581
4991
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
4582
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
4583
4993
|
*/
|
|
4584
4994
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
4585
4995
|
/**
|
|
4586
4996
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
4587
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
4588
4998
|
*/
|
|
4589
4999
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
4590
5000
|
/**
|
|
4591
5001
|
* Disallow member access from await expression.
|
|
4592
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
4593
5003
|
*/
|
|
4594
5004
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
4595
5005
|
/**
|
|
4596
5006
|
* Disallow using `await` in `Promise` method parameters.
|
|
4597
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4598
5008
|
*/
|
|
4599
5009
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
4600
5010
|
/**
|
|
4601
5011
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
4603
5013
|
*/
|
|
4604
5014
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
4605
5015
|
/**
|
|
4606
5016
|
* Do not use `document.cookie` directly.
|
|
4607
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
4608
5018
|
*/
|
|
4609
5019
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
4610
5020
|
/**
|
|
4611
5021
|
* Disallow empty files.
|
|
4612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
4613
5023
|
*/
|
|
4614
5024
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
4615
5025
|
/**
|
|
4616
5026
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4617
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
4618
5028
|
*/
|
|
4619
5029
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
4620
5030
|
/**
|
|
4621
5031
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
4622
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
4623
5033
|
*/
|
|
4624
5034
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
5035
|
+
/**
|
|
5036
|
+
* Disallow immediate mutation after variable assignment.
|
|
5037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
5038
|
+
*/
|
|
5039
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
4625
5040
|
/**
|
|
4626
5041
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
4627
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
4628
5043
|
* @deprecated
|
|
4629
5044
|
*/
|
|
4630
5045
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
4631
5046
|
/**
|
|
4632
5047
|
* Disallow `instanceof` with built-in objects
|
|
4633
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
4634
5049
|
*/
|
|
4635
5050
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
4636
5051
|
/**
|
|
4637
5052
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
4638
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
4639
5054
|
*/
|
|
4640
5055
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
4641
5056
|
/**
|
|
4642
5057
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4643
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
4644
5059
|
*/
|
|
4645
5060
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
4646
5061
|
/**
|
|
4647
5062
|
* Disallow identifiers starting with `new` or `class`.
|
|
4648
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
4649
5064
|
*/
|
|
4650
5065
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
4651
5066
|
/**
|
|
4652
5067
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
4653
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
4654
5069
|
* @deprecated
|
|
4655
5070
|
*/
|
|
4656
5071
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
4657
5072
|
/**
|
|
4658
5073
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5074
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
4660
5075
|
*/
|
|
4661
5076
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
4662
5077
|
/**
|
|
4663
5078
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
4664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
4665
5080
|
*/
|
|
4666
5081
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
4667
5082
|
/**
|
|
4668
5083
|
* Disallow named usage of default import and export.
|
|
4669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5084
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
4670
5085
|
*/
|
|
4671
5086
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
4672
5087
|
/**
|
|
4673
5088
|
* Disallow negated conditions.
|
|
4674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5089
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
4675
5090
|
*/
|
|
4676
5091
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
4677
5092
|
/**
|
|
4678
5093
|
* Disallow negated expression in equality check.
|
|
4679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5094
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
4680
5095
|
*/
|
|
4681
5096
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
4682
5097
|
/**
|
|
4683
5098
|
* Disallow nested ternary expressions.
|
|
4684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5099
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
4685
5100
|
*/
|
|
4686
5101
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
4687
5102
|
/**
|
|
4688
5103
|
* Disallow `new Array()`.
|
|
4689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5104
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
4690
5105
|
*/
|
|
4691
5106
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
4692
5107
|
/**
|
|
4693
5108
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5109
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
4695
5110
|
*/
|
|
4696
5111
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
4697
5112
|
/**
|
|
4698
5113
|
* Disallow the use of the `null` literal.
|
|
4699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5114
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
4700
5115
|
*/
|
|
4701
5116
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
4702
5117
|
/**
|
|
4703
5118
|
* Disallow the use of objects as default parameters.
|
|
4704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4705
5120
|
*/
|
|
4706
5121
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
4707
5122
|
/**
|
|
4708
5123
|
* Disallow `process.exit()`.
|
|
4709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
4710
5125
|
*/
|
|
4711
5126
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
4712
5127
|
/**
|
|
4713
5128
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
4714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
4715
5130
|
*/
|
|
4716
5131
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
4717
5132
|
/**
|
|
4718
5133
|
* Disallow classes that only have static members.
|
|
4719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
4720
5135
|
*/
|
|
4721
5136
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
4722
5137
|
/**
|
|
4723
5138
|
* Disallow `then` property.
|
|
4724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
4725
5140
|
*/
|
|
4726
5141
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
4727
5142
|
/**
|
|
4728
5143
|
* Disallow assigning `this` to a variable.
|
|
4729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
4730
5145
|
*/
|
|
4731
5146
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
4732
5147
|
/**
|
|
4733
5148
|
* Disallow comparing `undefined` using `typeof`.
|
|
4734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5149
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
4735
5150
|
*/
|
|
4736
5151
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
4737
5152
|
/**
|
|
4738
5153
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
4739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5154
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
4740
5155
|
*/
|
|
4741
5156
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
4742
5157
|
/**
|
|
4743
5158
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
4744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5159
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
4745
5160
|
*/
|
|
4746
5161
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
4747
5162
|
/**
|
|
4748
5163
|
* Disallow awaiting non-promise values.
|
|
4749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5164
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
4750
5165
|
*/
|
|
4751
5166
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
4752
5167
|
/**
|
|
4753
5168
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5169
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
4755
5170
|
*/
|
|
4756
5171
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
4757
5172
|
/**
|
|
4758
5173
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
4759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5174
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
4760
5175
|
*/
|
|
4761
5176
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
4762
5177
|
/**
|
|
4763
5178
|
* Disallow unreadable array destructuring.
|
|
4764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5179
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
4765
5180
|
*/
|
|
4766
5181
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
4767
5182
|
/**
|
|
4768
5183
|
* Disallow unreadable IIFEs.
|
|
4769
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5184
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
4770
5185
|
*/
|
|
4771
5186
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
4772
5187
|
/**
|
|
4773
5188
|
* Disallow unused object properties.
|
|
4774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5189
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
4775
5190
|
*/
|
|
4776
5191
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
5192
|
+
/**
|
|
5193
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5194
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
5195
|
+
*/
|
|
5196
|
+
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
4777
5197
|
/**
|
|
4778
5198
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
4779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5199
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
4780
5200
|
*/
|
|
4781
5201
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
4782
5202
|
/**
|
|
4783
5203
|
* Disallow useless fallback when spreading in object literals.
|
|
4784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5204
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
4785
5205
|
*/
|
|
4786
5206
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
4787
5207
|
/**
|
|
4788
5208
|
* Disallow useless array length check.
|
|
4789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5209
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
4790
5210
|
*/
|
|
4791
5211
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
4792
5212
|
/**
|
|
4793
5213
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4794
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5214
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
4795
5215
|
*/
|
|
4796
5216
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
4797
5217
|
/**
|
|
4798
5218
|
* Disallow unnecessary spread.
|
|
4799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5219
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
4800
5220
|
*/
|
|
4801
5221
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
4802
5222
|
/**
|
|
4803
5223
|
* Disallow useless case in switch statements.
|
|
4804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5224
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
4805
5225
|
*/
|
|
4806
5226
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
4807
5227
|
/**
|
|
4808
5228
|
* Disallow useless `undefined`.
|
|
4809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
4810
5230
|
*/
|
|
4811
5231
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
4812
5232
|
/**
|
|
4813
5233
|
* Disallow number literals with zero fractions or dangling dots.
|
|
4814
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
4815
5235
|
*/
|
|
4816
5236
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
4817
5237
|
/**
|
|
4818
5238
|
* Enforce proper case for numeric literals.
|
|
4819
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
4820
5240
|
*/
|
|
4821
5241
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
4822
5242
|
/**
|
|
4823
5243
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
4825
5245
|
*/
|
|
4826
5246
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
4827
5247
|
/**
|
|
4828
5248
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4829
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
4830
5250
|
*/
|
|
4831
5251
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
4832
5252
|
/**
|
|
4833
5253
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
4835
5255
|
*/
|
|
4836
5256
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
4837
5257
|
/**
|
|
4838
5258
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4839
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
4840
5260
|
*/
|
|
4841
5261
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
4842
5262
|
/**
|
|
4843
5263
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
4845
5265
|
*/
|
|
4846
5266
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
4847
5267
|
/**
|
|
4848
5268
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
4849
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
4850
5270
|
*/
|
|
4851
5271
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
4852
5272
|
/**
|
|
4853
5273
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
4854
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5274
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
4855
5275
|
*/
|
|
4856
5276
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
4857
5277
|
/**
|
|
4858
5278
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4859
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5279
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
4860
5280
|
*/
|
|
4861
5281
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
4862
5282
|
/**
|
|
4863
5283
|
* Prefer `BigInt` literals over the constructor.
|
|
4864
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5284
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
4865
5285
|
*/
|
|
4866
5286
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
4867
5287
|
/**
|
|
4868
5288
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4869
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
4870
5290
|
*/
|
|
4871
5291
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
4872
5292
|
/**
|
|
4873
5293
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
4874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5294
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
4875
5295
|
*/
|
|
4876
5296
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
4877
5297
|
/**
|
|
4878
5298
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
4879
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5299
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
4880
5300
|
*/
|
|
4881
5301
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
4882
5302
|
/**
|
|
4883
5303
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
4884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5304
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
4885
5305
|
*/
|
|
4886
5306
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
4887
5307
|
/**
|
|
4888
5308
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
4889
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5309
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
4890
5310
|
*/
|
|
4891
5311
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
4892
5312
|
/**
|
|
4893
5313
|
* Prefer default parameters over reassignment.
|
|
4894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
4895
5315
|
*/
|
|
4896
5316
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
4897
5317
|
/**
|
|
4898
5318
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5319
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
4900
5320
|
*/
|
|
4901
5321
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
4902
5322
|
/**
|
|
4903
5323
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4904
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5324
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
4905
5325
|
*/
|
|
4906
5326
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
4907
5327
|
/**
|
|
4908
5328
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5329
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
4910
5330
|
*/
|
|
4911
5331
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
4912
5332
|
/**
|
|
4913
5333
|
* Prefer `.textContent` over `.innerText`.
|
|
4914
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5334
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
4915
5335
|
*/
|
|
4916
5336
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
4917
5337
|
/**
|
|
4918
5338
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
4919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5339
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
4920
5340
|
*/
|
|
4921
5341
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
4922
5342
|
/**
|
|
4923
5343
|
* Prefer `export…from` when re-exporting.
|
|
4924
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5344
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
4925
5345
|
*/
|
|
4926
5346
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
4927
5347
|
/**
|
|
4928
5348
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
4929
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5349
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
4930
5350
|
*/
|
|
4931
5351
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
4932
5352
|
/**
|
|
4933
5353
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
4934
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5354
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
4935
5355
|
*/
|
|
4936
5356
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
4937
5357
|
/**
|
|
4938
5358
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
4939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5359
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
4940
5360
|
*/
|
|
4941
5361
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
4942
5362
|
/**
|
|
4943
5363
|
* Prefer reading a JSON file as a buffer.
|
|
4944
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5364
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
4945
5365
|
*/
|
|
4946
5366
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
4947
5367
|
/**
|
|
4948
5368
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
4949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5369
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
4950
5370
|
*/
|
|
4951
5371
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
4952
5372
|
/**
|
|
4953
5373
|
* Prefer using a logical operator over a ternary.
|
|
4954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5374
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
4955
5375
|
*/
|
|
4956
5376
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
4957
5377
|
/**
|
|
4958
5378
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
4959
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5379
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
4960
5380
|
*/
|
|
4961
5381
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
4962
5382
|
/**
|
|
4963
5383
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
4964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5384
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
4965
5385
|
*/
|
|
4966
5386
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
4967
5387
|
/**
|
|
4968
5388
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
4969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5389
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
4970
5390
|
*/
|
|
4971
5391
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
4972
5392
|
/**
|
|
4973
5393
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
4974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5394
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
4975
5395
|
*/
|
|
4976
5396
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
4977
5397
|
/**
|
|
4978
5398
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
4979
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5399
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
4980
5400
|
*/
|
|
4981
5401
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
4982
5402
|
/**
|
|
4983
5403
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
4984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5404
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
4985
5405
|
*/
|
|
4986
5406
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
4987
5407
|
/**
|
|
4988
5408
|
* Prefer negative index over `.length - index` when possible.
|
|
4989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5409
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
4990
5410
|
*/
|
|
4991
5411
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
4992
5412
|
/**
|
|
4993
5413
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
4994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5414
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
4995
5415
|
*/
|
|
4996
5416
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
4997
5417
|
/**
|
|
4998
5418
|
* Prefer `Number` static properties over global ones.
|
|
4999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5419
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
5000
5420
|
*/
|
|
5001
5421
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
5002
5422
|
/**
|
|
5003
5423
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5424
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
5005
5425
|
*/
|
|
5006
5426
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
5007
5427
|
/**
|
|
5008
5428
|
* Prefer omitting the `catch` binding parameter.
|
|
5009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5429
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5010
5430
|
*/
|
|
5011
5431
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
5012
5432
|
/**
|
|
5013
5433
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
5015
5435
|
*/
|
|
5016
5436
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
5017
5437
|
/**
|
|
5018
5438
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
5020
5440
|
*/
|
|
5021
5441
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
5022
5442
|
/**
|
|
5023
5443
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5024
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
5025
5445
|
*/
|
|
5026
5446
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
5027
5447
|
/**
|
|
5028
5448
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5449
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
5030
5450
|
*/
|
|
5031
5451
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
5452
|
+
/**
|
|
5453
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
5454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
5455
|
+
*/
|
|
5456
|
+
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
5032
5457
|
/**
|
|
5033
5458
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5034
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
5035
5460
|
*/
|
|
5036
5461
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
5037
5462
|
/**
|
|
5038
5463
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5039
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
5040
5465
|
*/
|
|
5041
5466
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
5042
5467
|
/**
|
|
5043
5468
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
5044
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
5045
5470
|
*/
|
|
5046
5471
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
5047
5472
|
/**
|
|
5048
5473
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5049
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
5050
5475
|
*/
|
|
5051
5476
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
5052
5477
|
/**
|
|
5053
5478
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5479
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
5055
5480
|
*/
|
|
5056
5481
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
5057
5482
|
/**
|
|
5058
5483
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
5060
5485
|
*/
|
|
5061
5486
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
5062
5487
|
/**
|
|
5063
5488
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5064
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
5065
5490
|
*/
|
|
5066
5491
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
5067
5492
|
/**
|
|
5068
5493
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5494
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5070
5495
|
*/
|
|
5071
5496
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
5072
5497
|
/**
|
|
5073
5498
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5074
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5075
5500
|
*/
|
|
5076
5501
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
5077
5502
|
/**
|
|
5078
5503
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5079
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5504
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
5080
5505
|
*/
|
|
5081
5506
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
5082
5507
|
/**
|
|
5083
5508
|
* Prefer `switch` over multiple `else-if`.
|
|
5084
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
5085
5510
|
*/
|
|
5086
5511
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
5087
5512
|
/**
|
|
5088
5513
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
5090
5515
|
*/
|
|
5091
5516
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
5092
5517
|
/**
|
|
5093
5518
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5094
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
5095
5520
|
*/
|
|
5096
5521
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
5097
5522
|
/**
|
|
5098
5523
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5099
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
5100
5525
|
*/
|
|
5101
5526
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
5102
5527
|
/**
|
|
5103
5528
|
* Prevent abbreviations.
|
|
5104
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
5105
5530
|
*/
|
|
5106
5531
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
5107
5532
|
/**
|
|
5108
5533
|
* Enforce consistent relative URL style.
|
|
5109
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
5110
5535
|
*/
|
|
5111
5536
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
5112
5537
|
/**
|
|
5113
5538
|
* Enforce using the separator argument with `Array#join()`.
|
|
5114
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
5115
5540
|
*/
|
|
5116
5541
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
5117
5542
|
/**
|
|
5118
5543
|
* Require non-empty module attributes for imports and exports
|
|
5119
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
5120
5545
|
*/
|
|
5121
5546
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
5122
5547
|
/**
|
|
5123
5548
|
* Require non-empty specifier list in import and export statements.
|
|
5124
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
5125
5550
|
*/
|
|
5126
5551
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
5127
5552
|
/**
|
|
5128
5553
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5129
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5130
5555
|
*/
|
|
5131
5556
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
5132
5557
|
/**
|
|
5133
5558
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5134
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
5135
5560
|
*/
|
|
5136
5561
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
5137
5562
|
/**
|
|
5138
5563
|
* Enforce better string content.
|
|
5139
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
5140
5565
|
*/
|
|
5141
5566
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
5142
5567
|
/**
|
|
5143
5568
|
* Enforce consistent brace style for `case` clauses.
|
|
5144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
5145
5570
|
*/
|
|
5146
5571
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
5147
5572
|
/**
|
|
5148
5573
|
* Fix whitespace-insensitive template indentation.
|
|
5149
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
5150
5575
|
*/
|
|
5151
5576
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
5152
5577
|
/**
|
|
5153
5578
|
* Enforce consistent case for text encoding identifiers.
|
|
5154
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5155
5580
|
*/
|
|
5156
|
-
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<
|
|
5581
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
5157
5582
|
/**
|
|
5158
5583
|
* Require `new` when creating an error.
|
|
5159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
5160
5585
|
*/
|
|
5161
5586
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
5162
5587
|
/**
|
|
@@ -5185,7 +5610,7 @@ interface RuleOptions {
|
|
|
5185
5610
|
*/
|
|
5186
5611
|
'vars-on-top'?: Linter.RuleEntry<[]>;
|
|
5187
5612
|
/**
|
|
5188
|
-
* require
|
|
5613
|
+
* require test file pattern
|
|
5189
5614
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
5190
5615
|
*/
|
|
5191
5616
|
'vitest/consistent-test-filename'?: Linter.RuleEntry<VitestConsistentTestFilename>;
|
|
@@ -5510,6 +5935,11 @@ interface RuleOptions {
|
|
|
5510
5935
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
5511
5936
|
*/
|
|
5512
5937
|
'vitest/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
|
|
5938
|
+
/**
|
|
5939
|
+
* ensure that every `expect.poll` call is awaited
|
|
5940
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
|
|
5941
|
+
*/
|
|
5942
|
+
'vitest/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
|
|
5513
5943
|
/**
|
|
5514
5944
|
* require setup and teardown to be within a hook
|
|
5515
5945
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -7010,6 +7440,30 @@ type ArrowSpacing = [] | [{
|
|
|
7010
7440
|
before?: boolean;
|
|
7011
7441
|
after?: boolean;
|
|
7012
7442
|
}];
|
|
7443
|
+
// ----- astro/no-unsafe-inline-scripts -----
|
|
7444
|
+
type AstroNoUnsafeInlineScripts = [] | [{
|
|
7445
|
+
allowDefineVars?: boolean;
|
|
7446
|
+
allowModuleScripts?: boolean;
|
|
7447
|
+
allowNonExecutingTypes?: string[];
|
|
7448
|
+
allowNonce?: boolean;
|
|
7449
|
+
}];
|
|
7450
|
+
// ----- astro/prefer-split-class-list -----
|
|
7451
|
+
type AstroPreferSplitClassList = [] | [{
|
|
7452
|
+
splitLiteral?: boolean;
|
|
7453
|
+
}];
|
|
7454
|
+
// ----- astro/semi -----
|
|
7455
|
+
type AstroSemi = ([] | ["never"] | ["never", {
|
|
7456
|
+
beforeStatementContinuationChars?: ("always" | "any" | "never");
|
|
7457
|
+
}] | [] | ["always"] | ["always", {
|
|
7458
|
+
omitLastInOneLineBlock?: boolean;
|
|
7459
|
+
omitLastInOneLineClassBody?: boolean;
|
|
7460
|
+
}]);
|
|
7461
|
+
// ----- astro/sort-attributes -----
|
|
7462
|
+
type AstroSortAttributes = [] | [{
|
|
7463
|
+
type?: ("alphabetical" | "line-length");
|
|
7464
|
+
ignoreCase?: boolean;
|
|
7465
|
+
order?: ("asc" | "desc");
|
|
7466
|
+
}];
|
|
7013
7467
|
// ----- block-spacing -----
|
|
7014
7468
|
type BlockSpacing = [] | [("always" | "never")];
|
|
7015
7469
|
// ----- brace-style -----
|
|
@@ -7199,6 +7653,7 @@ type HtmlIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
7199
7653
|
tagChildrenIndent?: {
|
|
7200
7654
|
[k: string]: number;
|
|
7201
7655
|
};
|
|
7656
|
+
ignoreComment?: boolean;
|
|
7202
7657
|
}];
|
|
7203
7658
|
// ----- html/max-element-depth -----
|
|
7204
7659
|
type HtmlMaxElementDepth = [] | [{
|
|
@@ -9150,6 +9605,1746 @@ type PaddingLineBetweenStatements = {
|
|
|
9150
9605
|
prev: _PaddingLineBetweenStatementsStatementType;
|
|
9151
9606
|
next: _PaddingLineBetweenStatementsStatementType;
|
|
9152
9607
|
}[];
|
|
9608
|
+
// ----- perfectionist/sort-array-includes -----
|
|
9609
|
+
type PerfectionistSortArrayIncludes = {
|
|
9610
|
+
fallbackSort?: {
|
|
9611
|
+
order?: ("asc" | "desc");
|
|
9612
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9613
|
+
};
|
|
9614
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9615
|
+
ignoreCase?: boolean;
|
|
9616
|
+
alphabet?: string;
|
|
9617
|
+
locales?: (string | string[]);
|
|
9618
|
+
order?: ("asc" | "desc");
|
|
9619
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9620
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9621
|
+
customGroups?: ({
|
|
9622
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9623
|
+
fallbackSort?: {
|
|
9624
|
+
order?: ("asc" | "desc");
|
|
9625
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9626
|
+
};
|
|
9627
|
+
groupName: string;
|
|
9628
|
+
order?: ("asc" | "desc");
|
|
9629
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9630
|
+
anyOf?: {
|
|
9631
|
+
selector?: ("literal" | "spread");
|
|
9632
|
+
elementNamePattern?: (({
|
|
9633
|
+
pattern: string;
|
|
9634
|
+
flags?: string;
|
|
9635
|
+
} | string)[] | ({
|
|
9636
|
+
pattern: string;
|
|
9637
|
+
flags?: string;
|
|
9638
|
+
} | string));
|
|
9639
|
+
}[];
|
|
9640
|
+
} | {
|
|
9641
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9642
|
+
fallbackSort?: {
|
|
9643
|
+
order?: ("asc" | "desc");
|
|
9644
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9645
|
+
};
|
|
9646
|
+
groupName: string;
|
|
9647
|
+
order?: ("asc" | "desc");
|
|
9648
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9649
|
+
selector?: ("literal" | "spread");
|
|
9650
|
+
elementNamePattern?: (({
|
|
9651
|
+
pattern: string;
|
|
9652
|
+
flags?: string;
|
|
9653
|
+
} | string)[] | ({
|
|
9654
|
+
pattern: string;
|
|
9655
|
+
flags?: string;
|
|
9656
|
+
} | string));
|
|
9657
|
+
})[];
|
|
9658
|
+
useConfigurationIf?: {
|
|
9659
|
+
allNamesMatchPattern?: (({
|
|
9660
|
+
pattern: string;
|
|
9661
|
+
flags?: string;
|
|
9662
|
+
} | string)[] | ({
|
|
9663
|
+
pattern: string;
|
|
9664
|
+
flags?: string;
|
|
9665
|
+
} | string));
|
|
9666
|
+
};
|
|
9667
|
+
partitionByComment?: (boolean | (({
|
|
9668
|
+
pattern: string;
|
|
9669
|
+
flags?: string;
|
|
9670
|
+
} | string)[] | ({
|
|
9671
|
+
pattern: string;
|
|
9672
|
+
flags?: string;
|
|
9673
|
+
} | string)) | {
|
|
9674
|
+
block?: (boolean | (({
|
|
9675
|
+
pattern: string;
|
|
9676
|
+
flags?: string;
|
|
9677
|
+
} | string)[] | ({
|
|
9678
|
+
pattern: string;
|
|
9679
|
+
flags?: string;
|
|
9680
|
+
} | string)));
|
|
9681
|
+
line?: (boolean | (({
|
|
9682
|
+
pattern: string;
|
|
9683
|
+
flags?: string;
|
|
9684
|
+
} | string)[] | ({
|
|
9685
|
+
pattern: string;
|
|
9686
|
+
flags?: string;
|
|
9687
|
+
} | string)));
|
|
9688
|
+
});
|
|
9689
|
+
partitionByNewLine?: boolean;
|
|
9690
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9691
|
+
groups?: (string | string[] | {
|
|
9692
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9693
|
+
commentAbove?: string;
|
|
9694
|
+
})[];
|
|
9695
|
+
}[];
|
|
9696
|
+
// ----- perfectionist/sort-classes -----
|
|
9697
|
+
type PerfectionistSortClasses = [] | [{
|
|
9698
|
+
fallbackSort?: {
|
|
9699
|
+
order?: ("asc" | "desc");
|
|
9700
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9701
|
+
};
|
|
9702
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9703
|
+
ignoreCase?: boolean;
|
|
9704
|
+
alphabet?: string;
|
|
9705
|
+
locales?: (string | string[]);
|
|
9706
|
+
order?: ("asc" | "desc");
|
|
9707
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9708
|
+
customGroups?: ({
|
|
9709
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9710
|
+
fallbackSort?: {
|
|
9711
|
+
order?: ("asc" | "desc");
|
|
9712
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9713
|
+
};
|
|
9714
|
+
groupName: string;
|
|
9715
|
+
order?: ("asc" | "desc");
|
|
9716
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9717
|
+
anyOf?: {
|
|
9718
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9719
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9720
|
+
decoratorNamePattern?: (({
|
|
9721
|
+
pattern: string;
|
|
9722
|
+
flags?: string;
|
|
9723
|
+
} | string)[] | ({
|
|
9724
|
+
pattern: string;
|
|
9725
|
+
flags?: string;
|
|
9726
|
+
} | string));
|
|
9727
|
+
elementValuePattern?: (({
|
|
9728
|
+
pattern: string;
|
|
9729
|
+
flags?: string;
|
|
9730
|
+
} | string)[] | ({
|
|
9731
|
+
pattern: string;
|
|
9732
|
+
flags?: string;
|
|
9733
|
+
} | string));
|
|
9734
|
+
elementNamePattern?: (({
|
|
9735
|
+
pattern: string;
|
|
9736
|
+
flags?: string;
|
|
9737
|
+
} | string)[] | ({
|
|
9738
|
+
pattern: string;
|
|
9739
|
+
flags?: string;
|
|
9740
|
+
} | string));
|
|
9741
|
+
}[];
|
|
9742
|
+
} | {
|
|
9743
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9744
|
+
fallbackSort?: {
|
|
9745
|
+
order?: ("asc" | "desc");
|
|
9746
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9747
|
+
};
|
|
9748
|
+
groupName: string;
|
|
9749
|
+
order?: ("asc" | "desc");
|
|
9750
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9751
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9752
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9753
|
+
decoratorNamePattern?: (({
|
|
9754
|
+
pattern: string;
|
|
9755
|
+
flags?: string;
|
|
9756
|
+
} | string)[] | ({
|
|
9757
|
+
pattern: string;
|
|
9758
|
+
flags?: string;
|
|
9759
|
+
} | string));
|
|
9760
|
+
elementValuePattern?: (({
|
|
9761
|
+
pattern: string;
|
|
9762
|
+
flags?: string;
|
|
9763
|
+
} | string)[] | ({
|
|
9764
|
+
pattern: string;
|
|
9765
|
+
flags?: string;
|
|
9766
|
+
} | string));
|
|
9767
|
+
elementNamePattern?: (({
|
|
9768
|
+
pattern: string;
|
|
9769
|
+
flags?: string;
|
|
9770
|
+
} | string)[] | ({
|
|
9771
|
+
pattern: string;
|
|
9772
|
+
flags?: string;
|
|
9773
|
+
} | string));
|
|
9774
|
+
})[];
|
|
9775
|
+
ignoreCallbackDependenciesPatterns?: (({
|
|
9776
|
+
pattern: string;
|
|
9777
|
+
flags?: string;
|
|
9778
|
+
} | string)[] | ({
|
|
9779
|
+
pattern: string;
|
|
9780
|
+
flags?: string;
|
|
9781
|
+
} | string));
|
|
9782
|
+
partitionByComment?: (boolean | (({
|
|
9783
|
+
pattern: string;
|
|
9784
|
+
flags?: string;
|
|
9785
|
+
} | string)[] | ({
|
|
9786
|
+
pattern: string;
|
|
9787
|
+
flags?: string;
|
|
9788
|
+
} | string)) | {
|
|
9789
|
+
block?: (boolean | (({
|
|
9790
|
+
pattern: string;
|
|
9791
|
+
flags?: string;
|
|
9792
|
+
} | string)[] | ({
|
|
9793
|
+
pattern: string;
|
|
9794
|
+
flags?: string;
|
|
9795
|
+
} | string)));
|
|
9796
|
+
line?: (boolean | (({
|
|
9797
|
+
pattern: string;
|
|
9798
|
+
flags?: string;
|
|
9799
|
+
} | string)[] | ({
|
|
9800
|
+
pattern: string;
|
|
9801
|
+
flags?: string;
|
|
9802
|
+
} | string)));
|
|
9803
|
+
});
|
|
9804
|
+
partitionByNewLine?: boolean;
|
|
9805
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9806
|
+
groups?: (string | string[] | {
|
|
9807
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9808
|
+
commentAbove?: string;
|
|
9809
|
+
})[];
|
|
9810
|
+
}];
|
|
9811
|
+
// ----- perfectionist/sort-decorators -----
|
|
9812
|
+
type PerfectionistSortDecorators = [] | [{
|
|
9813
|
+
fallbackSort?: {
|
|
9814
|
+
order?: ("asc" | "desc");
|
|
9815
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9816
|
+
};
|
|
9817
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9818
|
+
ignoreCase?: boolean;
|
|
9819
|
+
alphabet?: string;
|
|
9820
|
+
locales?: (string | string[]);
|
|
9821
|
+
order?: ("asc" | "desc");
|
|
9822
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9823
|
+
sortOnParameters?: boolean;
|
|
9824
|
+
sortOnProperties?: boolean;
|
|
9825
|
+
sortOnAccessors?: boolean;
|
|
9826
|
+
sortOnMethods?: boolean;
|
|
9827
|
+
sortOnClasses?: boolean;
|
|
9828
|
+
partitionByComment?: (boolean | (({
|
|
9829
|
+
pattern: string;
|
|
9830
|
+
flags?: string;
|
|
9831
|
+
} | string)[] | ({
|
|
9832
|
+
pattern: string;
|
|
9833
|
+
flags?: string;
|
|
9834
|
+
} | string)) | {
|
|
9835
|
+
block?: (boolean | (({
|
|
9836
|
+
pattern: string;
|
|
9837
|
+
flags?: string;
|
|
9838
|
+
} | string)[] | ({
|
|
9839
|
+
pattern: string;
|
|
9840
|
+
flags?: string;
|
|
9841
|
+
} | string)));
|
|
9842
|
+
line?: (boolean | (({
|
|
9843
|
+
pattern: string;
|
|
9844
|
+
flags?: string;
|
|
9845
|
+
} | string)[] | ({
|
|
9846
|
+
pattern: string;
|
|
9847
|
+
flags?: string;
|
|
9848
|
+
} | string)));
|
|
9849
|
+
});
|
|
9850
|
+
customGroups?: {
|
|
9851
|
+
[k: string]: (string | string[]) | undefined;
|
|
9852
|
+
};
|
|
9853
|
+
groups?: (string | string[] | {
|
|
9854
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9855
|
+
commentAbove?: string;
|
|
9856
|
+
})[];
|
|
9857
|
+
}];
|
|
9858
|
+
// ----- perfectionist/sort-enums -----
|
|
9859
|
+
type PerfectionistSortEnums = [] | [{
|
|
9860
|
+
fallbackSort?: {
|
|
9861
|
+
order?: ("asc" | "desc");
|
|
9862
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9863
|
+
};
|
|
9864
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9865
|
+
ignoreCase?: boolean;
|
|
9866
|
+
alphabet?: string;
|
|
9867
|
+
locales?: (string | string[]);
|
|
9868
|
+
order?: ("asc" | "desc");
|
|
9869
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9870
|
+
customGroups?: ({
|
|
9871
|
+
[k: string]: (string | string[]) | undefined;
|
|
9872
|
+
} | ({
|
|
9873
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9874
|
+
fallbackSort?: {
|
|
9875
|
+
order?: ("asc" | "desc");
|
|
9876
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9877
|
+
};
|
|
9878
|
+
groupName: string;
|
|
9879
|
+
order?: ("asc" | "desc");
|
|
9880
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9881
|
+
anyOf?: {
|
|
9882
|
+
elementValuePattern?: (({
|
|
9883
|
+
pattern: string;
|
|
9884
|
+
flags?: string;
|
|
9885
|
+
} | string)[] | ({
|
|
9886
|
+
pattern: string;
|
|
9887
|
+
flags?: string;
|
|
9888
|
+
} | string));
|
|
9889
|
+
elementNamePattern?: (({
|
|
9890
|
+
pattern: string;
|
|
9891
|
+
flags?: string;
|
|
9892
|
+
} | string)[] | ({
|
|
9893
|
+
pattern: string;
|
|
9894
|
+
flags?: string;
|
|
9895
|
+
} | string));
|
|
9896
|
+
}[];
|
|
9897
|
+
} | {
|
|
9898
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9899
|
+
fallbackSort?: {
|
|
9900
|
+
order?: ("asc" | "desc");
|
|
9901
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9902
|
+
};
|
|
9903
|
+
groupName: string;
|
|
9904
|
+
order?: ("asc" | "desc");
|
|
9905
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9906
|
+
elementValuePattern?: (({
|
|
9907
|
+
pattern: string;
|
|
9908
|
+
flags?: string;
|
|
9909
|
+
} | string)[] | ({
|
|
9910
|
+
pattern: string;
|
|
9911
|
+
flags?: string;
|
|
9912
|
+
} | string));
|
|
9913
|
+
elementNamePattern?: (({
|
|
9914
|
+
pattern: string;
|
|
9915
|
+
flags?: string;
|
|
9916
|
+
} | string)[] | ({
|
|
9917
|
+
pattern: string;
|
|
9918
|
+
flags?: string;
|
|
9919
|
+
} | string));
|
|
9920
|
+
})[]);
|
|
9921
|
+
forceNumericSort?: boolean;
|
|
9922
|
+
sortByValue?: boolean;
|
|
9923
|
+
partitionByComment?: (boolean | (({
|
|
9924
|
+
pattern: string;
|
|
9925
|
+
flags?: string;
|
|
9926
|
+
} | string)[] | ({
|
|
9927
|
+
pattern: string;
|
|
9928
|
+
flags?: string;
|
|
9929
|
+
} | string)) | {
|
|
9930
|
+
block?: (boolean | (({
|
|
9931
|
+
pattern: string;
|
|
9932
|
+
flags?: string;
|
|
9933
|
+
} | string)[] | ({
|
|
9934
|
+
pattern: string;
|
|
9935
|
+
flags?: string;
|
|
9936
|
+
} | string)));
|
|
9937
|
+
line?: (boolean | (({
|
|
9938
|
+
pattern: string;
|
|
9939
|
+
flags?: string;
|
|
9940
|
+
} | string)[] | ({
|
|
9941
|
+
pattern: string;
|
|
9942
|
+
flags?: string;
|
|
9943
|
+
} | string)));
|
|
9944
|
+
});
|
|
9945
|
+
partitionByNewLine?: boolean;
|
|
9946
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9947
|
+
groups?: (string | string[] | {
|
|
9948
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9949
|
+
commentAbove?: string;
|
|
9950
|
+
})[];
|
|
9951
|
+
}];
|
|
9952
|
+
// ----- perfectionist/sort-exports -----
|
|
9953
|
+
type PerfectionistSortExports = {
|
|
9954
|
+
fallbackSort?: {
|
|
9955
|
+
order?: ("asc" | "desc");
|
|
9956
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9957
|
+
};
|
|
9958
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9959
|
+
ignoreCase?: boolean;
|
|
9960
|
+
alphabet?: string;
|
|
9961
|
+
locales?: (string | string[]);
|
|
9962
|
+
order?: ("asc" | "desc");
|
|
9963
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9964
|
+
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
9965
|
+
customGroups?: ({
|
|
9966
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9967
|
+
fallbackSort?: {
|
|
9968
|
+
order?: ("asc" | "desc");
|
|
9969
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9970
|
+
};
|
|
9971
|
+
groupName: string;
|
|
9972
|
+
order?: ("asc" | "desc");
|
|
9973
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9974
|
+
anyOf?: {
|
|
9975
|
+
modifiers?: ("value" | "type")[];
|
|
9976
|
+
selector?: "export";
|
|
9977
|
+
elementNamePattern?: (({
|
|
9978
|
+
pattern: string;
|
|
9979
|
+
flags?: string;
|
|
9980
|
+
} | string)[] | ({
|
|
9981
|
+
pattern: string;
|
|
9982
|
+
flags?: string;
|
|
9983
|
+
} | string));
|
|
9984
|
+
}[];
|
|
9985
|
+
} | {
|
|
9986
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9987
|
+
fallbackSort?: {
|
|
9988
|
+
order?: ("asc" | "desc");
|
|
9989
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9990
|
+
};
|
|
9991
|
+
groupName: string;
|
|
9992
|
+
order?: ("asc" | "desc");
|
|
9993
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9994
|
+
modifiers?: ("value" | "type")[];
|
|
9995
|
+
selector?: "export";
|
|
9996
|
+
elementNamePattern?: (({
|
|
9997
|
+
pattern: string;
|
|
9998
|
+
flags?: string;
|
|
9999
|
+
} | string)[] | ({
|
|
10000
|
+
pattern: string;
|
|
10001
|
+
flags?: string;
|
|
10002
|
+
} | string));
|
|
10003
|
+
})[];
|
|
10004
|
+
partitionByComment?: (boolean | (({
|
|
10005
|
+
pattern: string;
|
|
10006
|
+
flags?: string;
|
|
10007
|
+
} | string)[] | ({
|
|
10008
|
+
pattern: string;
|
|
10009
|
+
flags?: string;
|
|
10010
|
+
} | string)) | {
|
|
10011
|
+
block?: (boolean | (({
|
|
10012
|
+
pattern: string;
|
|
10013
|
+
flags?: string;
|
|
10014
|
+
} | string)[] | ({
|
|
10015
|
+
pattern: string;
|
|
10016
|
+
flags?: string;
|
|
10017
|
+
} | string)));
|
|
10018
|
+
line?: (boolean | (({
|
|
10019
|
+
pattern: string;
|
|
10020
|
+
flags?: string;
|
|
10021
|
+
} | string)[] | ({
|
|
10022
|
+
pattern: string;
|
|
10023
|
+
flags?: string;
|
|
10024
|
+
} | string)));
|
|
10025
|
+
});
|
|
10026
|
+
partitionByNewLine?: boolean;
|
|
10027
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10028
|
+
groups?: (string | string[] | {
|
|
10029
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10030
|
+
commentAbove?: string;
|
|
10031
|
+
})[];
|
|
10032
|
+
}[];
|
|
10033
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
10034
|
+
type PerfectionistSortHeritageClauses = [] | [{
|
|
10035
|
+
fallbackSort?: {
|
|
10036
|
+
order?: ("asc" | "desc");
|
|
10037
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10038
|
+
};
|
|
10039
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10040
|
+
ignoreCase?: boolean;
|
|
10041
|
+
alphabet?: string;
|
|
10042
|
+
locales?: (string | string[]);
|
|
10043
|
+
order?: ("asc" | "desc");
|
|
10044
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10045
|
+
customGroups?: {
|
|
10046
|
+
[k: string]: (string | string[]) | undefined;
|
|
10047
|
+
};
|
|
10048
|
+
groups?: (string | string[] | {
|
|
10049
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10050
|
+
commentAbove?: string;
|
|
10051
|
+
})[];
|
|
10052
|
+
}];
|
|
10053
|
+
// ----- perfectionist/sort-imports -----
|
|
10054
|
+
type PerfectionistSortImports = {
|
|
10055
|
+
fallbackSort?: {
|
|
10056
|
+
order?: ("asc" | "desc");
|
|
10057
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10058
|
+
};
|
|
10059
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10060
|
+
ignoreCase?: boolean;
|
|
10061
|
+
alphabet?: string;
|
|
10062
|
+
locales?: (string | string[]);
|
|
10063
|
+
order?: ("asc" | "desc");
|
|
10064
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10065
|
+
customGroups?: ({
|
|
10066
|
+
value?: {
|
|
10067
|
+
[k: string]: (string | string[]) | undefined;
|
|
10068
|
+
};
|
|
10069
|
+
type?: {
|
|
10070
|
+
[k: string]: (string | string[]) | undefined;
|
|
10071
|
+
};
|
|
10072
|
+
} | ({
|
|
10073
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10074
|
+
fallbackSort?: {
|
|
10075
|
+
order?: ("asc" | "desc");
|
|
10076
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10077
|
+
};
|
|
10078
|
+
groupName: string;
|
|
10079
|
+
order?: ("asc" | "desc");
|
|
10080
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10081
|
+
anyOf?: {
|
|
10082
|
+
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10083
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10084
|
+
elementValuePattern?: (({
|
|
10085
|
+
pattern: string;
|
|
10086
|
+
flags?: string;
|
|
10087
|
+
} | string)[] | ({
|
|
10088
|
+
pattern: string;
|
|
10089
|
+
flags?: string;
|
|
10090
|
+
} | string));
|
|
10091
|
+
elementNamePattern?: (({
|
|
10092
|
+
pattern: string;
|
|
10093
|
+
flags?: string;
|
|
10094
|
+
} | string)[] | ({
|
|
10095
|
+
pattern: string;
|
|
10096
|
+
flags?: string;
|
|
10097
|
+
} | string));
|
|
10098
|
+
}[];
|
|
10099
|
+
} | {
|
|
10100
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10101
|
+
fallbackSort?: {
|
|
10102
|
+
order?: ("asc" | "desc");
|
|
10103
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10104
|
+
};
|
|
10105
|
+
groupName: string;
|
|
10106
|
+
order?: ("asc" | "desc");
|
|
10107
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10108
|
+
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10109
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10110
|
+
elementValuePattern?: (({
|
|
10111
|
+
pattern: string;
|
|
10112
|
+
flags?: string;
|
|
10113
|
+
} | string)[] | ({
|
|
10114
|
+
pattern: string;
|
|
10115
|
+
flags?: string;
|
|
10116
|
+
} | string));
|
|
10117
|
+
elementNamePattern?: (({
|
|
10118
|
+
pattern: string;
|
|
10119
|
+
flags?: string;
|
|
10120
|
+
} | string)[] | ({
|
|
10121
|
+
pattern: string;
|
|
10122
|
+
flags?: string;
|
|
10123
|
+
} | string));
|
|
10124
|
+
})[]);
|
|
10125
|
+
tsconfig?: {
|
|
10126
|
+
rootDir: string;
|
|
10127
|
+
filename?: string;
|
|
10128
|
+
};
|
|
10129
|
+
maxLineLength?: number;
|
|
10130
|
+
sortSideEffects?: boolean;
|
|
10131
|
+
environment?: ("node" | "bun");
|
|
10132
|
+
tsconfigRootDir?: string;
|
|
10133
|
+
partitionByComment?: (boolean | (({
|
|
10134
|
+
pattern: string;
|
|
10135
|
+
flags?: string;
|
|
10136
|
+
} | string)[] | ({
|
|
10137
|
+
pattern: string;
|
|
10138
|
+
flags?: string;
|
|
10139
|
+
} | string)) | {
|
|
10140
|
+
block?: (boolean | (({
|
|
10141
|
+
pattern: string;
|
|
10142
|
+
flags?: string;
|
|
10143
|
+
} | string)[] | ({
|
|
10144
|
+
pattern: string;
|
|
10145
|
+
flags?: string;
|
|
10146
|
+
} | string)));
|
|
10147
|
+
line?: (boolean | (({
|
|
10148
|
+
pattern: string;
|
|
10149
|
+
flags?: string;
|
|
10150
|
+
} | string)[] | ({
|
|
10151
|
+
pattern: string;
|
|
10152
|
+
flags?: string;
|
|
10153
|
+
} | string)));
|
|
10154
|
+
});
|
|
10155
|
+
partitionByNewLine?: boolean;
|
|
10156
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10157
|
+
internalPattern?: (({
|
|
10158
|
+
pattern: string;
|
|
10159
|
+
flags?: string;
|
|
10160
|
+
} | string)[] | ({
|
|
10161
|
+
pattern: string;
|
|
10162
|
+
flags?: string;
|
|
10163
|
+
} | string));
|
|
10164
|
+
groups?: (string | string[] | {
|
|
10165
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10166
|
+
commentAbove?: string;
|
|
10167
|
+
})[];
|
|
10168
|
+
}[];
|
|
10169
|
+
// ----- perfectionist/sort-interfaces -----
|
|
10170
|
+
type PerfectionistSortInterfaces = {
|
|
10171
|
+
fallbackSort?: {
|
|
10172
|
+
order?: ("asc" | "desc");
|
|
10173
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10174
|
+
sortBy?: ("name" | "value");
|
|
10175
|
+
};
|
|
10176
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10177
|
+
ignoreCase?: boolean;
|
|
10178
|
+
alphabet?: string;
|
|
10179
|
+
locales?: (string | string[]);
|
|
10180
|
+
order?: ("asc" | "desc");
|
|
10181
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10182
|
+
customGroups?: ({
|
|
10183
|
+
[k: string]: (string | string[]) | undefined;
|
|
10184
|
+
} | ({
|
|
10185
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10186
|
+
fallbackSort?: {
|
|
10187
|
+
order?: ("asc" | "desc");
|
|
10188
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10189
|
+
sortBy?: ("name" | "value");
|
|
10190
|
+
};
|
|
10191
|
+
groupName: string;
|
|
10192
|
+
order?: ("asc" | "desc");
|
|
10193
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10194
|
+
anyOf?: {
|
|
10195
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10196
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10197
|
+
elementValuePattern?: (({
|
|
10198
|
+
pattern: string;
|
|
10199
|
+
flags?: string;
|
|
10200
|
+
} | string)[] | ({
|
|
10201
|
+
pattern: string;
|
|
10202
|
+
flags?: string;
|
|
10203
|
+
} | string));
|
|
10204
|
+
elementNamePattern?: (({
|
|
10205
|
+
pattern: string;
|
|
10206
|
+
flags?: string;
|
|
10207
|
+
} | string)[] | ({
|
|
10208
|
+
pattern: string;
|
|
10209
|
+
flags?: string;
|
|
10210
|
+
} | string));
|
|
10211
|
+
sortBy?: ("name" | "value");
|
|
10212
|
+
}[];
|
|
10213
|
+
} | {
|
|
10214
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10215
|
+
fallbackSort?: {
|
|
10216
|
+
order?: ("asc" | "desc");
|
|
10217
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10218
|
+
sortBy?: ("name" | "value");
|
|
10219
|
+
};
|
|
10220
|
+
groupName: string;
|
|
10221
|
+
order?: ("asc" | "desc");
|
|
10222
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10223
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10224
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10225
|
+
elementValuePattern?: (({
|
|
10226
|
+
pattern: string;
|
|
10227
|
+
flags?: string;
|
|
10228
|
+
} | string)[] | ({
|
|
10229
|
+
pattern: string;
|
|
10230
|
+
flags?: string;
|
|
10231
|
+
} | string));
|
|
10232
|
+
elementNamePattern?: (({
|
|
10233
|
+
pattern: string;
|
|
10234
|
+
flags?: string;
|
|
10235
|
+
} | string)[] | ({
|
|
10236
|
+
pattern: string;
|
|
10237
|
+
flags?: string;
|
|
10238
|
+
} | string));
|
|
10239
|
+
sortBy?: ("name" | "value");
|
|
10240
|
+
})[]);
|
|
10241
|
+
groupKind?: ("mixed" | "required-first" | "optional-first");
|
|
10242
|
+
useConfigurationIf?: {
|
|
10243
|
+
allNamesMatchPattern?: (({
|
|
10244
|
+
pattern: string;
|
|
10245
|
+
flags?: string;
|
|
10246
|
+
} | string)[] | ({
|
|
10247
|
+
pattern: string;
|
|
10248
|
+
flags?: string;
|
|
10249
|
+
} | string));
|
|
10250
|
+
declarationMatchesPattern?: (({
|
|
10251
|
+
pattern: string;
|
|
10252
|
+
flags?: string;
|
|
10253
|
+
} | string)[] | ({
|
|
10254
|
+
pattern: string;
|
|
10255
|
+
flags?: string;
|
|
10256
|
+
} | string));
|
|
10257
|
+
};
|
|
10258
|
+
partitionByComment?: (boolean | (({
|
|
10259
|
+
pattern: string;
|
|
10260
|
+
flags?: string;
|
|
10261
|
+
} | string)[] | ({
|
|
10262
|
+
pattern: string;
|
|
10263
|
+
flags?: string;
|
|
10264
|
+
} | string)) | {
|
|
10265
|
+
block?: (boolean | (({
|
|
10266
|
+
pattern: string;
|
|
10267
|
+
flags?: string;
|
|
10268
|
+
} | string)[] | ({
|
|
10269
|
+
pattern: string;
|
|
10270
|
+
flags?: string;
|
|
10271
|
+
} | string)));
|
|
10272
|
+
line?: (boolean | (({
|
|
10273
|
+
pattern: string;
|
|
10274
|
+
flags?: string;
|
|
10275
|
+
} | string)[] | ({
|
|
10276
|
+
pattern: string;
|
|
10277
|
+
flags?: string;
|
|
10278
|
+
} | string)));
|
|
10279
|
+
});
|
|
10280
|
+
partitionByNewLine?: boolean;
|
|
10281
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10282
|
+
ignorePattern?: (({
|
|
10283
|
+
pattern: string;
|
|
10284
|
+
flags?: string;
|
|
10285
|
+
} | string)[] | ({
|
|
10286
|
+
pattern: string;
|
|
10287
|
+
flags?: string;
|
|
10288
|
+
} | string));
|
|
10289
|
+
sortBy?: ("name" | "value");
|
|
10290
|
+
groups?: (string | string[] | {
|
|
10291
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10292
|
+
commentAbove?: string;
|
|
10293
|
+
})[];
|
|
10294
|
+
}[];
|
|
10295
|
+
// ----- perfectionist/sort-intersection-types -----
|
|
10296
|
+
type PerfectionistSortIntersectionTypes = {
|
|
10297
|
+
fallbackSort?: {
|
|
10298
|
+
order?: ("asc" | "desc");
|
|
10299
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10300
|
+
};
|
|
10301
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10302
|
+
ignoreCase?: boolean;
|
|
10303
|
+
alphabet?: string;
|
|
10304
|
+
locales?: (string | string[]);
|
|
10305
|
+
order?: ("asc" | "desc");
|
|
10306
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10307
|
+
customGroups?: ({
|
|
10308
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10309
|
+
fallbackSort?: {
|
|
10310
|
+
order?: ("asc" | "desc");
|
|
10311
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10312
|
+
};
|
|
10313
|
+
groupName: string;
|
|
10314
|
+
order?: ("asc" | "desc");
|
|
10315
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10316
|
+
anyOf?: {
|
|
10317
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10318
|
+
elementNamePattern?: (({
|
|
10319
|
+
pattern: string;
|
|
10320
|
+
flags?: string;
|
|
10321
|
+
} | string)[] | ({
|
|
10322
|
+
pattern: string;
|
|
10323
|
+
flags?: string;
|
|
10324
|
+
} | string));
|
|
10325
|
+
}[];
|
|
10326
|
+
} | {
|
|
10327
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10328
|
+
fallbackSort?: {
|
|
10329
|
+
order?: ("asc" | "desc");
|
|
10330
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10331
|
+
};
|
|
10332
|
+
groupName: string;
|
|
10333
|
+
order?: ("asc" | "desc");
|
|
10334
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10335
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10336
|
+
elementNamePattern?: (({
|
|
10337
|
+
pattern: string;
|
|
10338
|
+
flags?: string;
|
|
10339
|
+
} | string)[] | ({
|
|
10340
|
+
pattern: string;
|
|
10341
|
+
flags?: string;
|
|
10342
|
+
} | string));
|
|
10343
|
+
})[];
|
|
10344
|
+
partitionByComment?: (boolean | (({
|
|
10345
|
+
pattern: string;
|
|
10346
|
+
flags?: string;
|
|
10347
|
+
} | string)[] | ({
|
|
10348
|
+
pattern: string;
|
|
10349
|
+
flags?: string;
|
|
10350
|
+
} | string)) | {
|
|
10351
|
+
block?: (boolean | (({
|
|
10352
|
+
pattern: string;
|
|
10353
|
+
flags?: string;
|
|
10354
|
+
} | string)[] | ({
|
|
10355
|
+
pattern: string;
|
|
10356
|
+
flags?: string;
|
|
10357
|
+
} | string)));
|
|
10358
|
+
line?: (boolean | (({
|
|
10359
|
+
pattern: string;
|
|
10360
|
+
flags?: string;
|
|
10361
|
+
} | string)[] | ({
|
|
10362
|
+
pattern: string;
|
|
10363
|
+
flags?: string;
|
|
10364
|
+
} | string)));
|
|
10365
|
+
});
|
|
10366
|
+
partitionByNewLine?: boolean;
|
|
10367
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10368
|
+
groups?: (string | string[] | {
|
|
10369
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10370
|
+
commentAbove?: string;
|
|
10371
|
+
})[];
|
|
10372
|
+
}[];
|
|
10373
|
+
// ----- perfectionist/sort-jsx-props -----
|
|
10374
|
+
type PerfectionistSortJsxProps = {
|
|
10375
|
+
fallbackSort?: {
|
|
10376
|
+
order?: ("asc" | "desc");
|
|
10377
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10378
|
+
};
|
|
10379
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10380
|
+
ignoreCase?: boolean;
|
|
10381
|
+
alphabet?: string;
|
|
10382
|
+
locales?: (string | string[]);
|
|
10383
|
+
order?: ("asc" | "desc");
|
|
10384
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10385
|
+
customGroups?: ({
|
|
10386
|
+
[k: string]: (string | string[]) | undefined;
|
|
10387
|
+
} | ({
|
|
10388
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10389
|
+
fallbackSort?: {
|
|
10390
|
+
order?: ("asc" | "desc");
|
|
10391
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10392
|
+
};
|
|
10393
|
+
groupName: string;
|
|
10394
|
+
order?: ("asc" | "desc");
|
|
10395
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10396
|
+
anyOf?: {
|
|
10397
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
10398
|
+
selector?: ("multiline" | "prop" | "shorthand");
|
|
10399
|
+
elementValuePattern?: (({
|
|
10400
|
+
pattern: string;
|
|
10401
|
+
flags?: string;
|
|
10402
|
+
} | string)[] | ({
|
|
10403
|
+
pattern: string;
|
|
10404
|
+
flags?: string;
|
|
10405
|
+
} | string));
|
|
10406
|
+
elementNamePattern?: (({
|
|
10407
|
+
pattern: string;
|
|
10408
|
+
flags?: string;
|
|
10409
|
+
} | string)[] | ({
|
|
10410
|
+
pattern: string;
|
|
10411
|
+
flags?: string;
|
|
10412
|
+
} | string));
|
|
10413
|
+
}[];
|
|
10414
|
+
} | {
|
|
10415
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10416
|
+
fallbackSort?: {
|
|
10417
|
+
order?: ("asc" | "desc");
|
|
10418
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10419
|
+
};
|
|
10420
|
+
groupName: string;
|
|
10421
|
+
order?: ("asc" | "desc");
|
|
10422
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10423
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
10424
|
+
selector?: ("multiline" | "prop" | "shorthand");
|
|
10425
|
+
elementValuePattern?: (({
|
|
10426
|
+
pattern: string;
|
|
10427
|
+
flags?: string;
|
|
10428
|
+
} | string)[] | ({
|
|
10429
|
+
pattern: string;
|
|
10430
|
+
flags?: string;
|
|
10431
|
+
} | string));
|
|
10432
|
+
elementNamePattern?: (({
|
|
10433
|
+
pattern: string;
|
|
10434
|
+
flags?: string;
|
|
10435
|
+
} | string)[] | ({
|
|
10436
|
+
pattern: string;
|
|
10437
|
+
flags?: string;
|
|
10438
|
+
} | string));
|
|
10439
|
+
})[]);
|
|
10440
|
+
useConfigurationIf?: {
|
|
10441
|
+
allNamesMatchPattern?: (({
|
|
10442
|
+
pattern: string;
|
|
10443
|
+
flags?: string;
|
|
10444
|
+
} | string)[] | ({
|
|
10445
|
+
pattern: string;
|
|
10446
|
+
flags?: string;
|
|
10447
|
+
} | string));
|
|
10448
|
+
tagMatchesPattern?: (({
|
|
10449
|
+
pattern: string;
|
|
10450
|
+
flags?: string;
|
|
10451
|
+
} | string)[] | ({
|
|
10452
|
+
pattern: string;
|
|
10453
|
+
flags?: string;
|
|
10454
|
+
} | string));
|
|
10455
|
+
};
|
|
10456
|
+
partitionByNewLine?: boolean;
|
|
10457
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10458
|
+
ignorePattern?: (({
|
|
10459
|
+
pattern: string;
|
|
10460
|
+
flags?: string;
|
|
10461
|
+
} | string)[] | ({
|
|
10462
|
+
pattern: string;
|
|
10463
|
+
flags?: string;
|
|
10464
|
+
} | string));
|
|
10465
|
+
groups?: (string | string[] | {
|
|
10466
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10467
|
+
commentAbove?: string;
|
|
10468
|
+
})[];
|
|
10469
|
+
}[];
|
|
10470
|
+
// ----- perfectionist/sort-maps -----
|
|
10471
|
+
type PerfectionistSortMaps = {
|
|
10472
|
+
fallbackSort?: {
|
|
10473
|
+
order?: ("asc" | "desc");
|
|
10474
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10475
|
+
};
|
|
10476
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10477
|
+
ignoreCase?: boolean;
|
|
10478
|
+
alphabet?: string;
|
|
10479
|
+
locales?: (string | string[]);
|
|
10480
|
+
order?: ("asc" | "desc");
|
|
10481
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10482
|
+
customGroups?: ({
|
|
10483
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10484
|
+
fallbackSort?: {
|
|
10485
|
+
order?: ("asc" | "desc");
|
|
10486
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10487
|
+
};
|
|
10488
|
+
groupName: string;
|
|
10489
|
+
order?: ("asc" | "desc");
|
|
10490
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10491
|
+
anyOf?: {
|
|
10492
|
+
elementNamePattern?: (({
|
|
10493
|
+
pattern: string;
|
|
10494
|
+
flags?: string;
|
|
10495
|
+
} | string)[] | ({
|
|
10496
|
+
pattern: string;
|
|
10497
|
+
flags?: string;
|
|
10498
|
+
} | string));
|
|
10499
|
+
}[];
|
|
10500
|
+
} | {
|
|
10501
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10502
|
+
fallbackSort?: {
|
|
10503
|
+
order?: ("asc" | "desc");
|
|
10504
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10505
|
+
};
|
|
10506
|
+
groupName: string;
|
|
10507
|
+
order?: ("asc" | "desc");
|
|
10508
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10509
|
+
elementNamePattern?: (({
|
|
10510
|
+
pattern: string;
|
|
10511
|
+
flags?: string;
|
|
10512
|
+
} | string)[] | ({
|
|
10513
|
+
pattern: string;
|
|
10514
|
+
flags?: string;
|
|
10515
|
+
} | string));
|
|
10516
|
+
})[];
|
|
10517
|
+
useConfigurationIf?: {
|
|
10518
|
+
allNamesMatchPattern?: (({
|
|
10519
|
+
pattern: string;
|
|
10520
|
+
flags?: string;
|
|
10521
|
+
} | string)[] | ({
|
|
10522
|
+
pattern: string;
|
|
10523
|
+
flags?: string;
|
|
10524
|
+
} | string));
|
|
10525
|
+
};
|
|
10526
|
+
partitionByComment?: (boolean | (({
|
|
10527
|
+
pattern: string;
|
|
10528
|
+
flags?: string;
|
|
10529
|
+
} | string)[] | ({
|
|
10530
|
+
pattern: string;
|
|
10531
|
+
flags?: string;
|
|
10532
|
+
} | string)) | {
|
|
10533
|
+
block?: (boolean | (({
|
|
10534
|
+
pattern: string;
|
|
10535
|
+
flags?: string;
|
|
10536
|
+
} | string)[] | ({
|
|
10537
|
+
pattern: string;
|
|
10538
|
+
flags?: string;
|
|
10539
|
+
} | string)));
|
|
10540
|
+
line?: (boolean | (({
|
|
10541
|
+
pattern: string;
|
|
10542
|
+
flags?: string;
|
|
10543
|
+
} | string)[] | ({
|
|
10544
|
+
pattern: string;
|
|
10545
|
+
flags?: string;
|
|
10546
|
+
} | string)));
|
|
10547
|
+
});
|
|
10548
|
+
partitionByNewLine?: boolean;
|
|
10549
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10550
|
+
groups?: (string | string[] | {
|
|
10551
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10552
|
+
commentAbove?: string;
|
|
10553
|
+
})[];
|
|
10554
|
+
}[];
|
|
10555
|
+
// ----- perfectionist/sort-modules -----
|
|
10556
|
+
type PerfectionistSortModules = [] | [{
|
|
10557
|
+
fallbackSort?: {
|
|
10558
|
+
order?: ("asc" | "desc");
|
|
10559
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10560
|
+
};
|
|
10561
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10562
|
+
ignoreCase?: boolean;
|
|
10563
|
+
alphabet?: string;
|
|
10564
|
+
locales?: (string | string[]);
|
|
10565
|
+
order?: ("asc" | "desc");
|
|
10566
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10567
|
+
customGroups?: ({
|
|
10568
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10569
|
+
fallbackSort?: {
|
|
10570
|
+
order?: ("asc" | "desc");
|
|
10571
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10572
|
+
};
|
|
10573
|
+
groupName: string;
|
|
10574
|
+
order?: ("asc" | "desc");
|
|
10575
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10576
|
+
anyOf?: {
|
|
10577
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10578
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10579
|
+
decoratorNamePattern?: (({
|
|
10580
|
+
pattern: string;
|
|
10581
|
+
flags?: string;
|
|
10582
|
+
} | string)[] | ({
|
|
10583
|
+
pattern: string;
|
|
10584
|
+
flags?: string;
|
|
10585
|
+
} | string));
|
|
10586
|
+
elementNamePattern?: (({
|
|
10587
|
+
pattern: string;
|
|
10588
|
+
flags?: string;
|
|
10589
|
+
} | string)[] | ({
|
|
10590
|
+
pattern: string;
|
|
10591
|
+
flags?: string;
|
|
10592
|
+
} | string));
|
|
10593
|
+
}[];
|
|
10594
|
+
} | {
|
|
10595
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10596
|
+
fallbackSort?: {
|
|
10597
|
+
order?: ("asc" | "desc");
|
|
10598
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10599
|
+
};
|
|
10600
|
+
groupName: string;
|
|
10601
|
+
order?: ("asc" | "desc");
|
|
10602
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10603
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10604
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10605
|
+
decoratorNamePattern?: (({
|
|
10606
|
+
pattern: string;
|
|
10607
|
+
flags?: string;
|
|
10608
|
+
} | string)[] | ({
|
|
10609
|
+
pattern: string;
|
|
10610
|
+
flags?: string;
|
|
10611
|
+
} | string));
|
|
10612
|
+
elementNamePattern?: (({
|
|
10613
|
+
pattern: string;
|
|
10614
|
+
flags?: string;
|
|
10615
|
+
} | string)[] | ({
|
|
10616
|
+
pattern: string;
|
|
10617
|
+
flags?: string;
|
|
10618
|
+
} | string));
|
|
10619
|
+
})[];
|
|
10620
|
+
partitionByComment?: (boolean | (({
|
|
10621
|
+
pattern: string;
|
|
10622
|
+
flags?: string;
|
|
10623
|
+
} | string)[] | ({
|
|
10624
|
+
pattern: string;
|
|
10625
|
+
flags?: string;
|
|
10626
|
+
} | string)) | {
|
|
10627
|
+
block?: (boolean | (({
|
|
10628
|
+
pattern: string;
|
|
10629
|
+
flags?: string;
|
|
10630
|
+
} | string)[] | ({
|
|
10631
|
+
pattern: string;
|
|
10632
|
+
flags?: string;
|
|
10633
|
+
} | string)));
|
|
10634
|
+
line?: (boolean | (({
|
|
10635
|
+
pattern: string;
|
|
10636
|
+
flags?: string;
|
|
10637
|
+
} | string)[] | ({
|
|
10638
|
+
pattern: string;
|
|
10639
|
+
flags?: string;
|
|
10640
|
+
} | string)));
|
|
10641
|
+
});
|
|
10642
|
+
partitionByNewLine?: boolean;
|
|
10643
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10644
|
+
groups?: (string | string[] | {
|
|
10645
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10646
|
+
commentAbove?: string;
|
|
10647
|
+
})[];
|
|
10648
|
+
}];
|
|
10649
|
+
// ----- perfectionist/sort-named-exports -----
|
|
10650
|
+
type PerfectionistSortNamedExports = {
|
|
10651
|
+
fallbackSort?: {
|
|
10652
|
+
order?: ("asc" | "desc");
|
|
10653
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10654
|
+
};
|
|
10655
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10656
|
+
ignoreCase?: boolean;
|
|
10657
|
+
alphabet?: string;
|
|
10658
|
+
locales?: (string | string[]);
|
|
10659
|
+
order?: ("asc" | "desc");
|
|
10660
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10661
|
+
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10662
|
+
ignoreAlias?: boolean;
|
|
10663
|
+
customGroups?: ({
|
|
10664
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10665
|
+
fallbackSort?: {
|
|
10666
|
+
order?: ("asc" | "desc");
|
|
10667
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10668
|
+
};
|
|
10669
|
+
groupName: string;
|
|
10670
|
+
order?: ("asc" | "desc");
|
|
10671
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10672
|
+
anyOf?: {
|
|
10673
|
+
modifiers?: ("value" | "type")[];
|
|
10674
|
+
selector?: "export";
|
|
10675
|
+
elementNamePattern?: (({
|
|
10676
|
+
pattern: string;
|
|
10677
|
+
flags?: string;
|
|
10678
|
+
} | string)[] | ({
|
|
10679
|
+
pattern: string;
|
|
10680
|
+
flags?: string;
|
|
10681
|
+
} | string));
|
|
10682
|
+
}[];
|
|
10683
|
+
} | {
|
|
10684
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10685
|
+
fallbackSort?: {
|
|
10686
|
+
order?: ("asc" | "desc");
|
|
10687
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10688
|
+
};
|
|
10689
|
+
groupName: string;
|
|
10690
|
+
order?: ("asc" | "desc");
|
|
10691
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10692
|
+
modifiers?: ("value" | "type")[];
|
|
10693
|
+
selector?: "export";
|
|
10694
|
+
elementNamePattern?: (({
|
|
10695
|
+
pattern: string;
|
|
10696
|
+
flags?: string;
|
|
10697
|
+
} | string)[] | ({
|
|
10698
|
+
pattern: string;
|
|
10699
|
+
flags?: string;
|
|
10700
|
+
} | string));
|
|
10701
|
+
})[];
|
|
10702
|
+
partitionByComment?: (boolean | (({
|
|
10703
|
+
pattern: string;
|
|
10704
|
+
flags?: string;
|
|
10705
|
+
} | string)[] | ({
|
|
10706
|
+
pattern: string;
|
|
10707
|
+
flags?: string;
|
|
10708
|
+
} | string)) | {
|
|
10709
|
+
block?: (boolean | (({
|
|
10710
|
+
pattern: string;
|
|
10711
|
+
flags?: string;
|
|
10712
|
+
} | string)[] | ({
|
|
10713
|
+
pattern: string;
|
|
10714
|
+
flags?: string;
|
|
10715
|
+
} | string)));
|
|
10716
|
+
line?: (boolean | (({
|
|
10717
|
+
pattern: string;
|
|
10718
|
+
flags?: string;
|
|
10719
|
+
} | string)[] | ({
|
|
10720
|
+
pattern: string;
|
|
10721
|
+
flags?: string;
|
|
10722
|
+
} | string)));
|
|
10723
|
+
});
|
|
10724
|
+
partitionByNewLine?: boolean;
|
|
10725
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10726
|
+
groups?: (string | string[] | {
|
|
10727
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10728
|
+
commentAbove?: string;
|
|
10729
|
+
})[];
|
|
10730
|
+
}[];
|
|
10731
|
+
// ----- perfectionist/sort-named-imports -----
|
|
10732
|
+
type PerfectionistSortNamedImports = {
|
|
10733
|
+
fallbackSort?: {
|
|
10734
|
+
order?: ("asc" | "desc");
|
|
10735
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10736
|
+
};
|
|
10737
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10738
|
+
ignoreCase?: boolean;
|
|
10739
|
+
alphabet?: string;
|
|
10740
|
+
locales?: (string | string[]);
|
|
10741
|
+
order?: ("asc" | "desc");
|
|
10742
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10743
|
+
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10744
|
+
ignoreAlias?: boolean;
|
|
10745
|
+
customGroups?: ({
|
|
10746
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10747
|
+
fallbackSort?: {
|
|
10748
|
+
order?: ("asc" | "desc");
|
|
10749
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10750
|
+
};
|
|
10751
|
+
groupName: string;
|
|
10752
|
+
order?: ("asc" | "desc");
|
|
10753
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10754
|
+
anyOf?: {
|
|
10755
|
+
modifiers?: ("value" | "type")[];
|
|
10756
|
+
selector?: "import";
|
|
10757
|
+
elementNamePattern?: (({
|
|
10758
|
+
pattern: string;
|
|
10759
|
+
flags?: string;
|
|
10760
|
+
} | string)[] | ({
|
|
10761
|
+
pattern: string;
|
|
10762
|
+
flags?: string;
|
|
10763
|
+
} | string));
|
|
10764
|
+
}[];
|
|
10765
|
+
} | {
|
|
10766
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10767
|
+
fallbackSort?: {
|
|
10768
|
+
order?: ("asc" | "desc");
|
|
10769
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10770
|
+
};
|
|
10771
|
+
groupName: string;
|
|
10772
|
+
order?: ("asc" | "desc");
|
|
10773
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10774
|
+
modifiers?: ("value" | "type")[];
|
|
10775
|
+
selector?: "import";
|
|
10776
|
+
elementNamePattern?: (({
|
|
10777
|
+
pattern: string;
|
|
10778
|
+
flags?: string;
|
|
10779
|
+
} | string)[] | ({
|
|
10780
|
+
pattern: string;
|
|
10781
|
+
flags?: string;
|
|
10782
|
+
} | string));
|
|
10783
|
+
})[];
|
|
10784
|
+
partitionByComment?: (boolean | (({
|
|
10785
|
+
pattern: string;
|
|
10786
|
+
flags?: string;
|
|
10787
|
+
} | string)[] | ({
|
|
10788
|
+
pattern: string;
|
|
10789
|
+
flags?: string;
|
|
10790
|
+
} | string)) | {
|
|
10791
|
+
block?: (boolean | (({
|
|
10792
|
+
pattern: string;
|
|
10793
|
+
flags?: string;
|
|
10794
|
+
} | string)[] | ({
|
|
10795
|
+
pattern: string;
|
|
10796
|
+
flags?: string;
|
|
10797
|
+
} | string)));
|
|
10798
|
+
line?: (boolean | (({
|
|
10799
|
+
pattern: string;
|
|
10800
|
+
flags?: string;
|
|
10801
|
+
} | string)[] | ({
|
|
10802
|
+
pattern: string;
|
|
10803
|
+
flags?: string;
|
|
10804
|
+
} | string)));
|
|
10805
|
+
});
|
|
10806
|
+
partitionByNewLine?: boolean;
|
|
10807
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10808
|
+
groups?: (string | string[] | {
|
|
10809
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10810
|
+
commentAbove?: string;
|
|
10811
|
+
})[];
|
|
10812
|
+
}[];
|
|
10813
|
+
// ----- perfectionist/sort-object-types -----
|
|
10814
|
+
type PerfectionistSortObjectTypes = {
|
|
10815
|
+
fallbackSort?: {
|
|
10816
|
+
order?: ("asc" | "desc");
|
|
10817
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10818
|
+
sortBy?: ("name" | "value");
|
|
10819
|
+
};
|
|
10820
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10821
|
+
ignoreCase?: boolean;
|
|
10822
|
+
alphabet?: string;
|
|
10823
|
+
locales?: (string | string[]);
|
|
10824
|
+
order?: ("asc" | "desc");
|
|
10825
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10826
|
+
customGroups?: ({
|
|
10827
|
+
[k: string]: (string | string[]) | undefined;
|
|
10828
|
+
} | ({
|
|
10829
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10830
|
+
fallbackSort?: {
|
|
10831
|
+
order?: ("asc" | "desc");
|
|
10832
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10833
|
+
sortBy?: ("name" | "value");
|
|
10834
|
+
};
|
|
10835
|
+
groupName: string;
|
|
10836
|
+
order?: ("asc" | "desc");
|
|
10837
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10838
|
+
anyOf?: {
|
|
10839
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10840
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10841
|
+
elementValuePattern?: (({
|
|
10842
|
+
pattern: string;
|
|
10843
|
+
flags?: string;
|
|
10844
|
+
} | string)[] | ({
|
|
10845
|
+
pattern: string;
|
|
10846
|
+
flags?: string;
|
|
10847
|
+
} | string));
|
|
10848
|
+
elementNamePattern?: (({
|
|
10849
|
+
pattern: string;
|
|
10850
|
+
flags?: string;
|
|
10851
|
+
} | string)[] | ({
|
|
10852
|
+
pattern: string;
|
|
10853
|
+
flags?: string;
|
|
10854
|
+
} | string));
|
|
10855
|
+
sortBy?: ("name" | "value");
|
|
10856
|
+
}[];
|
|
10857
|
+
} | {
|
|
10858
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10859
|
+
fallbackSort?: {
|
|
10860
|
+
order?: ("asc" | "desc");
|
|
10861
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10862
|
+
sortBy?: ("name" | "value");
|
|
10863
|
+
};
|
|
10864
|
+
groupName: string;
|
|
10865
|
+
order?: ("asc" | "desc");
|
|
10866
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10867
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10868
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10869
|
+
elementValuePattern?: (({
|
|
10870
|
+
pattern: string;
|
|
10871
|
+
flags?: string;
|
|
10872
|
+
} | string)[] | ({
|
|
10873
|
+
pattern: string;
|
|
10874
|
+
flags?: string;
|
|
10875
|
+
} | string));
|
|
10876
|
+
elementNamePattern?: (({
|
|
10877
|
+
pattern: string;
|
|
10878
|
+
flags?: string;
|
|
10879
|
+
} | string)[] | ({
|
|
10880
|
+
pattern: string;
|
|
10881
|
+
flags?: string;
|
|
10882
|
+
} | string));
|
|
10883
|
+
sortBy?: ("name" | "value");
|
|
10884
|
+
})[]);
|
|
10885
|
+
groupKind?: ("mixed" | "required-first" | "optional-first");
|
|
10886
|
+
useConfigurationIf?: {
|
|
10887
|
+
allNamesMatchPattern?: (({
|
|
10888
|
+
pattern: string;
|
|
10889
|
+
flags?: string;
|
|
10890
|
+
} | string)[] | ({
|
|
10891
|
+
pattern: string;
|
|
10892
|
+
flags?: string;
|
|
10893
|
+
} | string));
|
|
10894
|
+
declarationMatchesPattern?: (({
|
|
10895
|
+
pattern: string;
|
|
10896
|
+
flags?: string;
|
|
10897
|
+
} | string)[] | ({
|
|
10898
|
+
pattern: string;
|
|
10899
|
+
flags?: string;
|
|
10900
|
+
} | string));
|
|
10901
|
+
};
|
|
10902
|
+
partitionByComment?: (boolean | (({
|
|
10903
|
+
pattern: string;
|
|
10904
|
+
flags?: string;
|
|
10905
|
+
} | string)[] | ({
|
|
10906
|
+
pattern: string;
|
|
10907
|
+
flags?: string;
|
|
10908
|
+
} | string)) | {
|
|
10909
|
+
block?: (boolean | (({
|
|
10910
|
+
pattern: string;
|
|
10911
|
+
flags?: string;
|
|
10912
|
+
} | string)[] | ({
|
|
10913
|
+
pattern: string;
|
|
10914
|
+
flags?: string;
|
|
10915
|
+
} | string)));
|
|
10916
|
+
line?: (boolean | (({
|
|
10917
|
+
pattern: string;
|
|
10918
|
+
flags?: string;
|
|
10919
|
+
} | string)[] | ({
|
|
10920
|
+
pattern: string;
|
|
10921
|
+
flags?: string;
|
|
10922
|
+
} | string)));
|
|
10923
|
+
});
|
|
10924
|
+
partitionByNewLine?: boolean;
|
|
10925
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10926
|
+
ignorePattern?: (({
|
|
10927
|
+
pattern: string;
|
|
10928
|
+
flags?: string;
|
|
10929
|
+
} | string)[] | ({
|
|
10930
|
+
pattern: string;
|
|
10931
|
+
flags?: string;
|
|
10932
|
+
} | string));
|
|
10933
|
+
sortBy?: ("name" | "value");
|
|
10934
|
+
groups?: (string | string[] | {
|
|
10935
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10936
|
+
commentAbove?: string;
|
|
10937
|
+
})[];
|
|
10938
|
+
}[];
|
|
10939
|
+
// ----- perfectionist/sort-objects -----
|
|
10940
|
+
type PerfectionistSortObjects = {
|
|
10941
|
+
fallbackSort?: {
|
|
10942
|
+
order?: ("asc" | "desc");
|
|
10943
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10944
|
+
};
|
|
10945
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10946
|
+
ignoreCase?: boolean;
|
|
10947
|
+
alphabet?: string;
|
|
10948
|
+
locales?: (string | string[]);
|
|
10949
|
+
order?: ("asc" | "desc");
|
|
10950
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10951
|
+
destructuredObjects?: (boolean | {
|
|
10952
|
+
groups?: boolean;
|
|
10953
|
+
});
|
|
10954
|
+
customGroups?: ({
|
|
10955
|
+
[k: string]: (string | string[]) | undefined;
|
|
10956
|
+
} | ({
|
|
10957
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10958
|
+
fallbackSort?: {
|
|
10959
|
+
order?: ("asc" | "desc");
|
|
10960
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10961
|
+
};
|
|
10962
|
+
groupName: string;
|
|
10963
|
+
order?: ("asc" | "desc");
|
|
10964
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10965
|
+
anyOf?: {
|
|
10966
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10967
|
+
selector?: ("member" | "method" | "multiline" | "property");
|
|
10968
|
+
elementValuePattern?: (({
|
|
10969
|
+
pattern: string;
|
|
10970
|
+
flags?: string;
|
|
10971
|
+
} | string)[] | ({
|
|
10972
|
+
pattern: string;
|
|
10973
|
+
flags?: string;
|
|
10974
|
+
} | string));
|
|
10975
|
+
elementNamePattern?: (({
|
|
10976
|
+
pattern: string;
|
|
10977
|
+
flags?: string;
|
|
10978
|
+
} | string)[] | ({
|
|
10979
|
+
pattern: string;
|
|
10980
|
+
flags?: string;
|
|
10981
|
+
} | string));
|
|
10982
|
+
}[];
|
|
10983
|
+
} | {
|
|
10984
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10985
|
+
fallbackSort?: {
|
|
10986
|
+
order?: ("asc" | "desc");
|
|
10987
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10988
|
+
};
|
|
10989
|
+
groupName: string;
|
|
10990
|
+
order?: ("asc" | "desc");
|
|
10991
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10992
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10993
|
+
selector?: ("member" | "method" | "multiline" | "property");
|
|
10994
|
+
elementValuePattern?: (({
|
|
10995
|
+
pattern: string;
|
|
10996
|
+
flags?: string;
|
|
10997
|
+
} | string)[] | ({
|
|
10998
|
+
pattern: string;
|
|
10999
|
+
flags?: string;
|
|
11000
|
+
} | string));
|
|
11001
|
+
elementNamePattern?: (({
|
|
11002
|
+
pattern: string;
|
|
11003
|
+
flags?: string;
|
|
11004
|
+
} | string)[] | ({
|
|
11005
|
+
pattern: string;
|
|
11006
|
+
flags?: string;
|
|
11007
|
+
} | string));
|
|
11008
|
+
})[]);
|
|
11009
|
+
useConfigurationIf?: {
|
|
11010
|
+
allNamesMatchPattern?: (({
|
|
11011
|
+
pattern: string;
|
|
11012
|
+
flags?: string;
|
|
11013
|
+
} | string)[] | ({
|
|
11014
|
+
pattern: string;
|
|
11015
|
+
flags?: string;
|
|
11016
|
+
} | string));
|
|
11017
|
+
callingFunctionNamePattern?: (({
|
|
11018
|
+
pattern: string;
|
|
11019
|
+
flags?: string;
|
|
11020
|
+
} | string)[] | ({
|
|
11021
|
+
pattern: string;
|
|
11022
|
+
flags?: string;
|
|
11023
|
+
} | string));
|
|
11024
|
+
};
|
|
11025
|
+
destructureOnly?: boolean;
|
|
11026
|
+
objectDeclarations?: boolean;
|
|
11027
|
+
styledComponents?: boolean;
|
|
11028
|
+
partitionByComment?: (boolean | (({
|
|
11029
|
+
pattern: string;
|
|
11030
|
+
flags?: string;
|
|
11031
|
+
} | string)[] | ({
|
|
11032
|
+
pattern: string;
|
|
11033
|
+
flags?: string;
|
|
11034
|
+
} | string)) | {
|
|
11035
|
+
block?: (boolean | (({
|
|
11036
|
+
pattern: string;
|
|
11037
|
+
flags?: string;
|
|
11038
|
+
} | string)[] | ({
|
|
11039
|
+
pattern: string;
|
|
11040
|
+
flags?: string;
|
|
11041
|
+
} | string)));
|
|
11042
|
+
line?: (boolean | (({
|
|
11043
|
+
pattern: string;
|
|
11044
|
+
flags?: string;
|
|
11045
|
+
} | string)[] | ({
|
|
11046
|
+
pattern: string;
|
|
11047
|
+
flags?: string;
|
|
11048
|
+
} | string)));
|
|
11049
|
+
});
|
|
11050
|
+
partitionByNewLine?: boolean;
|
|
11051
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11052
|
+
ignorePattern?: (({
|
|
11053
|
+
pattern: string;
|
|
11054
|
+
flags?: string;
|
|
11055
|
+
} | string)[] | ({
|
|
11056
|
+
pattern: string;
|
|
11057
|
+
flags?: string;
|
|
11058
|
+
} | string));
|
|
11059
|
+
groups?: (string | string[] | {
|
|
11060
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11061
|
+
commentAbove?: string;
|
|
11062
|
+
})[];
|
|
11063
|
+
}[];
|
|
11064
|
+
// ----- perfectionist/sort-sets -----
|
|
11065
|
+
type PerfectionistSortSets = {
|
|
11066
|
+
fallbackSort?: {
|
|
11067
|
+
order?: ("asc" | "desc");
|
|
11068
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11069
|
+
};
|
|
11070
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11071
|
+
ignoreCase?: boolean;
|
|
11072
|
+
alphabet?: string;
|
|
11073
|
+
locales?: (string | string[]);
|
|
11074
|
+
order?: ("asc" | "desc");
|
|
11075
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11076
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
11077
|
+
customGroups?: ({
|
|
11078
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11079
|
+
fallbackSort?: {
|
|
11080
|
+
order?: ("asc" | "desc");
|
|
11081
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11082
|
+
};
|
|
11083
|
+
groupName: string;
|
|
11084
|
+
order?: ("asc" | "desc");
|
|
11085
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11086
|
+
anyOf?: {
|
|
11087
|
+
selector?: ("literal" | "spread");
|
|
11088
|
+
elementNamePattern?: (({
|
|
11089
|
+
pattern: string;
|
|
11090
|
+
flags?: string;
|
|
11091
|
+
} | string)[] | ({
|
|
11092
|
+
pattern: string;
|
|
11093
|
+
flags?: string;
|
|
11094
|
+
} | string));
|
|
11095
|
+
}[];
|
|
11096
|
+
} | {
|
|
11097
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11098
|
+
fallbackSort?: {
|
|
11099
|
+
order?: ("asc" | "desc");
|
|
11100
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11101
|
+
};
|
|
11102
|
+
groupName: string;
|
|
11103
|
+
order?: ("asc" | "desc");
|
|
11104
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11105
|
+
selector?: ("literal" | "spread");
|
|
11106
|
+
elementNamePattern?: (({
|
|
11107
|
+
pattern: string;
|
|
11108
|
+
flags?: string;
|
|
11109
|
+
} | string)[] | ({
|
|
11110
|
+
pattern: string;
|
|
11111
|
+
flags?: string;
|
|
11112
|
+
} | string));
|
|
11113
|
+
})[];
|
|
11114
|
+
useConfigurationIf?: {
|
|
11115
|
+
allNamesMatchPattern?: (({
|
|
11116
|
+
pattern: string;
|
|
11117
|
+
flags?: string;
|
|
11118
|
+
} | string)[] | ({
|
|
11119
|
+
pattern: string;
|
|
11120
|
+
flags?: string;
|
|
11121
|
+
} | string));
|
|
11122
|
+
};
|
|
11123
|
+
partitionByComment?: (boolean | (({
|
|
11124
|
+
pattern: string;
|
|
11125
|
+
flags?: string;
|
|
11126
|
+
} | string)[] | ({
|
|
11127
|
+
pattern: string;
|
|
11128
|
+
flags?: string;
|
|
11129
|
+
} | string)) | {
|
|
11130
|
+
block?: (boolean | (({
|
|
11131
|
+
pattern: string;
|
|
11132
|
+
flags?: string;
|
|
11133
|
+
} | string)[] | ({
|
|
11134
|
+
pattern: string;
|
|
11135
|
+
flags?: string;
|
|
11136
|
+
} | string)));
|
|
11137
|
+
line?: (boolean | (({
|
|
11138
|
+
pattern: string;
|
|
11139
|
+
flags?: string;
|
|
11140
|
+
} | string)[] | ({
|
|
11141
|
+
pattern: string;
|
|
11142
|
+
flags?: string;
|
|
11143
|
+
} | string)));
|
|
11144
|
+
});
|
|
11145
|
+
partitionByNewLine?: boolean;
|
|
11146
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11147
|
+
groups?: (string | string[] | {
|
|
11148
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11149
|
+
commentAbove?: string;
|
|
11150
|
+
})[];
|
|
11151
|
+
}[];
|
|
11152
|
+
// ----- perfectionist/sort-switch-case -----
|
|
11153
|
+
type PerfectionistSortSwitchCase = [] | [{
|
|
11154
|
+
fallbackSort?: {
|
|
11155
|
+
order?: ("asc" | "desc");
|
|
11156
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11157
|
+
};
|
|
11158
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11159
|
+
ignoreCase?: boolean;
|
|
11160
|
+
alphabet?: string;
|
|
11161
|
+
locales?: (string | string[]);
|
|
11162
|
+
order?: ("asc" | "desc");
|
|
11163
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11164
|
+
}];
|
|
11165
|
+
// ----- perfectionist/sort-union-types -----
|
|
11166
|
+
type PerfectionistSortUnionTypes = {
|
|
11167
|
+
fallbackSort?: {
|
|
11168
|
+
order?: ("asc" | "desc");
|
|
11169
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11170
|
+
};
|
|
11171
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11172
|
+
ignoreCase?: boolean;
|
|
11173
|
+
alphabet?: string;
|
|
11174
|
+
locales?: (string | string[]);
|
|
11175
|
+
order?: ("asc" | "desc");
|
|
11176
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11177
|
+
customGroups?: ({
|
|
11178
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11179
|
+
fallbackSort?: {
|
|
11180
|
+
order?: ("asc" | "desc");
|
|
11181
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11182
|
+
};
|
|
11183
|
+
groupName: string;
|
|
11184
|
+
order?: ("asc" | "desc");
|
|
11185
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11186
|
+
anyOf?: {
|
|
11187
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11188
|
+
elementNamePattern?: (({
|
|
11189
|
+
pattern: string;
|
|
11190
|
+
flags?: string;
|
|
11191
|
+
} | string)[] | ({
|
|
11192
|
+
pattern: string;
|
|
11193
|
+
flags?: string;
|
|
11194
|
+
} | string));
|
|
11195
|
+
}[];
|
|
11196
|
+
} | {
|
|
11197
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11198
|
+
fallbackSort?: {
|
|
11199
|
+
order?: ("asc" | "desc");
|
|
11200
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11201
|
+
};
|
|
11202
|
+
groupName: string;
|
|
11203
|
+
order?: ("asc" | "desc");
|
|
11204
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11205
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11206
|
+
elementNamePattern?: (({
|
|
11207
|
+
pattern: string;
|
|
11208
|
+
flags?: string;
|
|
11209
|
+
} | string)[] | ({
|
|
11210
|
+
pattern: string;
|
|
11211
|
+
flags?: string;
|
|
11212
|
+
} | string));
|
|
11213
|
+
})[];
|
|
11214
|
+
partitionByComment?: (boolean | (({
|
|
11215
|
+
pattern: string;
|
|
11216
|
+
flags?: string;
|
|
11217
|
+
} | string)[] | ({
|
|
11218
|
+
pattern: string;
|
|
11219
|
+
flags?: string;
|
|
11220
|
+
} | string)) | {
|
|
11221
|
+
block?: (boolean | (({
|
|
11222
|
+
pattern: string;
|
|
11223
|
+
flags?: string;
|
|
11224
|
+
} | string)[] | ({
|
|
11225
|
+
pattern: string;
|
|
11226
|
+
flags?: string;
|
|
11227
|
+
} | string)));
|
|
11228
|
+
line?: (boolean | (({
|
|
11229
|
+
pattern: string;
|
|
11230
|
+
flags?: string;
|
|
11231
|
+
} | string)[] | ({
|
|
11232
|
+
pattern: string;
|
|
11233
|
+
flags?: string;
|
|
11234
|
+
} | string)));
|
|
11235
|
+
});
|
|
11236
|
+
partitionByNewLine?: boolean;
|
|
11237
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11238
|
+
groups?: (string | string[] | {
|
|
11239
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11240
|
+
commentAbove?: string;
|
|
11241
|
+
})[];
|
|
11242
|
+
}[];
|
|
11243
|
+
// ----- perfectionist/sort-variable-declarations -----
|
|
11244
|
+
type PerfectionistSortVariableDeclarations = [] | [{
|
|
11245
|
+
fallbackSort?: {
|
|
11246
|
+
order?: ("asc" | "desc");
|
|
11247
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11248
|
+
};
|
|
11249
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11250
|
+
ignoreCase?: boolean;
|
|
11251
|
+
alphabet?: string;
|
|
11252
|
+
locales?: (string | string[]);
|
|
11253
|
+
order?: ("asc" | "desc");
|
|
11254
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11255
|
+
customGroups?: ({
|
|
11256
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11257
|
+
fallbackSort?: {
|
|
11258
|
+
order?: ("asc" | "desc");
|
|
11259
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11260
|
+
};
|
|
11261
|
+
groupName: string;
|
|
11262
|
+
order?: ("asc" | "desc");
|
|
11263
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11264
|
+
anyOf?: {
|
|
11265
|
+
selector?: ("initialized" | "uninitialized");
|
|
11266
|
+
elementNamePattern?: (({
|
|
11267
|
+
pattern: string;
|
|
11268
|
+
flags?: string;
|
|
11269
|
+
} | string)[] | ({
|
|
11270
|
+
pattern: string;
|
|
11271
|
+
flags?: string;
|
|
11272
|
+
} | string));
|
|
11273
|
+
}[];
|
|
11274
|
+
} | {
|
|
11275
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11276
|
+
fallbackSort?: {
|
|
11277
|
+
order?: ("asc" | "desc");
|
|
11278
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11279
|
+
};
|
|
11280
|
+
groupName: string;
|
|
11281
|
+
order?: ("asc" | "desc");
|
|
11282
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11283
|
+
selector?: ("initialized" | "uninitialized");
|
|
11284
|
+
elementNamePattern?: (({
|
|
11285
|
+
pattern: string;
|
|
11286
|
+
flags?: string;
|
|
11287
|
+
} | string)[] | ({
|
|
11288
|
+
pattern: string;
|
|
11289
|
+
flags?: string;
|
|
11290
|
+
} | string));
|
|
11291
|
+
})[];
|
|
11292
|
+
partitionByComment?: (boolean | (({
|
|
11293
|
+
pattern: string;
|
|
11294
|
+
flags?: string;
|
|
11295
|
+
} | string)[] | ({
|
|
11296
|
+
pattern: string;
|
|
11297
|
+
flags?: string;
|
|
11298
|
+
} | string)) | {
|
|
11299
|
+
block?: (boolean | (({
|
|
11300
|
+
pattern: string;
|
|
11301
|
+
flags?: string;
|
|
11302
|
+
} | string)[] | ({
|
|
11303
|
+
pattern: string;
|
|
11304
|
+
flags?: string;
|
|
11305
|
+
} | string)));
|
|
11306
|
+
line?: (boolean | (({
|
|
11307
|
+
pattern: string;
|
|
11308
|
+
flags?: string;
|
|
11309
|
+
} | string)[] | ({
|
|
11310
|
+
pattern: string;
|
|
11311
|
+
flags?: string;
|
|
11312
|
+
} | string)));
|
|
11313
|
+
});
|
|
11314
|
+
partitionByNewLine?: boolean;
|
|
11315
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11316
|
+
groups?: (string | string[] | {
|
|
11317
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11318
|
+
commentAbove?: string;
|
|
11319
|
+
})[];
|
|
11320
|
+
}];
|
|
11321
|
+
// ----- pnpm/json-enforce-catalog -----
|
|
11322
|
+
type PnpmJsonEnforceCatalog = [] | [{
|
|
11323
|
+
allowedProtocols?: string[];
|
|
11324
|
+
autofix?: boolean;
|
|
11325
|
+
defaultCatalog?: string;
|
|
11326
|
+
reuseExistingCatalog?: boolean;
|
|
11327
|
+
conflicts?: ("new-catalog" | "overrides" | "error");
|
|
11328
|
+
fields?: string[];
|
|
11329
|
+
ignores?: string[];
|
|
11330
|
+
}];
|
|
11331
|
+
// ----- pnpm/json-prefer-workspace-settings -----
|
|
11332
|
+
type PnpmJsonPreferWorkspaceSettings = [] | [{
|
|
11333
|
+
autofix?: boolean;
|
|
11334
|
+
}];
|
|
11335
|
+
// ----- pnpm/json-valid-catalog -----
|
|
11336
|
+
type PnpmJsonValidCatalog = [] | [{
|
|
11337
|
+
autoInsert?: boolean;
|
|
11338
|
+
autoInsertDefaultSpecifier?: string;
|
|
11339
|
+
autofix?: boolean;
|
|
11340
|
+
enforceNoConflict?: boolean;
|
|
11341
|
+
fields?: unknown[];
|
|
11342
|
+
}];
|
|
11343
|
+
// ----- pnpm/yaml-no-duplicate-catalog-item -----
|
|
11344
|
+
type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
11345
|
+
allow?: string[];
|
|
11346
|
+
checkDuplicates?: ("name-only" | "exact-version");
|
|
11347
|
+
}];
|
|
9153
11348
|
// ----- prefer-arrow-callback -----
|
|
9154
11349
|
type PreferArrowCallback = [] | [{
|
|
9155
11350
|
allowNamedFunctions?: boolean;
|
|
@@ -9697,6 +11892,50 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
9697
11892
|
type StyleDotLocation = [] | [("object" | "property")];
|
|
9698
11893
|
// ----- style/eol-last -----
|
|
9699
11894
|
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")];
|
|
11895
|
+
// ----- style/exp-list-style -----
|
|
11896
|
+
type StyleExpListStyle = [] | [{
|
|
11897
|
+
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
11898
|
+
multiLine?: _StyleExpListStyle_MultiLineConfig;
|
|
11899
|
+
overrides?: {
|
|
11900
|
+
"[]"?: _StyleExpListStyle_BaseConfig;
|
|
11901
|
+
"{}"?: _StyleExpListStyle_BaseConfig;
|
|
11902
|
+
"<>"?: _StyleExpListStyle_BaseConfig;
|
|
11903
|
+
"()"?: _StyleExpListStyle_BaseConfig;
|
|
11904
|
+
ArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
11905
|
+
ArrayPattern?: _StyleExpListStyle_BaseConfig;
|
|
11906
|
+
ArrowFunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
11907
|
+
CallExpression?: _StyleExpListStyle_BaseConfig;
|
|
11908
|
+
ExportNamedDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
11909
|
+
FunctionDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
11910
|
+
FunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
11911
|
+
ImportDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
11912
|
+
ImportAttributes?: _StyleExpListStyle_BaseConfig;
|
|
11913
|
+
NewExpression?: _StyleExpListStyle_BaseConfig;
|
|
11914
|
+
ObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
11915
|
+
ObjectPattern?: _StyleExpListStyle_BaseConfig;
|
|
11916
|
+
TSDeclareFunction?: _StyleExpListStyle_BaseConfig;
|
|
11917
|
+
TSFunctionType?: _StyleExpListStyle_BaseConfig;
|
|
11918
|
+
TSInterfaceBody?: _StyleExpListStyle_BaseConfig;
|
|
11919
|
+
TSEnumBody?: _StyleExpListStyle_BaseConfig;
|
|
11920
|
+
TSTupleType?: _StyleExpListStyle_BaseConfig;
|
|
11921
|
+
TSTypeLiteral?: _StyleExpListStyle_BaseConfig;
|
|
11922
|
+
TSTypeParameterDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
11923
|
+
TSTypeParameterInstantiation?: _StyleExpListStyle_BaseConfig;
|
|
11924
|
+
JSONArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
11925
|
+
JSONObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
11926
|
+
};
|
|
11927
|
+
}];
|
|
11928
|
+
interface _StyleExpListStyle_SingleLineConfig {
|
|
11929
|
+
spacing?: ("always" | "never");
|
|
11930
|
+
maxItems?: number;
|
|
11931
|
+
}
|
|
11932
|
+
interface _StyleExpListStyle_MultiLineConfig {
|
|
11933
|
+
minItems?: number;
|
|
11934
|
+
}
|
|
11935
|
+
interface _StyleExpListStyle_BaseConfig {
|
|
11936
|
+
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
11937
|
+
multiline?: _StyleExpListStyle_MultiLineConfig;
|
|
11938
|
+
}
|
|
9700
11939
|
// ----- style/function-call-argument-newline -----
|
|
9701
11940
|
type StyleFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
|
|
9702
11941
|
// ----- style/function-call-spacing -----
|
|
@@ -9766,7 +12005,11 @@ type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
9766
12005
|
ObjectExpression?: (number | ("first" | "off"));
|
|
9767
12006
|
ImportDeclaration?: (number | ("first" | "off"));
|
|
9768
12007
|
flatTernaryExpressions?: boolean;
|
|
9769
|
-
offsetTernaryExpressions?: boolean
|
|
12008
|
+
offsetTernaryExpressions?: (boolean | {
|
|
12009
|
+
CallExpression?: boolean;
|
|
12010
|
+
AwaitExpression?: boolean;
|
|
12011
|
+
NewExpression?: boolean;
|
|
12012
|
+
});
|
|
9770
12013
|
offsetTernaryExpressionsOffsetCallExpressions?: boolean;
|
|
9771
12014
|
ignoredNodes?: string[];
|
|
9772
12015
|
ignoreComments?: boolean;
|
|
@@ -10567,6 +12810,7 @@ type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never
|
|
|
10567
12810
|
TSInterfaceBody?: ("always" | "never");
|
|
10568
12811
|
TSEnumBody?: ("always" | "never");
|
|
10569
12812
|
};
|
|
12813
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
10570
12814
|
}];
|
|
10571
12815
|
// ----- style/object-property-newline -----
|
|
10572
12816
|
type StyleObjectPropertyNewline = [] | [{
|
|
@@ -12011,6 +14255,10 @@ type UnicornTemplateIndent = [] | [{
|
|
|
12011
14255
|
selectors?: string[];
|
|
12012
14256
|
comments?: string[];
|
|
12013
14257
|
}];
|
|
14258
|
+
// ----- unicorn/text-encoding-identifier-case -----
|
|
14259
|
+
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
14260
|
+
withDash?: boolean;
|
|
14261
|
+
}];
|
|
12014
14262
|
// ----- unused-imports/no-unused-imports -----
|
|
12015
14263
|
type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
|
|
12016
14264
|
args?: ("all" | "after-used" | "none");
|
|
@@ -12081,7 +14329,7 @@ type VitestNoFocusedTests = [] | [{
|
|
|
12081
14329
|
}];
|
|
12082
14330
|
// ----- vitest/no-hooks -----
|
|
12083
14331
|
type VitestNoHooks = [] | [{
|
|
12084
|
-
allow?:
|
|
14332
|
+
allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
|
|
12085
14333
|
}];
|
|
12086
14334
|
// ----- vitest/no-large-snapshots -----
|
|
12087
14335
|
type VitestNoLargeSnapshots = [] | [{
|
|
@@ -13555,7 +15803,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
13555
15803
|
onlyEquality?: boolean;
|
|
13556
15804
|
}];
|
|
13557
15805
|
// Names of all the configs
|
|
13558
|
-
type ConfigNames = 'so1ve/comments/setup' | 'so1ve/comments/rules' | 'so1ve/formatting/setup' | 'so1ve/formatting/rules' | 'so1ve/formatting/rules/sort-package-json' | 'so1ve/formatting/rules/sort-tsconfig' | 'so1ve/formatting/rules/test' | 'so1ve/html/setup' | 'so1ve/html/rules' | 'so1ve/imports/setup' | 'so1ve/imports/rules' | 'so1ve/imports/rules/dts' | 'so1ve/javascript/setup' | 'so1ve/javascript/rules' | 'so1ve/javascript/regexp' | 'so1ve/javascript/cli' | 'so1ve/jsonc/setup' | 'so1ve/jsonc/rules' | 'so1ve/mdx/setup' | 'so1ve/mdx/rules' | 'so1ve/node/setup' | 'so1ve/node/rules' | 'so1ve/only-error' | 'so1ve/promise/setup' | 'so1ve/promise/rules' | 'so1ve/solid/setup' | 'so1ve/solid/rules' | 'so1ve/sort-imports/setup' | 'so1ve/sort-imports/rules' | 'so1ve/test/setup' | 'so1ve/test/rules' | 'so1ve/toml/setup' | 'so1ve/toml/rules' | 'so1ve/typescript/setup' | 'so1ve/typescript/rules' | 'so1ve/typescript/rules/type-aware' | 'so1ve/typescript/rules/dts' | 'so1ve/typescript/rules/js' | 'so1ve/unicorn/setup' | 'so1ve/unicorn/rules' | 'so1ve/vue/setup' | 'so1ve/vue/rules' | 'so1ve/yaml/setup' | 'so1ve/yaml/rules';
|
|
15806
|
+
type ConfigNames = 'antfu/astro/setup' | 'antfu/astro/rules' | 'so1ve/comments/setup' | 'so1ve/comments/rules' | 'so1ve/formatting/setup' | 'so1ve/formatting/rules' | 'so1ve/formatting/rules/sort-package-json' | 'so1ve/formatting/rules/sort-tsconfig' | 'so1ve/formatting/rules/test' | 'so1ve/html/setup' | 'so1ve/html/rules' | 'so1ve/ignores' | 'so1ve/imports/setup' | 'so1ve/imports/rules' | 'so1ve/imports/rules/dts' | 'so1ve/javascript/setup' | 'so1ve/javascript/rules' | 'so1ve/javascript/regexp' | 'so1ve/javascript/cli' | 'so1ve/jsonc/setup' | 'so1ve/jsonc/rules' | 'so1ve/mdx/setup' | 'so1ve/mdx/rules' | 'so1ve/node/setup' | 'so1ve/node/rules' | 'so1ve/only-error' | 'so1ve/perfectionist/setup' | 'so1ve/perfectionist/rules' | 'so1ve/pnpm/package-json' | 'so1ve/pnpm/pnpm-workspace-yaml' | 'so1ve/promise/setup' | 'so1ve/promise/rules' | 'so1ve/solid/setup' | 'so1ve/solid/rules' | 'so1ve/sort-imports/setup' | 'so1ve/sort-imports/rules' | 'so1ve/test/setup' | 'so1ve/test/rules' | 'so1ve/toml/setup' | 'so1ve/toml/rules' | 'so1ve/typescript/setup' | 'so1ve/typescript/rules' | 'so1ve/typescript/rules/type-aware' | 'so1ve/typescript/rules/dts' | 'so1ve/typescript/rules/js' | 'so1ve/unicorn/setup' | 'so1ve/unicorn/rules' | 'so1ve/vue/setup' | 'so1ve/vue/rules' | 'so1ve/yaml/setup' | 'so1ve/yaml/rules';
|
|
13559
15807
|
//#endregion
|
|
13560
15808
|
//#region src/types.d.ts
|
|
13561
15809
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -13674,7 +15922,13 @@ interface Options extends OptionsComponentExts {
|
|
|
13674
15922
|
*
|
|
13675
15923
|
* @default true
|
|
13676
15924
|
*/
|
|
13677
|
-
formatting?: boolean
|
|
15925
|
+
formatting?: boolean;
|
|
15926
|
+
/**
|
|
15927
|
+
* Enable perfectionist rules.
|
|
15928
|
+
*
|
|
15929
|
+
* @default true
|
|
15930
|
+
*/
|
|
15931
|
+
perfectionist?: boolean;
|
|
13678
15932
|
/**
|
|
13679
15933
|
* Provide overrides for rules for each integration.
|
|
13680
15934
|
*
|
|
@@ -13733,6 +15987,9 @@ declare const node: () => TypedFlatConfigItem[];
|
|
|
13733
15987
|
//#region src/configs/only-error.d.ts
|
|
13734
15988
|
declare const onlyError: () => TypedFlatConfigItem[];
|
|
13735
15989
|
//#endregion
|
|
15990
|
+
//#region src/configs/perfectionist.d.ts
|
|
15991
|
+
declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
|
|
15992
|
+
//#endregion
|
|
13736
15993
|
//#region src/configs/pnpm.d.ts
|
|
13737
15994
|
declare function pnpm(): Promise<TypedFlatConfigItem[]>;
|
|
13738
15995
|
//#endregion
|
|
@@ -13781,9 +16038,9 @@ declare function yaml({
|
|
|
13781
16038
|
//#endregion
|
|
13782
16039
|
//#region src/factory.d.ts
|
|
13783
16040
|
declare const defaultPluginRenaming: {
|
|
16041
|
+
"@html-eslint": string;
|
|
13784
16042
|
"@stylistic": string;
|
|
13785
16043
|
"@typescript-eslint": string;
|
|
13786
|
-
"@html-eslint": string;
|
|
13787
16044
|
"import-x": string;
|
|
13788
16045
|
n: string;
|
|
13789
16046
|
yml: string;
|
|
@@ -13854,4 +16111,4 @@ declare function interopDefault<T>(m: MaybePromise<T>): Promise<T extends {
|
|
|
13854
16111
|
default: infer U;
|
|
13855
16112
|
} ? U : T>;
|
|
13856
16113
|
//#endregion
|
|
13857
|
-
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DTS, GLOB_ESLINTRC, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_PACKAGEJSON, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_VUE, GLOB_YAML, MaybeArray, MaybePromise, Options, OptionsComponentExts, OptionsHasTypeScript, OptionsOverrides, OptionsTypeScriptParserOptions, ResolvedOptions, Rules, TypedFlatConfigItem, astro, comments, defaultPluginRenaming, formatting, getOverrides, html, ignores, imports, interopDefault, javascript, jsonc, mdx, node, onlyError, pnpm, promise, renameRules, resolveSubOptions, so1ve, solid, sortImports, test, toml, typescript$1 as typescript, unicorn, vue, yaml };
|
|
16114
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DTS, GLOB_ESLINTRC, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_PACKAGEJSON, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_VUE, GLOB_YAML, MaybeArray, MaybePromise, Options, OptionsComponentExts, OptionsHasTypeScript, OptionsOverrides, OptionsTypeScriptParserOptions, ResolvedOptions, Rules, TypedFlatConfigItem, astro, comments, defaultPluginRenaming, formatting, getOverrides, html, ignores, imports, interopDefault, javascript, jsonc, mdx, node, onlyError, perfectionist, pnpm, promise, renameRules, resolveSubOptions, so1ve, solid, sortImports, test, toml, typescript$1 as typescript, unicorn, vue, yaml };
|