@so1ve/eslint-config 3.11.4 → 3.12.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 → index-CPXgTZqf.d.ts} +2164 -4
- package/dist/index.js +35 -3
- package/package.json +4 -3
|
@@ -74,6 +74,271 @@ 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 selectors defined in `style` tag that don't use in HTML
|
|
304
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
|
|
305
|
+
*/
|
|
306
|
+
'astro/no-unused-css-selector'?: Linter.RuleEntry<[]>;
|
|
307
|
+
/**
|
|
308
|
+
* disallow unused `define:vars={...}` in `style` tag
|
|
309
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-define-vars-in-style/
|
|
310
|
+
*/
|
|
311
|
+
'astro/no-unused-define-vars-in-style'?: Linter.RuleEntry<[]>;
|
|
312
|
+
/**
|
|
313
|
+
* require `class:list` directives instead of `class` with expressions
|
|
314
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-class-list-directive/
|
|
315
|
+
*/
|
|
316
|
+
'astro/prefer-class-list-directive'?: Linter.RuleEntry<[]>;
|
|
317
|
+
/**
|
|
318
|
+
* require use object instead of ternary expression in `class:list`
|
|
319
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-object-class-list/
|
|
320
|
+
*/
|
|
321
|
+
'astro/prefer-object-class-list'?: Linter.RuleEntry<[]>;
|
|
322
|
+
/**
|
|
323
|
+
* require use split array elements in `class:list`
|
|
324
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-split-class-list/
|
|
325
|
+
*/
|
|
326
|
+
'astro/prefer-split-class-list'?: Linter.RuleEntry<AstroPreferSplitClassList>;
|
|
327
|
+
/**
|
|
328
|
+
* Require or disallow semicolons instead of ASI
|
|
329
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/semi/
|
|
330
|
+
*/
|
|
331
|
+
'astro/semi'?: Linter.RuleEntry<AstroSemi>;
|
|
332
|
+
/**
|
|
333
|
+
* enforce sorting of attributes
|
|
334
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/sort-attributes/
|
|
335
|
+
*/
|
|
336
|
+
'astro/sort-attributes'?: Linter.RuleEntry<AstroSortAttributes>;
|
|
337
|
+
/**
|
|
338
|
+
* disallow warnings when compiling.
|
|
339
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/
|
|
340
|
+
*/
|
|
341
|
+
'astro/valid-compile'?: Linter.RuleEntry<[]>;
|
|
77
342
|
/**
|
|
78
343
|
* Enforce the use of variables within the scope they are defined
|
|
79
344
|
* @see https://eslint.org/docs/latest/rules/block-scoped-var
|
|
@@ -2326,6 +2591,136 @@ interface RuleOptions {
|
|
|
2326
2591
|
* @deprecated
|
|
2327
2592
|
*/
|
|
2328
2593
|
'padding-line-between-statements'?: Linter.RuleEntry<PaddingLineBetweenStatements>;
|
|
2594
|
+
/**
|
|
2595
|
+
* Enforce sorted arrays before include method.
|
|
2596
|
+
* @see https://perfectionist.dev/rules/sort-array-includes
|
|
2597
|
+
*/
|
|
2598
|
+
'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
|
|
2599
|
+
/**
|
|
2600
|
+
* Enforce sorted classes.
|
|
2601
|
+
* @see https://perfectionist.dev/rules/sort-classes
|
|
2602
|
+
*/
|
|
2603
|
+
'perfectionist/sort-classes'?: Linter.RuleEntry<PerfectionistSortClasses>;
|
|
2604
|
+
/**
|
|
2605
|
+
* Enforce sorted decorators.
|
|
2606
|
+
* @see https://perfectionist.dev/rules/sort-decorators
|
|
2607
|
+
*/
|
|
2608
|
+
'perfectionist/sort-decorators'?: Linter.RuleEntry<PerfectionistSortDecorators>;
|
|
2609
|
+
/**
|
|
2610
|
+
* Enforce sorted TypeScript enums.
|
|
2611
|
+
* @see https://perfectionist.dev/rules/sort-enums
|
|
2612
|
+
*/
|
|
2613
|
+
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
2614
|
+
/**
|
|
2615
|
+
* Enforce sorted exports.
|
|
2616
|
+
* @see https://perfectionist.dev/rules/sort-exports
|
|
2617
|
+
*/
|
|
2618
|
+
'perfectionist/sort-exports'?: Linter.RuleEntry<PerfectionistSortExports>;
|
|
2619
|
+
/**
|
|
2620
|
+
* Enforce sorted heritage clauses.
|
|
2621
|
+
* @see https://perfectionist.dev/rules/sort-heritage-clauses
|
|
2622
|
+
*/
|
|
2623
|
+
'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
|
|
2624
|
+
/**
|
|
2625
|
+
* Enforce sorted imports.
|
|
2626
|
+
* @see https://perfectionist.dev/rules/sort-imports
|
|
2627
|
+
*/
|
|
2628
|
+
'perfectionist/sort-imports'?: Linter.RuleEntry<PerfectionistSortImports>;
|
|
2629
|
+
/**
|
|
2630
|
+
* Enforce sorted interface properties.
|
|
2631
|
+
* @see https://perfectionist.dev/rules/sort-interfaces
|
|
2632
|
+
*/
|
|
2633
|
+
'perfectionist/sort-interfaces'?: Linter.RuleEntry<PerfectionistSortInterfaces>;
|
|
2634
|
+
/**
|
|
2635
|
+
* Enforce sorted intersection types.
|
|
2636
|
+
* @see https://perfectionist.dev/rules/sort-intersection-types
|
|
2637
|
+
*/
|
|
2638
|
+
'perfectionist/sort-intersection-types'?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>;
|
|
2639
|
+
/**
|
|
2640
|
+
* Enforce sorted JSX props.
|
|
2641
|
+
* @see https://perfectionist.dev/rules/sort-jsx-props
|
|
2642
|
+
*/
|
|
2643
|
+
'perfectionist/sort-jsx-props'?: Linter.RuleEntry<PerfectionistSortJsxProps>;
|
|
2644
|
+
/**
|
|
2645
|
+
* Enforce sorted Map elements.
|
|
2646
|
+
* @see https://perfectionist.dev/rules/sort-maps
|
|
2647
|
+
*/
|
|
2648
|
+
'perfectionist/sort-maps'?: Linter.RuleEntry<PerfectionistSortMaps>;
|
|
2649
|
+
/**
|
|
2650
|
+
* Enforce sorted modules.
|
|
2651
|
+
* @see https://perfectionist.dev/rules/sort-modules
|
|
2652
|
+
*/
|
|
2653
|
+
'perfectionist/sort-modules'?: Linter.RuleEntry<PerfectionistSortModules>;
|
|
2654
|
+
/**
|
|
2655
|
+
* Enforce sorted named exports.
|
|
2656
|
+
* @see https://perfectionist.dev/rules/sort-named-exports
|
|
2657
|
+
*/
|
|
2658
|
+
'perfectionist/sort-named-exports'?: Linter.RuleEntry<PerfectionistSortNamedExports>;
|
|
2659
|
+
/**
|
|
2660
|
+
* Enforce sorted named imports.
|
|
2661
|
+
* @see https://perfectionist.dev/rules/sort-named-imports
|
|
2662
|
+
*/
|
|
2663
|
+
'perfectionist/sort-named-imports'?: Linter.RuleEntry<PerfectionistSortNamedImports>;
|
|
2664
|
+
/**
|
|
2665
|
+
* Enforce sorted object types.
|
|
2666
|
+
* @see https://perfectionist.dev/rules/sort-object-types
|
|
2667
|
+
*/
|
|
2668
|
+
'perfectionist/sort-object-types'?: Linter.RuleEntry<PerfectionistSortObjectTypes>;
|
|
2669
|
+
/**
|
|
2670
|
+
* Enforce sorted objects.
|
|
2671
|
+
* @see https://perfectionist.dev/rules/sort-objects
|
|
2672
|
+
*/
|
|
2673
|
+
'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>;
|
|
2674
|
+
/**
|
|
2675
|
+
* Enforce sorted sets.
|
|
2676
|
+
* @see https://perfectionist.dev/rules/sort-sets
|
|
2677
|
+
*/
|
|
2678
|
+
'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>;
|
|
2679
|
+
/**
|
|
2680
|
+
* Enforce sorted switch cases.
|
|
2681
|
+
* @see https://perfectionist.dev/rules/sort-switch-case
|
|
2682
|
+
*/
|
|
2683
|
+
'perfectionist/sort-switch-case'?: Linter.RuleEntry<PerfectionistSortSwitchCase>;
|
|
2684
|
+
/**
|
|
2685
|
+
* Enforce sorted union types.
|
|
2686
|
+
* @see https://perfectionist.dev/rules/sort-union-types
|
|
2687
|
+
*/
|
|
2688
|
+
'perfectionist/sort-union-types'?: Linter.RuleEntry<PerfectionistSortUnionTypes>;
|
|
2689
|
+
/**
|
|
2690
|
+
* Enforce sorted variable declarations.
|
|
2691
|
+
* @see https://perfectionist.dev/rules/sort-variable-declarations
|
|
2692
|
+
*/
|
|
2693
|
+
'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>;
|
|
2694
|
+
/**
|
|
2695
|
+
* Enforce using "catalog:" in `package.json`
|
|
2696
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-enforce-catalog.test.ts
|
|
2697
|
+
*/
|
|
2698
|
+
'pnpm/json-enforce-catalog'?: Linter.RuleEntry<PnpmJsonEnforceCatalog>;
|
|
2699
|
+
/**
|
|
2700
|
+
* 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.
|
|
2701
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-prefer-workspace-settings.test.ts
|
|
2702
|
+
*/
|
|
2703
|
+
'pnpm/json-prefer-workspace-settings'?: Linter.RuleEntry<PnpmJsonPreferWorkspaceSettings>;
|
|
2704
|
+
/**
|
|
2705
|
+
* Enforce using valid catalog in `package.json`
|
|
2706
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
|
|
2707
|
+
*/
|
|
2708
|
+
'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
|
|
2709
|
+
/**
|
|
2710
|
+
* Disallow duplicate catalog items in `pnpm-workspace.yaml`
|
|
2711
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
2712
|
+
*/
|
|
2713
|
+
'pnpm/yaml-no-duplicate-catalog-item'?: Linter.RuleEntry<PnpmYamlNoDuplicateCatalogItem>;
|
|
2714
|
+
/**
|
|
2715
|
+
* Disallow unused catalogs in `pnpm-workspace.yaml`
|
|
2716
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-unused-catalog-item.test.ts
|
|
2717
|
+
*/
|
|
2718
|
+
'pnpm/yaml-no-unused-catalog-item'?: Linter.RuleEntry<[]>;
|
|
2719
|
+
/**
|
|
2720
|
+
* Ensure all package patterns in `pnpm-workspace.yaml` match at least one directory
|
|
2721
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-valid-packages.test.ts
|
|
2722
|
+
*/
|
|
2723
|
+
'pnpm/yaml-valid-packages'?: Linter.RuleEntry<[]>;
|
|
2329
2724
|
/**
|
|
2330
2725
|
* Require using arrow functions for callbacks
|
|
2331
2726
|
* @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
|
|
@@ -7010,6 +7405,23 @@ type ArrowSpacing = [] | [{
|
|
|
7010
7405
|
before?: boolean;
|
|
7011
7406
|
after?: boolean;
|
|
7012
7407
|
}];
|
|
7408
|
+
// ----- astro/prefer-split-class-list -----
|
|
7409
|
+
type AstroPreferSplitClassList = [] | [{
|
|
7410
|
+
splitLiteral?: boolean;
|
|
7411
|
+
}];
|
|
7412
|
+
// ----- astro/semi -----
|
|
7413
|
+
type AstroSemi = ([] | ["never"] | ["never", {
|
|
7414
|
+
beforeStatementContinuationChars?: ("always" | "any" | "never");
|
|
7415
|
+
}] | [] | ["always"] | ["always", {
|
|
7416
|
+
omitLastInOneLineBlock?: boolean;
|
|
7417
|
+
omitLastInOneLineClassBody?: boolean;
|
|
7418
|
+
}]);
|
|
7419
|
+
// ----- astro/sort-attributes -----
|
|
7420
|
+
type AstroSortAttributes = [] | [{
|
|
7421
|
+
type?: ("alphabetical" | "line-length");
|
|
7422
|
+
ignoreCase?: boolean;
|
|
7423
|
+
order?: ("asc" | "desc");
|
|
7424
|
+
}];
|
|
7013
7425
|
// ----- block-spacing -----
|
|
7014
7426
|
type BlockSpacing = [] | [("always" | "never")];
|
|
7015
7427
|
// ----- brace-style -----
|
|
@@ -9150,6 +9562,1745 @@ type PaddingLineBetweenStatements = {
|
|
|
9150
9562
|
prev: _PaddingLineBetweenStatementsStatementType;
|
|
9151
9563
|
next: _PaddingLineBetweenStatementsStatementType;
|
|
9152
9564
|
}[];
|
|
9565
|
+
// ----- perfectionist/sort-array-includes -----
|
|
9566
|
+
type PerfectionistSortArrayIncludes = {
|
|
9567
|
+
fallbackSort?: {
|
|
9568
|
+
order?: ("asc" | "desc");
|
|
9569
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9570
|
+
};
|
|
9571
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9572
|
+
ignoreCase?: boolean;
|
|
9573
|
+
alphabet?: string;
|
|
9574
|
+
locales?: (string | string[]);
|
|
9575
|
+
order?: ("asc" | "desc");
|
|
9576
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9577
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9578
|
+
customGroups?: ({
|
|
9579
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9580
|
+
fallbackSort?: {
|
|
9581
|
+
order?: ("asc" | "desc");
|
|
9582
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9583
|
+
};
|
|
9584
|
+
groupName: string;
|
|
9585
|
+
order?: ("asc" | "desc");
|
|
9586
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9587
|
+
anyOf?: {
|
|
9588
|
+
selector?: ("literal" | "spread");
|
|
9589
|
+
elementNamePattern?: (({
|
|
9590
|
+
pattern: string;
|
|
9591
|
+
flags?: string;
|
|
9592
|
+
} | string)[] | ({
|
|
9593
|
+
pattern: string;
|
|
9594
|
+
flags?: string;
|
|
9595
|
+
} | string));
|
|
9596
|
+
}[];
|
|
9597
|
+
} | {
|
|
9598
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9599
|
+
fallbackSort?: {
|
|
9600
|
+
order?: ("asc" | "desc");
|
|
9601
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9602
|
+
};
|
|
9603
|
+
groupName: string;
|
|
9604
|
+
order?: ("asc" | "desc");
|
|
9605
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9606
|
+
selector?: ("literal" | "spread");
|
|
9607
|
+
elementNamePattern?: (({
|
|
9608
|
+
pattern: string;
|
|
9609
|
+
flags?: string;
|
|
9610
|
+
} | string)[] | ({
|
|
9611
|
+
pattern: string;
|
|
9612
|
+
flags?: string;
|
|
9613
|
+
} | string));
|
|
9614
|
+
})[];
|
|
9615
|
+
useConfigurationIf?: {
|
|
9616
|
+
allNamesMatchPattern?: (({
|
|
9617
|
+
pattern: string;
|
|
9618
|
+
flags?: string;
|
|
9619
|
+
} | string)[] | ({
|
|
9620
|
+
pattern: string;
|
|
9621
|
+
flags?: string;
|
|
9622
|
+
} | string));
|
|
9623
|
+
};
|
|
9624
|
+
partitionByComment?: (boolean | (({
|
|
9625
|
+
pattern: string;
|
|
9626
|
+
flags?: string;
|
|
9627
|
+
} | string)[] | ({
|
|
9628
|
+
pattern: string;
|
|
9629
|
+
flags?: string;
|
|
9630
|
+
} | string)) | {
|
|
9631
|
+
block?: (boolean | (({
|
|
9632
|
+
pattern: string;
|
|
9633
|
+
flags?: string;
|
|
9634
|
+
} | string)[] | ({
|
|
9635
|
+
pattern: string;
|
|
9636
|
+
flags?: string;
|
|
9637
|
+
} | string)));
|
|
9638
|
+
line?: (boolean | (({
|
|
9639
|
+
pattern: string;
|
|
9640
|
+
flags?: string;
|
|
9641
|
+
} | string)[] | ({
|
|
9642
|
+
pattern: string;
|
|
9643
|
+
flags?: string;
|
|
9644
|
+
} | string)));
|
|
9645
|
+
});
|
|
9646
|
+
partitionByNewLine?: boolean;
|
|
9647
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9648
|
+
groups?: (string | string[] | {
|
|
9649
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9650
|
+
commentAbove?: string;
|
|
9651
|
+
})[];
|
|
9652
|
+
}[];
|
|
9653
|
+
// ----- perfectionist/sort-classes -----
|
|
9654
|
+
type PerfectionistSortClasses = [] | [{
|
|
9655
|
+
fallbackSort?: {
|
|
9656
|
+
order?: ("asc" | "desc");
|
|
9657
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9658
|
+
};
|
|
9659
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9660
|
+
ignoreCase?: boolean;
|
|
9661
|
+
alphabet?: string;
|
|
9662
|
+
locales?: (string | string[]);
|
|
9663
|
+
order?: ("asc" | "desc");
|
|
9664
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9665
|
+
customGroups?: ({
|
|
9666
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9667
|
+
fallbackSort?: {
|
|
9668
|
+
order?: ("asc" | "desc");
|
|
9669
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9670
|
+
};
|
|
9671
|
+
groupName: string;
|
|
9672
|
+
order?: ("asc" | "desc");
|
|
9673
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9674
|
+
anyOf?: {
|
|
9675
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9676
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9677
|
+
decoratorNamePattern?: (({
|
|
9678
|
+
pattern: string;
|
|
9679
|
+
flags?: string;
|
|
9680
|
+
} | string)[] | ({
|
|
9681
|
+
pattern: string;
|
|
9682
|
+
flags?: string;
|
|
9683
|
+
} | string));
|
|
9684
|
+
elementValuePattern?: (({
|
|
9685
|
+
pattern: string;
|
|
9686
|
+
flags?: string;
|
|
9687
|
+
} | string)[] | ({
|
|
9688
|
+
pattern: string;
|
|
9689
|
+
flags?: string;
|
|
9690
|
+
} | string));
|
|
9691
|
+
elementNamePattern?: (({
|
|
9692
|
+
pattern: string;
|
|
9693
|
+
flags?: string;
|
|
9694
|
+
} | string)[] | ({
|
|
9695
|
+
pattern: string;
|
|
9696
|
+
flags?: string;
|
|
9697
|
+
} | string));
|
|
9698
|
+
}[];
|
|
9699
|
+
} | {
|
|
9700
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9701
|
+
fallbackSort?: {
|
|
9702
|
+
order?: ("asc" | "desc");
|
|
9703
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9704
|
+
};
|
|
9705
|
+
groupName: string;
|
|
9706
|
+
order?: ("asc" | "desc");
|
|
9707
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9708
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9709
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9710
|
+
decoratorNamePattern?: (({
|
|
9711
|
+
pattern: string;
|
|
9712
|
+
flags?: string;
|
|
9713
|
+
} | string)[] | ({
|
|
9714
|
+
pattern: string;
|
|
9715
|
+
flags?: string;
|
|
9716
|
+
} | string));
|
|
9717
|
+
elementValuePattern?: (({
|
|
9718
|
+
pattern: string;
|
|
9719
|
+
flags?: string;
|
|
9720
|
+
} | string)[] | ({
|
|
9721
|
+
pattern: string;
|
|
9722
|
+
flags?: string;
|
|
9723
|
+
} | string));
|
|
9724
|
+
elementNamePattern?: (({
|
|
9725
|
+
pattern: string;
|
|
9726
|
+
flags?: string;
|
|
9727
|
+
} | string)[] | ({
|
|
9728
|
+
pattern: string;
|
|
9729
|
+
flags?: string;
|
|
9730
|
+
} | string));
|
|
9731
|
+
})[];
|
|
9732
|
+
ignoreCallbackDependenciesPatterns?: (({
|
|
9733
|
+
pattern: string;
|
|
9734
|
+
flags?: string;
|
|
9735
|
+
} | string)[] | ({
|
|
9736
|
+
pattern: string;
|
|
9737
|
+
flags?: string;
|
|
9738
|
+
} | string));
|
|
9739
|
+
partitionByComment?: (boolean | (({
|
|
9740
|
+
pattern: string;
|
|
9741
|
+
flags?: string;
|
|
9742
|
+
} | string)[] | ({
|
|
9743
|
+
pattern: string;
|
|
9744
|
+
flags?: string;
|
|
9745
|
+
} | string)) | {
|
|
9746
|
+
block?: (boolean | (({
|
|
9747
|
+
pattern: string;
|
|
9748
|
+
flags?: string;
|
|
9749
|
+
} | string)[] | ({
|
|
9750
|
+
pattern: string;
|
|
9751
|
+
flags?: string;
|
|
9752
|
+
} | string)));
|
|
9753
|
+
line?: (boolean | (({
|
|
9754
|
+
pattern: string;
|
|
9755
|
+
flags?: string;
|
|
9756
|
+
} | string)[] | ({
|
|
9757
|
+
pattern: string;
|
|
9758
|
+
flags?: string;
|
|
9759
|
+
} | string)));
|
|
9760
|
+
});
|
|
9761
|
+
partitionByNewLine?: boolean;
|
|
9762
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9763
|
+
groups?: (string | string[] | {
|
|
9764
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9765
|
+
commentAbove?: string;
|
|
9766
|
+
})[];
|
|
9767
|
+
}];
|
|
9768
|
+
// ----- perfectionist/sort-decorators -----
|
|
9769
|
+
type PerfectionistSortDecorators = [] | [{
|
|
9770
|
+
fallbackSort?: {
|
|
9771
|
+
order?: ("asc" | "desc");
|
|
9772
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9773
|
+
};
|
|
9774
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9775
|
+
ignoreCase?: boolean;
|
|
9776
|
+
alphabet?: string;
|
|
9777
|
+
locales?: (string | string[]);
|
|
9778
|
+
order?: ("asc" | "desc");
|
|
9779
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9780
|
+
sortOnParameters?: boolean;
|
|
9781
|
+
sortOnProperties?: boolean;
|
|
9782
|
+
sortOnAccessors?: boolean;
|
|
9783
|
+
sortOnMethods?: boolean;
|
|
9784
|
+
sortOnClasses?: boolean;
|
|
9785
|
+
partitionByComment?: (boolean | (({
|
|
9786
|
+
pattern: string;
|
|
9787
|
+
flags?: string;
|
|
9788
|
+
} | string)[] | ({
|
|
9789
|
+
pattern: string;
|
|
9790
|
+
flags?: string;
|
|
9791
|
+
} | string)) | {
|
|
9792
|
+
block?: (boolean | (({
|
|
9793
|
+
pattern: string;
|
|
9794
|
+
flags?: string;
|
|
9795
|
+
} | string)[] | ({
|
|
9796
|
+
pattern: string;
|
|
9797
|
+
flags?: string;
|
|
9798
|
+
} | string)));
|
|
9799
|
+
line?: (boolean | (({
|
|
9800
|
+
pattern: string;
|
|
9801
|
+
flags?: string;
|
|
9802
|
+
} | string)[] | ({
|
|
9803
|
+
pattern: string;
|
|
9804
|
+
flags?: string;
|
|
9805
|
+
} | string)));
|
|
9806
|
+
});
|
|
9807
|
+
customGroups?: {
|
|
9808
|
+
[k: string]: (string | string[]) | undefined;
|
|
9809
|
+
};
|
|
9810
|
+
groups?: (string | string[] | {
|
|
9811
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9812
|
+
commentAbove?: string;
|
|
9813
|
+
})[];
|
|
9814
|
+
}];
|
|
9815
|
+
// ----- perfectionist/sort-enums -----
|
|
9816
|
+
type PerfectionistSortEnums = [] | [{
|
|
9817
|
+
fallbackSort?: {
|
|
9818
|
+
order?: ("asc" | "desc");
|
|
9819
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9820
|
+
};
|
|
9821
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9822
|
+
ignoreCase?: boolean;
|
|
9823
|
+
alphabet?: string;
|
|
9824
|
+
locales?: (string | string[]);
|
|
9825
|
+
order?: ("asc" | "desc");
|
|
9826
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9827
|
+
customGroups?: ({
|
|
9828
|
+
[k: string]: (string | string[]) | undefined;
|
|
9829
|
+
} | ({
|
|
9830
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9831
|
+
fallbackSort?: {
|
|
9832
|
+
order?: ("asc" | "desc");
|
|
9833
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9834
|
+
};
|
|
9835
|
+
groupName: string;
|
|
9836
|
+
order?: ("asc" | "desc");
|
|
9837
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9838
|
+
anyOf?: {
|
|
9839
|
+
elementValuePattern?: (({
|
|
9840
|
+
pattern: string;
|
|
9841
|
+
flags?: string;
|
|
9842
|
+
} | string)[] | ({
|
|
9843
|
+
pattern: string;
|
|
9844
|
+
flags?: string;
|
|
9845
|
+
} | string));
|
|
9846
|
+
elementNamePattern?: (({
|
|
9847
|
+
pattern: string;
|
|
9848
|
+
flags?: string;
|
|
9849
|
+
} | string)[] | ({
|
|
9850
|
+
pattern: string;
|
|
9851
|
+
flags?: string;
|
|
9852
|
+
} | string));
|
|
9853
|
+
}[];
|
|
9854
|
+
} | {
|
|
9855
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9856
|
+
fallbackSort?: {
|
|
9857
|
+
order?: ("asc" | "desc");
|
|
9858
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9859
|
+
};
|
|
9860
|
+
groupName: string;
|
|
9861
|
+
order?: ("asc" | "desc");
|
|
9862
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9863
|
+
elementValuePattern?: (({
|
|
9864
|
+
pattern: string;
|
|
9865
|
+
flags?: string;
|
|
9866
|
+
} | string)[] | ({
|
|
9867
|
+
pattern: string;
|
|
9868
|
+
flags?: string;
|
|
9869
|
+
} | string));
|
|
9870
|
+
elementNamePattern?: (({
|
|
9871
|
+
pattern: string;
|
|
9872
|
+
flags?: string;
|
|
9873
|
+
} | string)[] | ({
|
|
9874
|
+
pattern: string;
|
|
9875
|
+
flags?: string;
|
|
9876
|
+
} | string));
|
|
9877
|
+
})[]);
|
|
9878
|
+
forceNumericSort?: boolean;
|
|
9879
|
+
sortByValue?: boolean;
|
|
9880
|
+
partitionByComment?: (boolean | (({
|
|
9881
|
+
pattern: string;
|
|
9882
|
+
flags?: string;
|
|
9883
|
+
} | string)[] | ({
|
|
9884
|
+
pattern: string;
|
|
9885
|
+
flags?: string;
|
|
9886
|
+
} | string)) | {
|
|
9887
|
+
block?: (boolean | (({
|
|
9888
|
+
pattern: string;
|
|
9889
|
+
flags?: string;
|
|
9890
|
+
} | string)[] | ({
|
|
9891
|
+
pattern: string;
|
|
9892
|
+
flags?: string;
|
|
9893
|
+
} | string)));
|
|
9894
|
+
line?: (boolean | (({
|
|
9895
|
+
pattern: string;
|
|
9896
|
+
flags?: string;
|
|
9897
|
+
} | string)[] | ({
|
|
9898
|
+
pattern: string;
|
|
9899
|
+
flags?: string;
|
|
9900
|
+
} | string)));
|
|
9901
|
+
});
|
|
9902
|
+
partitionByNewLine?: boolean;
|
|
9903
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9904
|
+
groups?: (string | string[] | {
|
|
9905
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9906
|
+
commentAbove?: string;
|
|
9907
|
+
})[];
|
|
9908
|
+
}];
|
|
9909
|
+
// ----- perfectionist/sort-exports -----
|
|
9910
|
+
type PerfectionistSortExports = {
|
|
9911
|
+
fallbackSort?: {
|
|
9912
|
+
order?: ("asc" | "desc");
|
|
9913
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9914
|
+
};
|
|
9915
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9916
|
+
ignoreCase?: boolean;
|
|
9917
|
+
alphabet?: string;
|
|
9918
|
+
locales?: (string | string[]);
|
|
9919
|
+
order?: ("asc" | "desc");
|
|
9920
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9921
|
+
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
9922
|
+
customGroups?: ({
|
|
9923
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9924
|
+
fallbackSort?: {
|
|
9925
|
+
order?: ("asc" | "desc");
|
|
9926
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9927
|
+
};
|
|
9928
|
+
groupName: string;
|
|
9929
|
+
order?: ("asc" | "desc");
|
|
9930
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9931
|
+
anyOf?: {
|
|
9932
|
+
modifiers?: ("value" | "type")[];
|
|
9933
|
+
selector?: "export";
|
|
9934
|
+
elementNamePattern?: (({
|
|
9935
|
+
pattern: string;
|
|
9936
|
+
flags?: string;
|
|
9937
|
+
} | string)[] | ({
|
|
9938
|
+
pattern: string;
|
|
9939
|
+
flags?: string;
|
|
9940
|
+
} | string));
|
|
9941
|
+
}[];
|
|
9942
|
+
} | {
|
|
9943
|
+
newlinesInside?: (("always" | "never") | number);
|
|
9944
|
+
fallbackSort?: {
|
|
9945
|
+
order?: ("asc" | "desc");
|
|
9946
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9947
|
+
};
|
|
9948
|
+
groupName: string;
|
|
9949
|
+
order?: ("asc" | "desc");
|
|
9950
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9951
|
+
modifiers?: ("value" | "type")[];
|
|
9952
|
+
selector?: "export";
|
|
9953
|
+
elementNamePattern?: (({
|
|
9954
|
+
pattern: string;
|
|
9955
|
+
flags?: string;
|
|
9956
|
+
} | string)[] | ({
|
|
9957
|
+
pattern: string;
|
|
9958
|
+
flags?: string;
|
|
9959
|
+
} | string));
|
|
9960
|
+
})[];
|
|
9961
|
+
partitionByComment?: (boolean | (({
|
|
9962
|
+
pattern: string;
|
|
9963
|
+
flags?: string;
|
|
9964
|
+
} | string)[] | ({
|
|
9965
|
+
pattern: string;
|
|
9966
|
+
flags?: string;
|
|
9967
|
+
} | string)) | {
|
|
9968
|
+
block?: (boolean | (({
|
|
9969
|
+
pattern: string;
|
|
9970
|
+
flags?: string;
|
|
9971
|
+
} | string)[] | ({
|
|
9972
|
+
pattern: string;
|
|
9973
|
+
flags?: string;
|
|
9974
|
+
} | string)));
|
|
9975
|
+
line?: (boolean | (({
|
|
9976
|
+
pattern: string;
|
|
9977
|
+
flags?: string;
|
|
9978
|
+
} | string)[] | ({
|
|
9979
|
+
pattern: string;
|
|
9980
|
+
flags?: string;
|
|
9981
|
+
} | string)));
|
|
9982
|
+
});
|
|
9983
|
+
partitionByNewLine?: boolean;
|
|
9984
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9985
|
+
groups?: (string | string[] | {
|
|
9986
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9987
|
+
commentAbove?: string;
|
|
9988
|
+
})[];
|
|
9989
|
+
}[];
|
|
9990
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
9991
|
+
type PerfectionistSortHeritageClauses = [] | [{
|
|
9992
|
+
fallbackSort?: {
|
|
9993
|
+
order?: ("asc" | "desc");
|
|
9994
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9995
|
+
};
|
|
9996
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9997
|
+
ignoreCase?: boolean;
|
|
9998
|
+
alphabet?: string;
|
|
9999
|
+
locales?: (string | string[]);
|
|
10000
|
+
order?: ("asc" | "desc");
|
|
10001
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10002
|
+
customGroups?: {
|
|
10003
|
+
[k: string]: (string | string[]) | undefined;
|
|
10004
|
+
};
|
|
10005
|
+
groups?: (string | string[] | {
|
|
10006
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10007
|
+
commentAbove?: string;
|
|
10008
|
+
})[];
|
|
10009
|
+
}];
|
|
10010
|
+
// ----- perfectionist/sort-imports -----
|
|
10011
|
+
type PerfectionistSortImports = {
|
|
10012
|
+
fallbackSort?: {
|
|
10013
|
+
order?: ("asc" | "desc");
|
|
10014
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10015
|
+
};
|
|
10016
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10017
|
+
ignoreCase?: boolean;
|
|
10018
|
+
alphabet?: string;
|
|
10019
|
+
locales?: (string | string[]);
|
|
10020
|
+
order?: ("asc" | "desc");
|
|
10021
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10022
|
+
customGroups?: ({
|
|
10023
|
+
value?: {
|
|
10024
|
+
[k: string]: (string | string[]) | undefined;
|
|
10025
|
+
};
|
|
10026
|
+
type?: {
|
|
10027
|
+
[k: string]: (string | string[]) | undefined;
|
|
10028
|
+
};
|
|
10029
|
+
} | ({
|
|
10030
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10031
|
+
fallbackSort?: {
|
|
10032
|
+
order?: ("asc" | "desc");
|
|
10033
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10034
|
+
};
|
|
10035
|
+
groupName: string;
|
|
10036
|
+
order?: ("asc" | "desc");
|
|
10037
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10038
|
+
anyOf?: {
|
|
10039
|
+
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10040
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10041
|
+
elementValuePattern?: (({
|
|
10042
|
+
pattern: string;
|
|
10043
|
+
flags?: string;
|
|
10044
|
+
} | string)[] | ({
|
|
10045
|
+
pattern: string;
|
|
10046
|
+
flags?: string;
|
|
10047
|
+
} | string));
|
|
10048
|
+
elementNamePattern?: (({
|
|
10049
|
+
pattern: string;
|
|
10050
|
+
flags?: string;
|
|
10051
|
+
} | string)[] | ({
|
|
10052
|
+
pattern: string;
|
|
10053
|
+
flags?: string;
|
|
10054
|
+
} | string));
|
|
10055
|
+
}[];
|
|
10056
|
+
} | {
|
|
10057
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10058
|
+
fallbackSort?: {
|
|
10059
|
+
order?: ("asc" | "desc");
|
|
10060
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10061
|
+
};
|
|
10062
|
+
groupName: string;
|
|
10063
|
+
order?: ("asc" | "desc");
|
|
10064
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10065
|
+
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10066
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10067
|
+
elementValuePattern?: (({
|
|
10068
|
+
pattern: string;
|
|
10069
|
+
flags?: string;
|
|
10070
|
+
} | string)[] | ({
|
|
10071
|
+
pattern: string;
|
|
10072
|
+
flags?: string;
|
|
10073
|
+
} | string));
|
|
10074
|
+
elementNamePattern?: (({
|
|
10075
|
+
pattern: string;
|
|
10076
|
+
flags?: string;
|
|
10077
|
+
} | string)[] | ({
|
|
10078
|
+
pattern: string;
|
|
10079
|
+
flags?: string;
|
|
10080
|
+
} | string));
|
|
10081
|
+
})[]);
|
|
10082
|
+
tsconfig?: {
|
|
10083
|
+
rootDir: string;
|
|
10084
|
+
filename?: string;
|
|
10085
|
+
};
|
|
10086
|
+
maxLineLength?: number;
|
|
10087
|
+
sortSideEffects?: boolean;
|
|
10088
|
+
environment?: ("node" | "bun");
|
|
10089
|
+
tsconfigRootDir?: string;
|
|
10090
|
+
partitionByComment?: (boolean | (({
|
|
10091
|
+
pattern: string;
|
|
10092
|
+
flags?: string;
|
|
10093
|
+
} | string)[] | ({
|
|
10094
|
+
pattern: string;
|
|
10095
|
+
flags?: string;
|
|
10096
|
+
} | string)) | {
|
|
10097
|
+
block?: (boolean | (({
|
|
10098
|
+
pattern: string;
|
|
10099
|
+
flags?: string;
|
|
10100
|
+
} | string)[] | ({
|
|
10101
|
+
pattern: string;
|
|
10102
|
+
flags?: string;
|
|
10103
|
+
} | string)));
|
|
10104
|
+
line?: (boolean | (({
|
|
10105
|
+
pattern: string;
|
|
10106
|
+
flags?: string;
|
|
10107
|
+
} | string)[] | ({
|
|
10108
|
+
pattern: string;
|
|
10109
|
+
flags?: string;
|
|
10110
|
+
} | string)));
|
|
10111
|
+
});
|
|
10112
|
+
partitionByNewLine?: boolean;
|
|
10113
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10114
|
+
internalPattern?: (({
|
|
10115
|
+
pattern: string;
|
|
10116
|
+
flags?: string;
|
|
10117
|
+
} | string)[] | ({
|
|
10118
|
+
pattern: string;
|
|
10119
|
+
flags?: string;
|
|
10120
|
+
} | string));
|
|
10121
|
+
groups?: (string | string[] | {
|
|
10122
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10123
|
+
commentAbove?: string;
|
|
10124
|
+
})[];
|
|
10125
|
+
}[];
|
|
10126
|
+
// ----- perfectionist/sort-interfaces -----
|
|
10127
|
+
type PerfectionistSortInterfaces = {
|
|
10128
|
+
fallbackSort?: {
|
|
10129
|
+
order?: ("asc" | "desc");
|
|
10130
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10131
|
+
sortBy?: ("name" | "value");
|
|
10132
|
+
};
|
|
10133
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10134
|
+
ignoreCase?: boolean;
|
|
10135
|
+
alphabet?: string;
|
|
10136
|
+
locales?: (string | string[]);
|
|
10137
|
+
order?: ("asc" | "desc");
|
|
10138
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10139
|
+
customGroups?: ({
|
|
10140
|
+
[k: string]: (string | string[]) | undefined;
|
|
10141
|
+
} | ({
|
|
10142
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10143
|
+
fallbackSort?: {
|
|
10144
|
+
order?: ("asc" | "desc");
|
|
10145
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10146
|
+
sortBy?: ("name" | "value");
|
|
10147
|
+
};
|
|
10148
|
+
groupName: string;
|
|
10149
|
+
order?: ("asc" | "desc");
|
|
10150
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10151
|
+
anyOf?: {
|
|
10152
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10153
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10154
|
+
elementValuePattern?: (({
|
|
10155
|
+
pattern: string;
|
|
10156
|
+
flags?: string;
|
|
10157
|
+
} | string)[] | ({
|
|
10158
|
+
pattern: string;
|
|
10159
|
+
flags?: string;
|
|
10160
|
+
} | string));
|
|
10161
|
+
elementNamePattern?: (({
|
|
10162
|
+
pattern: string;
|
|
10163
|
+
flags?: string;
|
|
10164
|
+
} | string)[] | ({
|
|
10165
|
+
pattern: string;
|
|
10166
|
+
flags?: string;
|
|
10167
|
+
} | string));
|
|
10168
|
+
sortBy?: ("name" | "value");
|
|
10169
|
+
}[];
|
|
10170
|
+
} | {
|
|
10171
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10172
|
+
fallbackSort?: {
|
|
10173
|
+
order?: ("asc" | "desc");
|
|
10174
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10175
|
+
sortBy?: ("name" | "value");
|
|
10176
|
+
};
|
|
10177
|
+
groupName: string;
|
|
10178
|
+
order?: ("asc" | "desc");
|
|
10179
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10180
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10181
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10182
|
+
elementValuePattern?: (({
|
|
10183
|
+
pattern: string;
|
|
10184
|
+
flags?: string;
|
|
10185
|
+
} | string)[] | ({
|
|
10186
|
+
pattern: string;
|
|
10187
|
+
flags?: string;
|
|
10188
|
+
} | string));
|
|
10189
|
+
elementNamePattern?: (({
|
|
10190
|
+
pattern: string;
|
|
10191
|
+
flags?: string;
|
|
10192
|
+
} | string)[] | ({
|
|
10193
|
+
pattern: string;
|
|
10194
|
+
flags?: string;
|
|
10195
|
+
} | string));
|
|
10196
|
+
sortBy?: ("name" | "value");
|
|
10197
|
+
})[]);
|
|
10198
|
+
groupKind?: ("mixed" | "required-first" | "optional-first");
|
|
10199
|
+
useConfigurationIf?: {
|
|
10200
|
+
allNamesMatchPattern?: (({
|
|
10201
|
+
pattern: string;
|
|
10202
|
+
flags?: string;
|
|
10203
|
+
} | string)[] | ({
|
|
10204
|
+
pattern: string;
|
|
10205
|
+
flags?: string;
|
|
10206
|
+
} | string));
|
|
10207
|
+
declarationMatchesPattern?: (({
|
|
10208
|
+
pattern: string;
|
|
10209
|
+
flags?: string;
|
|
10210
|
+
} | string)[] | ({
|
|
10211
|
+
pattern: string;
|
|
10212
|
+
flags?: string;
|
|
10213
|
+
} | string));
|
|
10214
|
+
};
|
|
10215
|
+
partitionByComment?: (boolean | (({
|
|
10216
|
+
pattern: string;
|
|
10217
|
+
flags?: string;
|
|
10218
|
+
} | string)[] | ({
|
|
10219
|
+
pattern: string;
|
|
10220
|
+
flags?: string;
|
|
10221
|
+
} | string)) | {
|
|
10222
|
+
block?: (boolean | (({
|
|
10223
|
+
pattern: string;
|
|
10224
|
+
flags?: string;
|
|
10225
|
+
} | string)[] | ({
|
|
10226
|
+
pattern: string;
|
|
10227
|
+
flags?: string;
|
|
10228
|
+
} | string)));
|
|
10229
|
+
line?: (boolean | (({
|
|
10230
|
+
pattern: string;
|
|
10231
|
+
flags?: string;
|
|
10232
|
+
} | string)[] | ({
|
|
10233
|
+
pattern: string;
|
|
10234
|
+
flags?: string;
|
|
10235
|
+
} | string)));
|
|
10236
|
+
});
|
|
10237
|
+
partitionByNewLine?: boolean;
|
|
10238
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10239
|
+
ignorePattern?: (({
|
|
10240
|
+
pattern: string;
|
|
10241
|
+
flags?: string;
|
|
10242
|
+
} | string)[] | ({
|
|
10243
|
+
pattern: string;
|
|
10244
|
+
flags?: string;
|
|
10245
|
+
} | string));
|
|
10246
|
+
sortBy?: ("name" | "value");
|
|
10247
|
+
groups?: (string | string[] | {
|
|
10248
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10249
|
+
commentAbove?: string;
|
|
10250
|
+
})[];
|
|
10251
|
+
}[];
|
|
10252
|
+
// ----- perfectionist/sort-intersection-types -----
|
|
10253
|
+
type PerfectionistSortIntersectionTypes = {
|
|
10254
|
+
fallbackSort?: {
|
|
10255
|
+
order?: ("asc" | "desc");
|
|
10256
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10257
|
+
};
|
|
10258
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10259
|
+
ignoreCase?: boolean;
|
|
10260
|
+
alphabet?: string;
|
|
10261
|
+
locales?: (string | string[]);
|
|
10262
|
+
order?: ("asc" | "desc");
|
|
10263
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10264
|
+
customGroups?: ({
|
|
10265
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10266
|
+
fallbackSort?: {
|
|
10267
|
+
order?: ("asc" | "desc");
|
|
10268
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10269
|
+
};
|
|
10270
|
+
groupName: string;
|
|
10271
|
+
order?: ("asc" | "desc");
|
|
10272
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10273
|
+
anyOf?: {
|
|
10274
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10275
|
+
elementNamePattern?: (({
|
|
10276
|
+
pattern: string;
|
|
10277
|
+
flags?: string;
|
|
10278
|
+
} | string)[] | ({
|
|
10279
|
+
pattern: string;
|
|
10280
|
+
flags?: string;
|
|
10281
|
+
} | string));
|
|
10282
|
+
}[];
|
|
10283
|
+
} | {
|
|
10284
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10285
|
+
fallbackSort?: {
|
|
10286
|
+
order?: ("asc" | "desc");
|
|
10287
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10288
|
+
};
|
|
10289
|
+
groupName: string;
|
|
10290
|
+
order?: ("asc" | "desc");
|
|
10291
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10292
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10293
|
+
elementNamePattern?: (({
|
|
10294
|
+
pattern: string;
|
|
10295
|
+
flags?: string;
|
|
10296
|
+
} | string)[] | ({
|
|
10297
|
+
pattern: string;
|
|
10298
|
+
flags?: string;
|
|
10299
|
+
} | string));
|
|
10300
|
+
})[];
|
|
10301
|
+
partitionByComment?: (boolean | (({
|
|
10302
|
+
pattern: string;
|
|
10303
|
+
flags?: string;
|
|
10304
|
+
} | string)[] | ({
|
|
10305
|
+
pattern: string;
|
|
10306
|
+
flags?: string;
|
|
10307
|
+
} | string)) | {
|
|
10308
|
+
block?: (boolean | (({
|
|
10309
|
+
pattern: string;
|
|
10310
|
+
flags?: string;
|
|
10311
|
+
} | string)[] | ({
|
|
10312
|
+
pattern: string;
|
|
10313
|
+
flags?: string;
|
|
10314
|
+
} | string)));
|
|
10315
|
+
line?: (boolean | (({
|
|
10316
|
+
pattern: string;
|
|
10317
|
+
flags?: string;
|
|
10318
|
+
} | string)[] | ({
|
|
10319
|
+
pattern: string;
|
|
10320
|
+
flags?: string;
|
|
10321
|
+
} | string)));
|
|
10322
|
+
});
|
|
10323
|
+
partitionByNewLine?: boolean;
|
|
10324
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10325
|
+
groups?: (string | string[] | {
|
|
10326
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10327
|
+
commentAbove?: string;
|
|
10328
|
+
})[];
|
|
10329
|
+
}[];
|
|
10330
|
+
// ----- perfectionist/sort-jsx-props -----
|
|
10331
|
+
type PerfectionistSortJsxProps = {
|
|
10332
|
+
fallbackSort?: {
|
|
10333
|
+
order?: ("asc" | "desc");
|
|
10334
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10335
|
+
};
|
|
10336
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10337
|
+
ignoreCase?: boolean;
|
|
10338
|
+
alphabet?: string;
|
|
10339
|
+
locales?: (string | string[]);
|
|
10340
|
+
order?: ("asc" | "desc");
|
|
10341
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10342
|
+
customGroups?: ({
|
|
10343
|
+
[k: string]: (string | string[]) | undefined;
|
|
10344
|
+
} | ({
|
|
10345
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10346
|
+
fallbackSort?: {
|
|
10347
|
+
order?: ("asc" | "desc");
|
|
10348
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10349
|
+
};
|
|
10350
|
+
groupName: string;
|
|
10351
|
+
order?: ("asc" | "desc");
|
|
10352
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10353
|
+
anyOf?: {
|
|
10354
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
10355
|
+
selector?: ("multiline" | "prop" | "shorthand");
|
|
10356
|
+
elementValuePattern?: (({
|
|
10357
|
+
pattern: string;
|
|
10358
|
+
flags?: string;
|
|
10359
|
+
} | string)[] | ({
|
|
10360
|
+
pattern: string;
|
|
10361
|
+
flags?: string;
|
|
10362
|
+
} | string));
|
|
10363
|
+
elementNamePattern?: (({
|
|
10364
|
+
pattern: string;
|
|
10365
|
+
flags?: string;
|
|
10366
|
+
} | string)[] | ({
|
|
10367
|
+
pattern: string;
|
|
10368
|
+
flags?: string;
|
|
10369
|
+
} | string));
|
|
10370
|
+
}[];
|
|
10371
|
+
} | {
|
|
10372
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10373
|
+
fallbackSort?: {
|
|
10374
|
+
order?: ("asc" | "desc");
|
|
10375
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10376
|
+
};
|
|
10377
|
+
groupName: string;
|
|
10378
|
+
order?: ("asc" | "desc");
|
|
10379
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10380
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
10381
|
+
selector?: ("multiline" | "prop" | "shorthand");
|
|
10382
|
+
elementValuePattern?: (({
|
|
10383
|
+
pattern: string;
|
|
10384
|
+
flags?: string;
|
|
10385
|
+
} | string)[] | ({
|
|
10386
|
+
pattern: string;
|
|
10387
|
+
flags?: string;
|
|
10388
|
+
} | string));
|
|
10389
|
+
elementNamePattern?: (({
|
|
10390
|
+
pattern: string;
|
|
10391
|
+
flags?: string;
|
|
10392
|
+
} | string)[] | ({
|
|
10393
|
+
pattern: string;
|
|
10394
|
+
flags?: string;
|
|
10395
|
+
} | string));
|
|
10396
|
+
})[]);
|
|
10397
|
+
useConfigurationIf?: {
|
|
10398
|
+
allNamesMatchPattern?: (({
|
|
10399
|
+
pattern: string;
|
|
10400
|
+
flags?: string;
|
|
10401
|
+
} | string)[] | ({
|
|
10402
|
+
pattern: string;
|
|
10403
|
+
flags?: string;
|
|
10404
|
+
} | string));
|
|
10405
|
+
tagMatchesPattern?: (({
|
|
10406
|
+
pattern: string;
|
|
10407
|
+
flags?: string;
|
|
10408
|
+
} | string)[] | ({
|
|
10409
|
+
pattern: string;
|
|
10410
|
+
flags?: string;
|
|
10411
|
+
} | string));
|
|
10412
|
+
};
|
|
10413
|
+
partitionByNewLine?: boolean;
|
|
10414
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10415
|
+
ignorePattern?: (({
|
|
10416
|
+
pattern: string;
|
|
10417
|
+
flags?: string;
|
|
10418
|
+
} | string)[] | ({
|
|
10419
|
+
pattern: string;
|
|
10420
|
+
flags?: string;
|
|
10421
|
+
} | string));
|
|
10422
|
+
groups?: (string | string[] | {
|
|
10423
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10424
|
+
commentAbove?: string;
|
|
10425
|
+
})[];
|
|
10426
|
+
}[];
|
|
10427
|
+
// ----- perfectionist/sort-maps -----
|
|
10428
|
+
type PerfectionistSortMaps = {
|
|
10429
|
+
fallbackSort?: {
|
|
10430
|
+
order?: ("asc" | "desc");
|
|
10431
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10432
|
+
};
|
|
10433
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10434
|
+
ignoreCase?: boolean;
|
|
10435
|
+
alphabet?: string;
|
|
10436
|
+
locales?: (string | string[]);
|
|
10437
|
+
order?: ("asc" | "desc");
|
|
10438
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10439
|
+
customGroups?: ({
|
|
10440
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10441
|
+
fallbackSort?: {
|
|
10442
|
+
order?: ("asc" | "desc");
|
|
10443
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10444
|
+
};
|
|
10445
|
+
groupName: string;
|
|
10446
|
+
order?: ("asc" | "desc");
|
|
10447
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10448
|
+
anyOf?: {
|
|
10449
|
+
elementNamePattern?: (({
|
|
10450
|
+
pattern: string;
|
|
10451
|
+
flags?: string;
|
|
10452
|
+
} | string)[] | ({
|
|
10453
|
+
pattern: string;
|
|
10454
|
+
flags?: string;
|
|
10455
|
+
} | string));
|
|
10456
|
+
}[];
|
|
10457
|
+
} | {
|
|
10458
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10459
|
+
fallbackSort?: {
|
|
10460
|
+
order?: ("asc" | "desc");
|
|
10461
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10462
|
+
};
|
|
10463
|
+
groupName: string;
|
|
10464
|
+
order?: ("asc" | "desc");
|
|
10465
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10466
|
+
elementNamePattern?: (({
|
|
10467
|
+
pattern: string;
|
|
10468
|
+
flags?: string;
|
|
10469
|
+
} | string)[] | ({
|
|
10470
|
+
pattern: string;
|
|
10471
|
+
flags?: string;
|
|
10472
|
+
} | string));
|
|
10473
|
+
})[];
|
|
10474
|
+
useConfigurationIf?: {
|
|
10475
|
+
allNamesMatchPattern?: (({
|
|
10476
|
+
pattern: string;
|
|
10477
|
+
flags?: string;
|
|
10478
|
+
} | string)[] | ({
|
|
10479
|
+
pattern: string;
|
|
10480
|
+
flags?: string;
|
|
10481
|
+
} | string));
|
|
10482
|
+
};
|
|
10483
|
+
partitionByComment?: (boolean | (({
|
|
10484
|
+
pattern: string;
|
|
10485
|
+
flags?: string;
|
|
10486
|
+
} | string)[] | ({
|
|
10487
|
+
pattern: string;
|
|
10488
|
+
flags?: string;
|
|
10489
|
+
} | string)) | {
|
|
10490
|
+
block?: (boolean | (({
|
|
10491
|
+
pattern: string;
|
|
10492
|
+
flags?: string;
|
|
10493
|
+
} | string)[] | ({
|
|
10494
|
+
pattern: string;
|
|
10495
|
+
flags?: string;
|
|
10496
|
+
} | string)));
|
|
10497
|
+
line?: (boolean | (({
|
|
10498
|
+
pattern: string;
|
|
10499
|
+
flags?: string;
|
|
10500
|
+
} | string)[] | ({
|
|
10501
|
+
pattern: string;
|
|
10502
|
+
flags?: string;
|
|
10503
|
+
} | string)));
|
|
10504
|
+
});
|
|
10505
|
+
partitionByNewLine?: boolean;
|
|
10506
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10507
|
+
groups?: (string | string[] | {
|
|
10508
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10509
|
+
commentAbove?: string;
|
|
10510
|
+
})[];
|
|
10511
|
+
}[];
|
|
10512
|
+
// ----- perfectionist/sort-modules -----
|
|
10513
|
+
type PerfectionistSortModules = [] | [{
|
|
10514
|
+
fallbackSort?: {
|
|
10515
|
+
order?: ("asc" | "desc");
|
|
10516
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10517
|
+
};
|
|
10518
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10519
|
+
ignoreCase?: boolean;
|
|
10520
|
+
alphabet?: string;
|
|
10521
|
+
locales?: (string | string[]);
|
|
10522
|
+
order?: ("asc" | "desc");
|
|
10523
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10524
|
+
customGroups?: ({
|
|
10525
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10526
|
+
fallbackSort?: {
|
|
10527
|
+
order?: ("asc" | "desc");
|
|
10528
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10529
|
+
};
|
|
10530
|
+
groupName: string;
|
|
10531
|
+
order?: ("asc" | "desc");
|
|
10532
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10533
|
+
anyOf?: {
|
|
10534
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10535
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10536
|
+
decoratorNamePattern?: (({
|
|
10537
|
+
pattern: string;
|
|
10538
|
+
flags?: string;
|
|
10539
|
+
} | string)[] | ({
|
|
10540
|
+
pattern: string;
|
|
10541
|
+
flags?: string;
|
|
10542
|
+
} | string));
|
|
10543
|
+
elementNamePattern?: (({
|
|
10544
|
+
pattern: string;
|
|
10545
|
+
flags?: string;
|
|
10546
|
+
} | string)[] | ({
|
|
10547
|
+
pattern: string;
|
|
10548
|
+
flags?: string;
|
|
10549
|
+
} | string));
|
|
10550
|
+
}[];
|
|
10551
|
+
} | {
|
|
10552
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10553
|
+
fallbackSort?: {
|
|
10554
|
+
order?: ("asc" | "desc");
|
|
10555
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10556
|
+
};
|
|
10557
|
+
groupName: string;
|
|
10558
|
+
order?: ("asc" | "desc");
|
|
10559
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10560
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10561
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10562
|
+
decoratorNamePattern?: (({
|
|
10563
|
+
pattern: string;
|
|
10564
|
+
flags?: string;
|
|
10565
|
+
} | string)[] | ({
|
|
10566
|
+
pattern: string;
|
|
10567
|
+
flags?: string;
|
|
10568
|
+
} | string));
|
|
10569
|
+
elementNamePattern?: (({
|
|
10570
|
+
pattern: string;
|
|
10571
|
+
flags?: string;
|
|
10572
|
+
} | string)[] | ({
|
|
10573
|
+
pattern: string;
|
|
10574
|
+
flags?: string;
|
|
10575
|
+
} | string));
|
|
10576
|
+
})[];
|
|
10577
|
+
partitionByComment?: (boolean | (({
|
|
10578
|
+
pattern: string;
|
|
10579
|
+
flags?: string;
|
|
10580
|
+
} | string)[] | ({
|
|
10581
|
+
pattern: string;
|
|
10582
|
+
flags?: string;
|
|
10583
|
+
} | string)) | {
|
|
10584
|
+
block?: (boolean | (({
|
|
10585
|
+
pattern: string;
|
|
10586
|
+
flags?: string;
|
|
10587
|
+
} | string)[] | ({
|
|
10588
|
+
pattern: string;
|
|
10589
|
+
flags?: string;
|
|
10590
|
+
} | string)));
|
|
10591
|
+
line?: (boolean | (({
|
|
10592
|
+
pattern: string;
|
|
10593
|
+
flags?: string;
|
|
10594
|
+
} | string)[] | ({
|
|
10595
|
+
pattern: string;
|
|
10596
|
+
flags?: string;
|
|
10597
|
+
} | string)));
|
|
10598
|
+
});
|
|
10599
|
+
partitionByNewLine?: boolean;
|
|
10600
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10601
|
+
groups?: (string | string[] | {
|
|
10602
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10603
|
+
commentAbove?: string;
|
|
10604
|
+
})[];
|
|
10605
|
+
}];
|
|
10606
|
+
// ----- perfectionist/sort-named-exports -----
|
|
10607
|
+
type PerfectionistSortNamedExports = {
|
|
10608
|
+
fallbackSort?: {
|
|
10609
|
+
order?: ("asc" | "desc");
|
|
10610
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10611
|
+
};
|
|
10612
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10613
|
+
ignoreCase?: boolean;
|
|
10614
|
+
alphabet?: string;
|
|
10615
|
+
locales?: (string | string[]);
|
|
10616
|
+
order?: ("asc" | "desc");
|
|
10617
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10618
|
+
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10619
|
+
ignoreAlias?: boolean;
|
|
10620
|
+
customGroups?: ({
|
|
10621
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10622
|
+
fallbackSort?: {
|
|
10623
|
+
order?: ("asc" | "desc");
|
|
10624
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10625
|
+
};
|
|
10626
|
+
groupName: string;
|
|
10627
|
+
order?: ("asc" | "desc");
|
|
10628
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10629
|
+
anyOf?: {
|
|
10630
|
+
modifiers?: ("value" | "type")[];
|
|
10631
|
+
selector?: "export";
|
|
10632
|
+
elementNamePattern?: (({
|
|
10633
|
+
pattern: string;
|
|
10634
|
+
flags?: string;
|
|
10635
|
+
} | string)[] | ({
|
|
10636
|
+
pattern: string;
|
|
10637
|
+
flags?: string;
|
|
10638
|
+
} | string));
|
|
10639
|
+
}[];
|
|
10640
|
+
} | {
|
|
10641
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10642
|
+
fallbackSort?: {
|
|
10643
|
+
order?: ("asc" | "desc");
|
|
10644
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10645
|
+
};
|
|
10646
|
+
groupName: string;
|
|
10647
|
+
order?: ("asc" | "desc");
|
|
10648
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10649
|
+
modifiers?: ("value" | "type")[];
|
|
10650
|
+
selector?: "export";
|
|
10651
|
+
elementNamePattern?: (({
|
|
10652
|
+
pattern: string;
|
|
10653
|
+
flags?: string;
|
|
10654
|
+
} | string)[] | ({
|
|
10655
|
+
pattern: string;
|
|
10656
|
+
flags?: string;
|
|
10657
|
+
} | string));
|
|
10658
|
+
})[];
|
|
10659
|
+
partitionByComment?: (boolean | (({
|
|
10660
|
+
pattern: string;
|
|
10661
|
+
flags?: string;
|
|
10662
|
+
} | string)[] | ({
|
|
10663
|
+
pattern: string;
|
|
10664
|
+
flags?: string;
|
|
10665
|
+
} | string)) | {
|
|
10666
|
+
block?: (boolean | (({
|
|
10667
|
+
pattern: string;
|
|
10668
|
+
flags?: string;
|
|
10669
|
+
} | string)[] | ({
|
|
10670
|
+
pattern: string;
|
|
10671
|
+
flags?: string;
|
|
10672
|
+
} | string)));
|
|
10673
|
+
line?: (boolean | (({
|
|
10674
|
+
pattern: string;
|
|
10675
|
+
flags?: string;
|
|
10676
|
+
} | string)[] | ({
|
|
10677
|
+
pattern: string;
|
|
10678
|
+
flags?: string;
|
|
10679
|
+
} | string)));
|
|
10680
|
+
});
|
|
10681
|
+
partitionByNewLine?: boolean;
|
|
10682
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10683
|
+
groups?: (string | string[] | {
|
|
10684
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10685
|
+
commentAbove?: string;
|
|
10686
|
+
})[];
|
|
10687
|
+
}[];
|
|
10688
|
+
// ----- perfectionist/sort-named-imports -----
|
|
10689
|
+
type PerfectionistSortNamedImports = {
|
|
10690
|
+
fallbackSort?: {
|
|
10691
|
+
order?: ("asc" | "desc");
|
|
10692
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10693
|
+
};
|
|
10694
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10695
|
+
ignoreCase?: boolean;
|
|
10696
|
+
alphabet?: string;
|
|
10697
|
+
locales?: (string | string[]);
|
|
10698
|
+
order?: ("asc" | "desc");
|
|
10699
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10700
|
+
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10701
|
+
ignoreAlias?: boolean;
|
|
10702
|
+
customGroups?: ({
|
|
10703
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10704
|
+
fallbackSort?: {
|
|
10705
|
+
order?: ("asc" | "desc");
|
|
10706
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10707
|
+
};
|
|
10708
|
+
groupName: string;
|
|
10709
|
+
order?: ("asc" | "desc");
|
|
10710
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10711
|
+
anyOf?: {
|
|
10712
|
+
modifiers?: ("value" | "type")[];
|
|
10713
|
+
selector?: "import";
|
|
10714
|
+
elementNamePattern?: (({
|
|
10715
|
+
pattern: string;
|
|
10716
|
+
flags?: string;
|
|
10717
|
+
} | string)[] | ({
|
|
10718
|
+
pattern: string;
|
|
10719
|
+
flags?: string;
|
|
10720
|
+
} | string));
|
|
10721
|
+
}[];
|
|
10722
|
+
} | {
|
|
10723
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10724
|
+
fallbackSort?: {
|
|
10725
|
+
order?: ("asc" | "desc");
|
|
10726
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10727
|
+
};
|
|
10728
|
+
groupName: string;
|
|
10729
|
+
order?: ("asc" | "desc");
|
|
10730
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10731
|
+
modifiers?: ("value" | "type")[];
|
|
10732
|
+
selector?: "import";
|
|
10733
|
+
elementNamePattern?: (({
|
|
10734
|
+
pattern: string;
|
|
10735
|
+
flags?: string;
|
|
10736
|
+
} | string)[] | ({
|
|
10737
|
+
pattern: string;
|
|
10738
|
+
flags?: string;
|
|
10739
|
+
} | string));
|
|
10740
|
+
})[];
|
|
10741
|
+
partitionByComment?: (boolean | (({
|
|
10742
|
+
pattern: string;
|
|
10743
|
+
flags?: string;
|
|
10744
|
+
} | string)[] | ({
|
|
10745
|
+
pattern: string;
|
|
10746
|
+
flags?: string;
|
|
10747
|
+
} | string)) | {
|
|
10748
|
+
block?: (boolean | (({
|
|
10749
|
+
pattern: string;
|
|
10750
|
+
flags?: string;
|
|
10751
|
+
} | string)[] | ({
|
|
10752
|
+
pattern: string;
|
|
10753
|
+
flags?: string;
|
|
10754
|
+
} | string)));
|
|
10755
|
+
line?: (boolean | (({
|
|
10756
|
+
pattern: string;
|
|
10757
|
+
flags?: string;
|
|
10758
|
+
} | string)[] | ({
|
|
10759
|
+
pattern: string;
|
|
10760
|
+
flags?: string;
|
|
10761
|
+
} | string)));
|
|
10762
|
+
});
|
|
10763
|
+
partitionByNewLine?: boolean;
|
|
10764
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10765
|
+
groups?: (string | string[] | {
|
|
10766
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10767
|
+
commentAbove?: string;
|
|
10768
|
+
})[];
|
|
10769
|
+
}[];
|
|
10770
|
+
// ----- perfectionist/sort-object-types -----
|
|
10771
|
+
type PerfectionistSortObjectTypes = {
|
|
10772
|
+
fallbackSort?: {
|
|
10773
|
+
order?: ("asc" | "desc");
|
|
10774
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10775
|
+
sortBy?: ("name" | "value");
|
|
10776
|
+
};
|
|
10777
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10778
|
+
ignoreCase?: boolean;
|
|
10779
|
+
alphabet?: string;
|
|
10780
|
+
locales?: (string | string[]);
|
|
10781
|
+
order?: ("asc" | "desc");
|
|
10782
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10783
|
+
customGroups?: ({
|
|
10784
|
+
[k: string]: (string | string[]) | undefined;
|
|
10785
|
+
} | ({
|
|
10786
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10787
|
+
fallbackSort?: {
|
|
10788
|
+
order?: ("asc" | "desc");
|
|
10789
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10790
|
+
sortBy?: ("name" | "value");
|
|
10791
|
+
};
|
|
10792
|
+
groupName: string;
|
|
10793
|
+
order?: ("asc" | "desc");
|
|
10794
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10795
|
+
anyOf?: {
|
|
10796
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10797
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10798
|
+
elementValuePattern?: (({
|
|
10799
|
+
pattern: string;
|
|
10800
|
+
flags?: string;
|
|
10801
|
+
} | string)[] | ({
|
|
10802
|
+
pattern: string;
|
|
10803
|
+
flags?: string;
|
|
10804
|
+
} | string));
|
|
10805
|
+
elementNamePattern?: (({
|
|
10806
|
+
pattern: string;
|
|
10807
|
+
flags?: string;
|
|
10808
|
+
} | string)[] | ({
|
|
10809
|
+
pattern: string;
|
|
10810
|
+
flags?: string;
|
|
10811
|
+
} | string));
|
|
10812
|
+
sortBy?: ("name" | "value");
|
|
10813
|
+
}[];
|
|
10814
|
+
} | {
|
|
10815
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10816
|
+
fallbackSort?: {
|
|
10817
|
+
order?: ("asc" | "desc");
|
|
10818
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10819
|
+
sortBy?: ("name" | "value");
|
|
10820
|
+
};
|
|
10821
|
+
groupName: string;
|
|
10822
|
+
order?: ("asc" | "desc");
|
|
10823
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10824
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10825
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10826
|
+
elementValuePattern?: (({
|
|
10827
|
+
pattern: string;
|
|
10828
|
+
flags?: string;
|
|
10829
|
+
} | string)[] | ({
|
|
10830
|
+
pattern: string;
|
|
10831
|
+
flags?: string;
|
|
10832
|
+
} | string));
|
|
10833
|
+
elementNamePattern?: (({
|
|
10834
|
+
pattern: string;
|
|
10835
|
+
flags?: string;
|
|
10836
|
+
} | string)[] | ({
|
|
10837
|
+
pattern: string;
|
|
10838
|
+
flags?: string;
|
|
10839
|
+
} | string));
|
|
10840
|
+
sortBy?: ("name" | "value");
|
|
10841
|
+
})[]);
|
|
10842
|
+
groupKind?: ("mixed" | "required-first" | "optional-first");
|
|
10843
|
+
useConfigurationIf?: {
|
|
10844
|
+
allNamesMatchPattern?: (({
|
|
10845
|
+
pattern: string;
|
|
10846
|
+
flags?: string;
|
|
10847
|
+
} | string)[] | ({
|
|
10848
|
+
pattern: string;
|
|
10849
|
+
flags?: string;
|
|
10850
|
+
} | string));
|
|
10851
|
+
declarationMatchesPattern?: (({
|
|
10852
|
+
pattern: string;
|
|
10853
|
+
flags?: string;
|
|
10854
|
+
} | string)[] | ({
|
|
10855
|
+
pattern: string;
|
|
10856
|
+
flags?: string;
|
|
10857
|
+
} | string));
|
|
10858
|
+
};
|
|
10859
|
+
partitionByComment?: (boolean | (({
|
|
10860
|
+
pattern: string;
|
|
10861
|
+
flags?: string;
|
|
10862
|
+
} | string)[] | ({
|
|
10863
|
+
pattern: string;
|
|
10864
|
+
flags?: string;
|
|
10865
|
+
} | string)) | {
|
|
10866
|
+
block?: (boolean | (({
|
|
10867
|
+
pattern: string;
|
|
10868
|
+
flags?: string;
|
|
10869
|
+
} | string)[] | ({
|
|
10870
|
+
pattern: string;
|
|
10871
|
+
flags?: string;
|
|
10872
|
+
} | string)));
|
|
10873
|
+
line?: (boolean | (({
|
|
10874
|
+
pattern: string;
|
|
10875
|
+
flags?: string;
|
|
10876
|
+
} | string)[] | ({
|
|
10877
|
+
pattern: string;
|
|
10878
|
+
flags?: string;
|
|
10879
|
+
} | string)));
|
|
10880
|
+
});
|
|
10881
|
+
partitionByNewLine?: boolean;
|
|
10882
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10883
|
+
ignorePattern?: (({
|
|
10884
|
+
pattern: string;
|
|
10885
|
+
flags?: string;
|
|
10886
|
+
} | string)[] | ({
|
|
10887
|
+
pattern: string;
|
|
10888
|
+
flags?: string;
|
|
10889
|
+
} | string));
|
|
10890
|
+
sortBy?: ("name" | "value");
|
|
10891
|
+
groups?: (string | string[] | {
|
|
10892
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10893
|
+
commentAbove?: string;
|
|
10894
|
+
})[];
|
|
10895
|
+
}[];
|
|
10896
|
+
// ----- perfectionist/sort-objects -----
|
|
10897
|
+
type PerfectionistSortObjects = {
|
|
10898
|
+
fallbackSort?: {
|
|
10899
|
+
order?: ("asc" | "desc");
|
|
10900
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10901
|
+
};
|
|
10902
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10903
|
+
ignoreCase?: boolean;
|
|
10904
|
+
alphabet?: string;
|
|
10905
|
+
locales?: (string | string[]);
|
|
10906
|
+
order?: ("asc" | "desc");
|
|
10907
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10908
|
+
destructuredObjects?: (boolean | {
|
|
10909
|
+
groups?: boolean;
|
|
10910
|
+
});
|
|
10911
|
+
customGroups?: ({
|
|
10912
|
+
[k: string]: (string | string[]) | undefined;
|
|
10913
|
+
} | ({
|
|
10914
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10915
|
+
fallbackSort?: {
|
|
10916
|
+
order?: ("asc" | "desc");
|
|
10917
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10918
|
+
};
|
|
10919
|
+
groupName: string;
|
|
10920
|
+
order?: ("asc" | "desc");
|
|
10921
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10922
|
+
anyOf?: {
|
|
10923
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10924
|
+
selector?: ("member" | "method" | "multiline" | "property");
|
|
10925
|
+
elementValuePattern?: (({
|
|
10926
|
+
pattern: string;
|
|
10927
|
+
flags?: string;
|
|
10928
|
+
} | string)[] | ({
|
|
10929
|
+
pattern: string;
|
|
10930
|
+
flags?: string;
|
|
10931
|
+
} | string));
|
|
10932
|
+
elementNamePattern?: (({
|
|
10933
|
+
pattern: string;
|
|
10934
|
+
flags?: string;
|
|
10935
|
+
} | string)[] | ({
|
|
10936
|
+
pattern: string;
|
|
10937
|
+
flags?: string;
|
|
10938
|
+
} | string));
|
|
10939
|
+
}[];
|
|
10940
|
+
} | {
|
|
10941
|
+
newlinesInside?: (("always" | "never") | number);
|
|
10942
|
+
fallbackSort?: {
|
|
10943
|
+
order?: ("asc" | "desc");
|
|
10944
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10945
|
+
};
|
|
10946
|
+
groupName: string;
|
|
10947
|
+
order?: ("asc" | "desc");
|
|
10948
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10949
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10950
|
+
selector?: ("member" | "method" | "multiline" | "property");
|
|
10951
|
+
elementValuePattern?: (({
|
|
10952
|
+
pattern: string;
|
|
10953
|
+
flags?: string;
|
|
10954
|
+
} | string)[] | ({
|
|
10955
|
+
pattern: string;
|
|
10956
|
+
flags?: string;
|
|
10957
|
+
} | string));
|
|
10958
|
+
elementNamePattern?: (({
|
|
10959
|
+
pattern: string;
|
|
10960
|
+
flags?: string;
|
|
10961
|
+
} | string)[] | ({
|
|
10962
|
+
pattern: string;
|
|
10963
|
+
flags?: string;
|
|
10964
|
+
} | string));
|
|
10965
|
+
})[]);
|
|
10966
|
+
useConfigurationIf?: {
|
|
10967
|
+
allNamesMatchPattern?: (({
|
|
10968
|
+
pattern: string;
|
|
10969
|
+
flags?: string;
|
|
10970
|
+
} | string)[] | ({
|
|
10971
|
+
pattern: string;
|
|
10972
|
+
flags?: string;
|
|
10973
|
+
} | string));
|
|
10974
|
+
callingFunctionNamePattern?: (({
|
|
10975
|
+
pattern: string;
|
|
10976
|
+
flags?: string;
|
|
10977
|
+
} | string)[] | ({
|
|
10978
|
+
pattern: string;
|
|
10979
|
+
flags?: string;
|
|
10980
|
+
} | string));
|
|
10981
|
+
};
|
|
10982
|
+
destructureOnly?: boolean;
|
|
10983
|
+
objectDeclarations?: boolean;
|
|
10984
|
+
styledComponents?: boolean;
|
|
10985
|
+
partitionByComment?: (boolean | (({
|
|
10986
|
+
pattern: string;
|
|
10987
|
+
flags?: string;
|
|
10988
|
+
} | string)[] | ({
|
|
10989
|
+
pattern: string;
|
|
10990
|
+
flags?: string;
|
|
10991
|
+
} | string)) | {
|
|
10992
|
+
block?: (boolean | (({
|
|
10993
|
+
pattern: string;
|
|
10994
|
+
flags?: string;
|
|
10995
|
+
} | string)[] | ({
|
|
10996
|
+
pattern: string;
|
|
10997
|
+
flags?: string;
|
|
10998
|
+
} | string)));
|
|
10999
|
+
line?: (boolean | (({
|
|
11000
|
+
pattern: string;
|
|
11001
|
+
flags?: string;
|
|
11002
|
+
} | string)[] | ({
|
|
11003
|
+
pattern: string;
|
|
11004
|
+
flags?: string;
|
|
11005
|
+
} | string)));
|
|
11006
|
+
});
|
|
11007
|
+
partitionByNewLine?: boolean;
|
|
11008
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11009
|
+
ignorePattern?: (({
|
|
11010
|
+
pattern: string;
|
|
11011
|
+
flags?: string;
|
|
11012
|
+
} | string)[] | ({
|
|
11013
|
+
pattern: string;
|
|
11014
|
+
flags?: string;
|
|
11015
|
+
} | string));
|
|
11016
|
+
groups?: (string | string[] | {
|
|
11017
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11018
|
+
commentAbove?: string;
|
|
11019
|
+
})[];
|
|
11020
|
+
}[];
|
|
11021
|
+
// ----- perfectionist/sort-sets -----
|
|
11022
|
+
type PerfectionistSortSets = {
|
|
11023
|
+
fallbackSort?: {
|
|
11024
|
+
order?: ("asc" | "desc");
|
|
11025
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11026
|
+
};
|
|
11027
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11028
|
+
ignoreCase?: boolean;
|
|
11029
|
+
alphabet?: string;
|
|
11030
|
+
locales?: (string | string[]);
|
|
11031
|
+
order?: ("asc" | "desc");
|
|
11032
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11033
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
11034
|
+
customGroups?: ({
|
|
11035
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11036
|
+
fallbackSort?: {
|
|
11037
|
+
order?: ("asc" | "desc");
|
|
11038
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11039
|
+
};
|
|
11040
|
+
groupName: string;
|
|
11041
|
+
order?: ("asc" | "desc");
|
|
11042
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11043
|
+
anyOf?: {
|
|
11044
|
+
selector?: ("literal" | "spread");
|
|
11045
|
+
elementNamePattern?: (({
|
|
11046
|
+
pattern: string;
|
|
11047
|
+
flags?: string;
|
|
11048
|
+
} | string)[] | ({
|
|
11049
|
+
pattern: string;
|
|
11050
|
+
flags?: string;
|
|
11051
|
+
} | string));
|
|
11052
|
+
}[];
|
|
11053
|
+
} | {
|
|
11054
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11055
|
+
fallbackSort?: {
|
|
11056
|
+
order?: ("asc" | "desc");
|
|
11057
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11058
|
+
};
|
|
11059
|
+
groupName: string;
|
|
11060
|
+
order?: ("asc" | "desc");
|
|
11061
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11062
|
+
selector?: ("literal" | "spread");
|
|
11063
|
+
elementNamePattern?: (({
|
|
11064
|
+
pattern: string;
|
|
11065
|
+
flags?: string;
|
|
11066
|
+
} | string)[] | ({
|
|
11067
|
+
pattern: string;
|
|
11068
|
+
flags?: string;
|
|
11069
|
+
} | string));
|
|
11070
|
+
})[];
|
|
11071
|
+
useConfigurationIf?: {
|
|
11072
|
+
allNamesMatchPattern?: (({
|
|
11073
|
+
pattern: string;
|
|
11074
|
+
flags?: string;
|
|
11075
|
+
} | string)[] | ({
|
|
11076
|
+
pattern: string;
|
|
11077
|
+
flags?: string;
|
|
11078
|
+
} | string));
|
|
11079
|
+
};
|
|
11080
|
+
partitionByComment?: (boolean | (({
|
|
11081
|
+
pattern: string;
|
|
11082
|
+
flags?: string;
|
|
11083
|
+
} | string)[] | ({
|
|
11084
|
+
pattern: string;
|
|
11085
|
+
flags?: string;
|
|
11086
|
+
} | string)) | {
|
|
11087
|
+
block?: (boolean | (({
|
|
11088
|
+
pattern: string;
|
|
11089
|
+
flags?: string;
|
|
11090
|
+
} | string)[] | ({
|
|
11091
|
+
pattern: string;
|
|
11092
|
+
flags?: string;
|
|
11093
|
+
} | string)));
|
|
11094
|
+
line?: (boolean | (({
|
|
11095
|
+
pattern: string;
|
|
11096
|
+
flags?: string;
|
|
11097
|
+
} | string)[] | ({
|
|
11098
|
+
pattern: string;
|
|
11099
|
+
flags?: string;
|
|
11100
|
+
} | string)));
|
|
11101
|
+
});
|
|
11102
|
+
partitionByNewLine?: boolean;
|
|
11103
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11104
|
+
groups?: (string | string[] | {
|
|
11105
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11106
|
+
commentAbove?: string;
|
|
11107
|
+
})[];
|
|
11108
|
+
}[];
|
|
11109
|
+
// ----- perfectionist/sort-switch-case -----
|
|
11110
|
+
type PerfectionistSortSwitchCase = [] | [{
|
|
11111
|
+
fallbackSort?: {
|
|
11112
|
+
order?: ("asc" | "desc");
|
|
11113
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11114
|
+
};
|
|
11115
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11116
|
+
ignoreCase?: boolean;
|
|
11117
|
+
alphabet?: string;
|
|
11118
|
+
locales?: (string | string[]);
|
|
11119
|
+
order?: ("asc" | "desc");
|
|
11120
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11121
|
+
}];
|
|
11122
|
+
// ----- perfectionist/sort-union-types -----
|
|
11123
|
+
type PerfectionistSortUnionTypes = {
|
|
11124
|
+
fallbackSort?: {
|
|
11125
|
+
order?: ("asc" | "desc");
|
|
11126
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11127
|
+
};
|
|
11128
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11129
|
+
ignoreCase?: boolean;
|
|
11130
|
+
alphabet?: string;
|
|
11131
|
+
locales?: (string | string[]);
|
|
11132
|
+
order?: ("asc" | "desc");
|
|
11133
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11134
|
+
customGroups?: ({
|
|
11135
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11136
|
+
fallbackSort?: {
|
|
11137
|
+
order?: ("asc" | "desc");
|
|
11138
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11139
|
+
};
|
|
11140
|
+
groupName: string;
|
|
11141
|
+
order?: ("asc" | "desc");
|
|
11142
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11143
|
+
anyOf?: {
|
|
11144
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11145
|
+
elementNamePattern?: (({
|
|
11146
|
+
pattern: string;
|
|
11147
|
+
flags?: string;
|
|
11148
|
+
} | string)[] | ({
|
|
11149
|
+
pattern: string;
|
|
11150
|
+
flags?: string;
|
|
11151
|
+
} | string));
|
|
11152
|
+
}[];
|
|
11153
|
+
} | {
|
|
11154
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11155
|
+
fallbackSort?: {
|
|
11156
|
+
order?: ("asc" | "desc");
|
|
11157
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11158
|
+
};
|
|
11159
|
+
groupName: string;
|
|
11160
|
+
order?: ("asc" | "desc");
|
|
11161
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11162
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11163
|
+
elementNamePattern?: (({
|
|
11164
|
+
pattern: string;
|
|
11165
|
+
flags?: string;
|
|
11166
|
+
} | string)[] | ({
|
|
11167
|
+
pattern: string;
|
|
11168
|
+
flags?: string;
|
|
11169
|
+
} | string));
|
|
11170
|
+
})[];
|
|
11171
|
+
partitionByComment?: (boolean | (({
|
|
11172
|
+
pattern: string;
|
|
11173
|
+
flags?: string;
|
|
11174
|
+
} | string)[] | ({
|
|
11175
|
+
pattern: string;
|
|
11176
|
+
flags?: string;
|
|
11177
|
+
} | string)) | {
|
|
11178
|
+
block?: (boolean | (({
|
|
11179
|
+
pattern: string;
|
|
11180
|
+
flags?: string;
|
|
11181
|
+
} | string)[] | ({
|
|
11182
|
+
pattern: string;
|
|
11183
|
+
flags?: string;
|
|
11184
|
+
} | string)));
|
|
11185
|
+
line?: (boolean | (({
|
|
11186
|
+
pattern: string;
|
|
11187
|
+
flags?: string;
|
|
11188
|
+
} | string)[] | ({
|
|
11189
|
+
pattern: string;
|
|
11190
|
+
flags?: string;
|
|
11191
|
+
} | string)));
|
|
11192
|
+
});
|
|
11193
|
+
partitionByNewLine?: boolean;
|
|
11194
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11195
|
+
groups?: (string | string[] | {
|
|
11196
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11197
|
+
commentAbove?: string;
|
|
11198
|
+
})[];
|
|
11199
|
+
}[];
|
|
11200
|
+
// ----- perfectionist/sort-variable-declarations -----
|
|
11201
|
+
type PerfectionistSortVariableDeclarations = [] | [{
|
|
11202
|
+
fallbackSort?: {
|
|
11203
|
+
order?: ("asc" | "desc");
|
|
11204
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11205
|
+
};
|
|
11206
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11207
|
+
ignoreCase?: boolean;
|
|
11208
|
+
alphabet?: string;
|
|
11209
|
+
locales?: (string | string[]);
|
|
11210
|
+
order?: ("asc" | "desc");
|
|
11211
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11212
|
+
customGroups?: ({
|
|
11213
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11214
|
+
fallbackSort?: {
|
|
11215
|
+
order?: ("asc" | "desc");
|
|
11216
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11217
|
+
};
|
|
11218
|
+
groupName: string;
|
|
11219
|
+
order?: ("asc" | "desc");
|
|
11220
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11221
|
+
anyOf?: {
|
|
11222
|
+
selector?: ("initialized" | "uninitialized");
|
|
11223
|
+
elementNamePattern?: (({
|
|
11224
|
+
pattern: string;
|
|
11225
|
+
flags?: string;
|
|
11226
|
+
} | string)[] | ({
|
|
11227
|
+
pattern: string;
|
|
11228
|
+
flags?: string;
|
|
11229
|
+
} | string));
|
|
11230
|
+
}[];
|
|
11231
|
+
} | {
|
|
11232
|
+
newlinesInside?: (("always" | "never") | number);
|
|
11233
|
+
fallbackSort?: {
|
|
11234
|
+
order?: ("asc" | "desc");
|
|
11235
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11236
|
+
};
|
|
11237
|
+
groupName: string;
|
|
11238
|
+
order?: ("asc" | "desc");
|
|
11239
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11240
|
+
selector?: ("initialized" | "uninitialized");
|
|
11241
|
+
elementNamePattern?: (({
|
|
11242
|
+
pattern: string;
|
|
11243
|
+
flags?: string;
|
|
11244
|
+
} | string)[] | ({
|
|
11245
|
+
pattern: string;
|
|
11246
|
+
flags?: string;
|
|
11247
|
+
} | string));
|
|
11248
|
+
})[];
|
|
11249
|
+
partitionByComment?: (boolean | (({
|
|
11250
|
+
pattern: string;
|
|
11251
|
+
flags?: string;
|
|
11252
|
+
} | string)[] | ({
|
|
11253
|
+
pattern: string;
|
|
11254
|
+
flags?: string;
|
|
11255
|
+
} | string)) | {
|
|
11256
|
+
block?: (boolean | (({
|
|
11257
|
+
pattern: string;
|
|
11258
|
+
flags?: string;
|
|
11259
|
+
} | string)[] | ({
|
|
11260
|
+
pattern: string;
|
|
11261
|
+
flags?: string;
|
|
11262
|
+
} | string)));
|
|
11263
|
+
line?: (boolean | (({
|
|
11264
|
+
pattern: string;
|
|
11265
|
+
flags?: string;
|
|
11266
|
+
} | string)[] | ({
|
|
11267
|
+
pattern: string;
|
|
11268
|
+
flags?: string;
|
|
11269
|
+
} | string)));
|
|
11270
|
+
});
|
|
11271
|
+
partitionByNewLine?: boolean;
|
|
11272
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11273
|
+
groups?: (string | string[] | {
|
|
11274
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11275
|
+
commentAbove?: string;
|
|
11276
|
+
})[];
|
|
11277
|
+
}];
|
|
11278
|
+
// ----- pnpm/json-enforce-catalog -----
|
|
11279
|
+
type PnpmJsonEnforceCatalog = [] | [{
|
|
11280
|
+
allowedProtocols?: string[];
|
|
11281
|
+
autofix?: boolean;
|
|
11282
|
+
defaultCatalog?: string;
|
|
11283
|
+
reuseExistingCatalog?: boolean;
|
|
11284
|
+
conflicts?: ("new-catalog" | "overrides" | "error");
|
|
11285
|
+
fields?: string[];
|
|
11286
|
+
ignores?: string[];
|
|
11287
|
+
}];
|
|
11288
|
+
// ----- pnpm/json-prefer-workspace-settings -----
|
|
11289
|
+
type PnpmJsonPreferWorkspaceSettings = [] | [{
|
|
11290
|
+
autofix?: boolean;
|
|
11291
|
+
}];
|
|
11292
|
+
// ----- pnpm/json-valid-catalog -----
|
|
11293
|
+
type PnpmJsonValidCatalog = [] | [{
|
|
11294
|
+
autoInsert?: boolean;
|
|
11295
|
+
autoInsertDefaultSpecifier?: string;
|
|
11296
|
+
autofix?: boolean;
|
|
11297
|
+
enforceNoConflict?: boolean;
|
|
11298
|
+
fields?: unknown[];
|
|
11299
|
+
}];
|
|
11300
|
+
// ----- pnpm/yaml-no-duplicate-catalog-item -----
|
|
11301
|
+
type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
11302
|
+
allow?: string[];
|
|
11303
|
+
}];
|
|
9153
11304
|
// ----- prefer-arrow-callback -----
|
|
9154
11305
|
type PreferArrowCallback = [] | [{
|
|
9155
11306
|
allowNamedFunctions?: boolean;
|
|
@@ -13555,7 +15706,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
13555
15706
|
onlyEquality?: boolean;
|
|
13556
15707
|
}];
|
|
13557
15708
|
// 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';
|
|
15709
|
+
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
15710
|
//#endregion
|
|
13560
15711
|
//#region src/types.d.ts
|
|
13561
15712
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -13674,7 +15825,13 @@ interface Options extends OptionsComponentExts {
|
|
|
13674
15825
|
*
|
|
13675
15826
|
* @default true
|
|
13676
15827
|
*/
|
|
13677
|
-
formatting?: boolean
|
|
15828
|
+
formatting?: boolean;
|
|
15829
|
+
/**
|
|
15830
|
+
* Enable perfectionist rules.
|
|
15831
|
+
*
|
|
15832
|
+
* @default true
|
|
15833
|
+
*/
|
|
15834
|
+
perfectionist?: boolean;
|
|
13678
15835
|
/**
|
|
13679
15836
|
* Provide overrides for rules for each integration.
|
|
13680
15837
|
*
|
|
@@ -13733,6 +15890,9 @@ declare const node: () => TypedFlatConfigItem[];
|
|
|
13733
15890
|
//#region src/configs/only-error.d.ts
|
|
13734
15891
|
declare const onlyError: () => TypedFlatConfigItem[];
|
|
13735
15892
|
//#endregion
|
|
15893
|
+
//#region src/configs/perfectionist.d.ts
|
|
15894
|
+
declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
|
|
15895
|
+
//#endregion
|
|
13736
15896
|
//#region src/configs/pnpm.d.ts
|
|
13737
15897
|
declare function pnpm(): Promise<TypedFlatConfigItem[]>;
|
|
13738
15898
|
//#endregion
|
|
@@ -13781,9 +15941,9 @@ declare function yaml({
|
|
|
13781
15941
|
//#endregion
|
|
13782
15942
|
//#region src/factory.d.ts
|
|
13783
15943
|
declare const defaultPluginRenaming: {
|
|
15944
|
+
"@html-eslint": string;
|
|
13784
15945
|
"@stylistic": string;
|
|
13785
15946
|
"@typescript-eslint": string;
|
|
13786
|
-
"@html-eslint": string;
|
|
13787
15947
|
"import-x": string;
|
|
13788
15948
|
n: string;
|
|
13789
15949
|
yml: string;
|
|
@@ -13854,4 +16014,4 @@ declare function interopDefault<T>(m: MaybePromise<T>): Promise<T extends {
|
|
|
13854
16014
|
default: infer U;
|
|
13855
16015
|
} ? U : T>;
|
|
13856
16016
|
//#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 };
|
|
16017
|
+
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 };
|