@biscuittin/eslint-config 0.4.12 → 0.4.13

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.mts CHANGED
@@ -51,102 +51,102 @@ interface RuleOptions {
51
51
  */
52
52
  '@eslint-community/eslint-comments/require-description'?: Linter.RuleEntry<EslintCommunityEslintCommentsRequireDescription>;
53
53
  /**
54
- * Disallow `dangerouslySetInnerHTML`.
54
+ * Disallows 'dangerouslySetInnerHTML'.
55
55
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
56
56
  */
57
57
  '@eslint-react/dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>;
58
58
  /**
59
- * Disallow `dangerouslySetInnerHTML` and `children` at the same time.
59
+ * Disallows 'dangerouslySetInnerHTML' and 'children' at the same time.
60
60
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
61
61
  */
62
62
  '@eslint-react/dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>;
63
63
  /**
64
- * Disallow `findDOMNode`.
64
+ * Disallows 'findDOMNode'.
65
65
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
66
66
  */
67
67
  '@eslint-react/dom/no-find-dom-node'?: Linter.RuleEntry<[]>;
68
68
  /**
69
- * Disallow `flushSync`.
69
+ * Disallows 'flushSync'.
70
70
  * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
71
71
  */
72
72
  '@eslint-react/dom/no-flush-sync'?: Linter.RuleEntry<[]>;
73
73
  /**
74
- * Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.
74
+ * Replaces usage of 'ReactDom.hydrate()' with 'hydrateRoot()'.
75
75
  * @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
76
76
  */
77
77
  '@eslint-react/dom/no-hydrate'?: Linter.RuleEntry<[]>;
78
78
  /**
79
- * Enforces explicit `type` attribute for `button` elements.
79
+ * Enforces explicit 'type' attribute for 'button' elements.
80
80
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
81
81
  */
82
82
  '@eslint-react/dom/no-missing-button-type'?: Linter.RuleEntry<[]>;
83
83
  /**
84
- * Enforces explicit `sandbox` prop for `iframe` elements.
84
+ * Enforces explicit 'sandbox' attribute for 'iframe' elements.
85
85
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
86
86
  */
87
87
  '@eslint-react/dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>;
88
88
  /**
89
- * Enforces the absence of a `namespace` in React elements.
89
+ * Enforces the absence of a 'namespace' in React elements.
90
90
  * @see https://eslint-react.xyz/docs/rules/dom-no-namespace
91
91
  */
92
92
  '@eslint-react/dom/no-namespace'?: Linter.RuleEntry<[]>;
93
93
  /**
94
- * Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.
94
+ * Replaces usage of 'ReactDom.render()' with 'createRoot(node).render()'.
95
95
  * @see https://eslint-react.xyz/docs/rules/dom-no-render
96
96
  */
97
97
  '@eslint-react/dom/no-render'?: Linter.RuleEntry<[]>;
98
98
  /**
99
- * Disallow the return value of `ReactDOM.render`.
99
+ * Disallows the return value of 'ReactDOM.render'.
100
100
  * @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
101
101
  */
102
102
  '@eslint-react/dom/no-render-return-value'?: Linter.RuleEntry<[]>;
103
103
  /**
104
- * Disallow `javascript:` URLs as attribute values.
104
+ * Disallows 'javascript:' URLs as attribute values.
105
105
  * @see https://eslint-react.xyz/docs/rules/dom-no-script-url
106
106
  */
107
107
  '@eslint-react/dom/no-script-url'?: Linter.RuleEntry<[]>;
108
108
  /**
109
- * Disallows the use of string style prop.
109
+ * Disallows the use of string style prop in JSX. Use an object instead.
110
110
  * @see https://eslint-react.xyz/docs/rules/dom-no-string-style-prop
111
111
  */
112
112
  '@eslint-react/dom/no-string-style-prop'?: Linter.RuleEntry<[]>;
113
113
  /**
114
- * Disallow unknown `DOM` property.
114
+ * Disallows unknown 'DOM' property.
115
115
  * @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
116
116
  */
117
117
  '@eslint-react/dom/no-unknown-property'?: Linter.RuleEntry<EslintReactDomNoUnknownProperty>;
118
118
  /**
119
- * Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.
119
+ * Enforces 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.
120
120
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
121
121
  */
122
122
  '@eslint-react/dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>;
123
123
  /**
124
- * Disallow `target="_blank"` without `rel="noreferrer noopener"`.
124
+ * Disallows 'target="_blank"' without 'rel="noreferrer noopener"'.
125
125
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
126
126
  */
127
127
  '@eslint-react/dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>;
128
128
  /**
129
- * Replaces usages of `useFormState` with `useActionState`.
129
+ * Replaces usage of 'useFormState' with 'useActionState'.
130
130
  * @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
131
131
  */
132
132
  '@eslint-react/dom/no-use-form-state'?: Linter.RuleEntry<[]>;
133
133
  /**
134
- * Disallow `children` in void DOM elements.
134
+ * Disallows 'children' in void DOM elements.
135
135
  * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
136
136
  */
137
137
  '@eslint-react/dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>;
138
138
  /**
139
- * Enforces React Dom is imported via a namespace import.
139
+ * Enforces React DOM is imported via a namespace import.
140
140
  * @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
141
141
  */
142
142
  '@eslint-react/dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
143
143
  /**
144
- * Disallow direct calls to the `set` function of `useState` in `useEffect`.
144
+ * Disallows **direct** calls to the 'set' function of 'useState' in 'useEffect'.
145
145
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
146
146
  */
147
147
  '@eslint-react/hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>;
148
148
  /**
149
- * Prevents dollar signs from being inserted as text nodes before expressions.
149
+ * Prevents unnecessary dollar signs ('$') from being inserted before an expression in JSX.
150
150
  * @see https://eslint-react.xyz/docs/rules/jsx-dollar
151
151
  */
152
152
  '@eslint-react/jsx-dollar'?: Linter.RuleEntry<[]>;
@@ -156,37 +156,37 @@ interface RuleOptions {
156
156
  */
157
157
  '@eslint-react/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
158
158
  /**
159
- * Prevents comments from being inserted as text nodes.
159
+ * Prevents comment strings (e.g., beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes.
160
160
  * @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
161
161
  */
162
162
  '@eslint-react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
163
163
  /**
164
- * Disallow duplicate props in JSX elements.
164
+ * Disallows duplicate props in JSX elements.
165
165
  * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
166
166
  */
167
167
  '@eslint-react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
168
168
  /**
169
- * Disallows 'IIFE' in JSX elements.
169
+ * Disallows 'IIFE' in JSX.
170
170
  * @see https://eslint-react.xyz/docs/rules/jsx-no-iife
171
171
  */
172
172
  '@eslint-react/jsx-no-iife'?: Linter.RuleEntry<[]>;
173
173
  /**
174
- * Disallow undefined variables in JSX.
174
+ * Prevents using variables in JSX that are not defined in the scope.
175
175
  * @see https://eslint-react.xyz/docs/rules/jsx-no-undef
176
176
  */
177
177
  '@eslint-react/jsx-no-undef'?: Linter.RuleEntry<[]>;
178
178
  /**
179
- * Enforces shorthand syntax for boolean attributes.
179
+ * Enforces the use of shorthand syntax for boolean attributes.
180
180
  * @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
181
181
  */
182
182
  '@eslint-react/jsx-shorthand-boolean'?: Linter.RuleEntry<EslintReactJsxShorthandBoolean>;
183
183
  /**
184
- * Enforces shorthand syntax for fragments.
184
+ * Enforces the use of shorthand syntax for fragments.
185
185
  * @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
186
186
  */
187
187
  '@eslint-react/jsx-shorthand-fragment'?: Linter.RuleEntry<EslintReactJsxShorthandFragment>;
188
188
  /**
189
- * Marks React variables as used when JSX is used.
189
+ * Marks React variables as used when JSX is present.
190
190
  * @see https://eslint-react.xyz/docs/rules/jsx-uses-react
191
191
  */
192
192
  '@eslint-react/jsx-uses-react'?: Linter.RuleEntry<[]>;
@@ -201,7 +201,7 @@ interface RuleOptions {
201
201
  */
202
202
  '@eslint-react/naming-convention/component-name'?: Linter.RuleEntry<EslintReactNamingConventionComponentName>;
203
203
  /**
204
- * Enforces context name to be a valid component name with the suffix `Context`.
204
+ * Enforces the context name to be a valid component name with the suffix 'Context'.
205
205
  * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
206
206
  */
207
207
  '@eslint-react/naming-convention/context-name'?: Linter.RuleEntry<[]>;
@@ -211,118 +211,123 @@ interface RuleOptions {
211
211
  */
212
212
  '@eslint-react/naming-convention/filename'?: Linter.RuleEntry<EslintReactNamingConventionFilename>;
213
213
  /**
214
- * Enforces consistent file naming conventions.
214
+ * Enforces consistent use of the JSX file extension.
215
215
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
216
216
  */
217
217
  '@eslint-react/naming-convention/filename-extension'?: Linter.RuleEntry<EslintReactNamingConventionFilenameExtension>;
218
218
  /**
219
- * Enforces destructuring and symmetric naming of `useState` hook value and setter.
219
+ * Enforces that variables assigned from useRef calls have names ending with 'Ref'.
220
+ * @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
221
+ */
222
+ '@eslint-react/naming-convention/ref-name'?: Linter.RuleEntry<[]>;
223
+ /**
224
+ * Enforces destructuring and symmetric naming of the 'useState' hook value and setter.
220
225
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
221
226
  */
222
- '@eslint-react/naming-convention/use-state'?: Linter.RuleEntry<[]>;
227
+ '@eslint-react/naming-convention/use-state'?: Linter.RuleEntry<EslintReactNamingConventionUseState>;
223
228
  /**
224
- * Disallow accessing `this.state` inside `setState` calls.
229
+ * Disallows accessing 'this.state' inside 'setState' calls.
225
230
  * @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
226
231
  */
227
232
  '@eslint-react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>;
228
233
  /**
229
- * Disallow an item's index in the array as its key.
234
+ * Disallows using an item's index in the array as its key.
230
235
  * @see https://eslint-react.xyz/docs/rules/no-array-index-key
231
236
  */
232
237
  '@eslint-react/no-array-index-key'?: Linter.RuleEntry<[]>;
233
238
  /**
234
- * Disallow `Children.count`.
239
+ * Disallows the use of 'Children.count' from the 'react' package.
235
240
  * @see https://eslint-react.xyz/docs/rules/no-children-count
236
241
  */
237
242
  '@eslint-react/no-children-count'?: Linter.RuleEntry<[]>;
238
243
  /**
239
- * Disallow 'Children.forEach'.
244
+ * Disallows the use of 'Children.forEach' from the 'react' package.
240
245
  * @see https://eslint-react.xyz/docs/rules/no-children-for-each
241
246
  */
242
247
  '@eslint-react/no-children-for-each'?: Linter.RuleEntry<[]>;
243
248
  /**
244
- * Disallow `Children.map`.
249
+ * Disallows the use of 'Children.map' from the 'react' package.
245
250
  * @see https://eslint-react.xyz/docs/rules/no-children-map
246
251
  */
247
252
  '@eslint-react/no-children-map'?: Linter.RuleEntry<[]>;
248
253
  /**
249
- * Disallow `Children.only`.
254
+ * Disallows the use of 'Children.only' from the 'react' package.
250
255
  * @see https://eslint-react.xyz/docs/rules/no-children-only
251
256
  */
252
257
  '@eslint-react/no-children-only'?: Linter.RuleEntry<[]>;
253
258
  /**
254
- * Disallow passing `children` as a prop.
259
+ * Disallows passing 'children' as a prop.
255
260
  * @see https://eslint-react.xyz/docs/rules/no-children-prop
256
261
  */
257
262
  '@eslint-react/no-children-prop'?: Linter.RuleEntry<[]>;
258
263
  /**
259
- * Disallow `Children.toArray`.
264
+ * Disallows the use of 'Children.toArray' from the 'react' package.
260
265
  * @see https://eslint-react.xyz/docs/rules/no-children-to-array
261
266
  */
262
267
  '@eslint-react/no-children-to-array'?: Linter.RuleEntry<[]>;
263
268
  /**
264
- * Disallow class components except for error boundaries.
269
+ * Disallows class components except for error boundaries.
265
270
  * @see https://eslint-react.xyz/docs/rules/no-class-component
266
271
  */
267
272
  '@eslint-react/no-class-component'?: Linter.RuleEntry<[]>;
268
273
  /**
269
- * Disallow `cloneElement`.
274
+ * Disallows 'cloneElement'.
270
275
  * @see https://eslint-react.xyz/docs/rules/no-clone-element
271
276
  */
272
277
  '@eslint-react/no-clone-element'?: Linter.RuleEntry<[]>;
273
278
  /**
274
- * Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.
279
+ * Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'.
275
280
  * @see https://eslint-react.xyz/docs/rules/no-component-will-mount
276
281
  */
277
282
  '@eslint-react/no-component-will-mount'?: Linter.RuleEntry<[]>;
278
283
  /**
279
- * Replace usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.
284
+ * Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'.
280
285
  * @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
281
286
  */
282
287
  '@eslint-react/no-component-will-receive-props'?: Linter.RuleEntry<[]>;
283
288
  /**
284
- * Replace usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`.
289
+ * Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'.
285
290
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
286
291
  */
287
292
  '@eslint-react/no-component-will-update'?: Linter.RuleEntry<[]>;
288
293
  /**
289
- * Replace usages of `<Context.Provider>` with `<Context>`.
294
+ * Replaces usage of '<Context.Provider>' with '<Context>'.
290
295
  * @see https://eslint-react.xyz/docs/rules/no-context-provider
291
296
  */
292
297
  '@eslint-react/no-context-provider'?: Linter.RuleEntry<[]>;
293
298
  /**
294
- * Disallow `createRef` in function components.
299
+ * Disallows 'createRef' in function components.
295
300
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
296
301
  */
297
302
  '@eslint-react/no-create-ref'?: Linter.RuleEntry<[]>;
298
303
  /**
299
- * Disallow `defaultProps` property in favor of ES6 default parameters.
304
+ * Disallows the 'defaultProps' property in favor of ES6 default parameters.
300
305
  * @see https://eslint-react.xyz/docs/rules/no-default-props
301
306
  */
302
307
  '@eslint-react/no-default-props'?: Linter.RuleEntry<[]>;
303
308
  /**
304
- * Disallow direct mutation of `this.state`.
309
+ * Disallows direct mutation of 'this.state'.
305
310
  * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
306
311
  */
307
312
  '@eslint-react/no-direct-mutation-state'?: Linter.RuleEntry<[]>;
308
313
  /**
309
- * Disallow duplicate `key` on elements in the same array or a list of `children`.
314
+ * Disallows duplicate 'key' on elements in the same array or a list of 'children'.
310
315
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
311
316
  */
312
317
  '@eslint-react/no-duplicate-key'?: Linter.RuleEntry<[]>;
313
318
  /**
314
- * Disallow certain props on components.
319
+ * Disallows certain props on components.
315
320
  * @see https://eslint-react.xyz/docs/rules/no-forbidden-props
316
321
  * @deprecated
317
322
  */
318
323
  '@eslint-react/no-forbidden-props'?: Linter.RuleEntry<EslintReactNoForbiddenProps>;
319
324
  /**
320
- * Replaces usages of `forwardRef` with passing `ref` as a prop.
325
+ * Replaces usage of 'forwardRef' with passing 'ref' as a prop.
321
326
  * @see https://eslint-react.xyz/docs/rules/no-forward-ref
322
327
  */
323
328
  '@eslint-react/no-forward-ref'?: Linter.RuleEntry<[]>;
324
329
  /**
325
- * Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).
330
+ * Prevents 'key' from not being explicitly specified (e.g., spreading 'key' from objects).
326
331
  * @see https://eslint-react.xyz/docs/rules/no-implicit-key
327
332
  */
328
333
  '@eslint-react/no-implicit-key'?: Linter.RuleEntry<[]>;
@@ -332,57 +337,57 @@ interface RuleOptions {
332
337
  */
333
338
  '@eslint-react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
334
339
  /**
335
- * Enforces that all components have a `displayName` which can be used in devtools.
340
+ * Enforces that all components have a 'displayName' that can be used in devtools.
336
341
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
337
342
  */
338
343
  '@eslint-react/no-missing-component-display-name'?: Linter.RuleEntry<[]>;
339
344
  /**
340
- * Enforces that all contexts have a `displayName` which can be used in devtools.
345
+ * Enforces that all contexts have a 'displayName' that can be used in devtools.
341
346
  * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
342
347
  */
343
348
  '@eslint-react/no-missing-context-display-name'?: Linter.RuleEntry<[]>;
344
349
  /**
345
- * Disallow missing `key` on items in list rendering.
350
+ * Disallows missing 'key' on items in list rendering.
346
351
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
347
352
  */
348
353
  '@eslint-react/no-missing-key'?: Linter.RuleEntry<[]>;
349
354
  /**
350
- * Prevents incorrect usage of `captureOwnerStack`.
355
+ * Prevents incorrect usage of 'captureOwnerStack'.
351
356
  * @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
352
357
  */
353
358
  '@eslint-react/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>;
354
359
  /**
355
- * Disallow nesting component definitions inside other components.
360
+ * Disallows nesting component definitions inside other components.
356
361
  * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
357
362
  */
358
363
  '@eslint-react/no-nested-component-definitions'?: Linter.RuleEntry<[]>;
359
364
  /**
360
- * Disallow nesting lazy component declarations inside other components.
365
+ * Disallows nesting lazy component declarations inside other components.
361
366
  * @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
362
367
  */
363
368
  '@eslint-react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
364
369
  /**
365
- * Disallow `propTypes` in favor of TypeScript or another type-checking solution.
370
+ * Disallows 'propTypes' in favor of TypeScript or another type-checking solution.
366
371
  * @see https://eslint-react.xyz/docs/rules/no-prop-types
367
372
  */
368
373
  '@eslint-react/no-prop-types'?: Linter.RuleEntry<[]>;
369
374
  /**
370
- * Disallow `shouldComponentUpdate` when extending `React.PureComponent`.
375
+ * Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'.
371
376
  * @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
372
377
  */
373
378
  '@eslint-react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>;
374
379
  /**
375
- * Disallow calling `this.setState` in `componentDidMount` outside of functions, such as callbacks.
380
+ * Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks.
376
381
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
377
382
  */
378
383
  '@eslint-react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>;
379
384
  /**
380
- * Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
385
+ * Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks.
381
386
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
382
387
  */
383
388
  '@eslint-react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>;
384
389
  /**
385
- * Disallow calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.
390
+ * Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks.
386
391
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
387
392
  */
388
393
  '@eslint-react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>;
@@ -392,42 +397,42 @@ interface RuleOptions {
392
397
  */
393
398
  '@eslint-react/no-string-refs'?: Linter.RuleEntry<[]>;
394
399
  /**
395
- * Prevents the use of unnecessary `key` props on JSX elements when rendering lists.
400
+ * Prevents 'key' from being placed on non-top-level elements in list rendering.
396
401
  * @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
397
402
  */
398
403
  '@eslint-react/no-unnecessary-key'?: Linter.RuleEntry<[]>;
399
404
  /**
400
- * Disallow unnecessary usage of `useCallback`.
405
+ * Disallows unnecessary usage of 'useCallback'.
401
406
  * @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
402
407
  */
403
408
  '@eslint-react/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
404
409
  /**
405
- * Disallow unnecessary usage of `useMemo`.
410
+ * Disallows unnecessary usage of 'useMemo'.
406
411
  * @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-memo
407
412
  */
408
413
  '@eslint-react/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
409
414
  /**
410
- * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
415
+ * Enforces that a function with the 'use' prefix uses at least one Hook inside it.
411
416
  * @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
412
417
  */
413
418
  '@eslint-react/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>;
414
419
  /**
415
- * Warns the usage of `UNSAFE_componentWillMount` in class components.
420
+ * Warns about the use of 'UNSAFE_componentWillMount' in class components.
416
421
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
417
422
  */
418
423
  '@eslint-react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>;
419
424
  /**
420
- * Warns the usage of `UNSAFE_componentWillReceiveProps` in class components.
425
+ * Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components.
421
426
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
422
427
  */
423
428
  '@eslint-react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>;
424
429
  /**
425
- * Warns the usage of `UNSAFE_componentWillUpdate` in class components.
430
+ * Warns about the use of 'UNSAFE_componentWillUpdate' in class components.
426
431
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
427
432
  */
428
433
  '@eslint-react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
429
434
  /**
430
- * Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`.
435
+ * Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
431
436
  * @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
432
437
  */
433
438
  '@eslint-react/no-unstable-context-value'?: Linter.RuleEntry<[]>;
@@ -437,32 +442,32 @@ interface RuleOptions {
437
442
  */
438
443
  '@eslint-react/no-unstable-default-props'?: Linter.RuleEntry<EslintReactNoUnstableDefaultProps>;
439
444
  /**
440
- * Warns unused class component methods and properties.
445
+ * Warns about unused class component methods and properties.
441
446
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
442
447
  */
443
448
  '@eslint-react/no-unused-class-component-members'?: Linter.RuleEntry<[]>;
444
449
  /**
445
- * Warns component props that are defined but never used.
450
+ * Warns about component props that are defined but never used.
446
451
  * @see https://eslint-react.xyz/docs/rules/no-unused-props
447
452
  */
448
453
  '@eslint-react/no-unused-props'?: Linter.RuleEntry<[]>;
449
454
  /**
450
- * Warns unused class component state.
455
+ * Warns about unused class component state.
451
456
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
452
457
  */
453
458
  '@eslint-react/no-unused-state'?: Linter.RuleEntry<[]>;
454
459
  /**
455
- * Replaces usages of `useContext` with `use`.
460
+ * Replaces usage of 'useContext' with 'use'.
456
461
  * @see https://eslint-react.xyz/docs/rules/no-use-context
457
462
  */
458
463
  '@eslint-react/no-use-context'?: Linter.RuleEntry<[]>;
459
464
  /**
460
- * Disallow useless `forwardRef` calls on components that don't use `ref`s.
465
+ * Disallows useless 'forwardRef' calls on components that don't use 'ref's.
461
466
  * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
462
467
  */
463
468
  '@eslint-react/no-useless-forward-ref'?: Linter.RuleEntry<[]>;
464
469
  /**
465
- * Disallow useless fragment elements.
470
+ * Disallows useless fragment elements.
466
471
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
467
472
  */
468
473
  '@eslint-react/no-useless-fragment'?: Linter.RuleEntry<EslintReactNoUselessFragment>;
@@ -472,7 +477,7 @@ interface RuleOptions {
472
477
  */
473
478
  '@eslint-react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
474
479
  /**
475
- * Enforces React is imported via a namespace import.
480
+ * Enforces importing React via a namespace import.
476
481
  * @see https://eslint-react.xyz/docs/rules/prefer-namespace-import
477
482
  */
478
483
  '@eslint-react/prefer-namespace-import'?: Linter.RuleEntry<[]>;
@@ -482,27 +487,27 @@ interface RuleOptions {
482
487
  */
483
488
  '@eslint-react/prefer-read-only-props'?: Linter.RuleEntry<[]>;
484
489
  /**
485
- * Enforces function calls made inside `useState` to be wrapped in an `initializer function`.
490
+ * Enforces wrapping function calls made inside 'useState' in an 'initializer function'.
486
491
  * @see https://eslint-react.xyz/docs/rules/prefer-use-state-lazy-initialization
487
492
  */
488
493
  '@eslint-react/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>;
489
494
  /**
490
- * Prevents leaked `addEventListener` in a component or custom Hook.
495
+ * Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.
491
496
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
492
497
  */
493
498
  '@eslint-react/web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>;
494
499
  /**
495
- * Prevents leaked `setInterval` in a component or custom Hook.
500
+ * Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
496
501
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
497
502
  */
498
503
  '@eslint-react/web-api/no-leaked-interval'?: Linter.RuleEntry<[]>;
499
504
  /**
500
- * Prevents leaked `ResizeObserver` in a component or custom Hook.
505
+ * Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'.
501
506
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
502
507
  */
503
508
  '@eslint-react/web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>;
504
509
  /**
505
- * Prevents leaked `setTimeout` in a component or custom Hook.
510
+ * Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'.
506
511
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
507
512
  */
508
513
  '@eslint-react/web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
@@ -6293,6 +6298,11 @@ type EslintReactNamingConventionFilenameExtension = [] | [(("always" | "as-neede
6293
6298
  extensions?: string[];
6294
6299
  ignoreFilesWithoutCode?: boolean;
6295
6300
  })];
6301
+ // ----- @eslint-react/naming-convention/use-state -----
6302
+ type EslintReactNamingConventionUseState = [] | [{
6303
+ enforceAssignment?: boolean;
6304
+ enforceSetterName?: boolean;
6305
+ }];
6296
6306
  // ----- @eslint-react/no-forbidden-props -----
6297
6307
  type EslintReactNoForbiddenProps = [] | [{
6298
6308
  forbid?: (string | {
@@ -12174,9 +12184,18 @@ type PerfectionistSortArrayIncludes = {
12174
12184
  };
12175
12185
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12176
12186
  groupName: string;
12177
- newlinesInside?: number;
12187
+ newlinesInside?: ("ignore" | number);
12178
12188
  order?: ("asc" | "desc");
12179
- anyOf: {
12189
+ anyOf: [{
12190
+ elementNamePattern?: (({
12191
+ pattern: string;
12192
+ flags?: string;
12193
+ } | string)[] | ({
12194
+ pattern: string;
12195
+ flags?: string;
12196
+ } | string));
12197
+ selector?: ("literal" | "spread");
12198
+ }, ...({
12180
12199
  elementNamePattern?: (({
12181
12200
  pattern: string;
12182
12201
  flags?: string;
@@ -12185,7 +12204,7 @@ type PerfectionistSortArrayIncludes = {
12185
12204
  flags?: string;
12186
12205
  } | string));
12187
12206
  selector?: ("literal" | "spread");
12188
- }[];
12207
+ })[]];
12189
12208
  } | {
12190
12209
  fallbackSort?: {
12191
12210
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -12193,7 +12212,7 @@ type PerfectionistSortArrayIncludes = {
12193
12212
  };
12194
12213
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12195
12214
  groupName: string;
12196
- newlinesInside?: number;
12215
+ newlinesInside?: ("ignore" | number);
12197
12216
  order?: ("asc" | "desc");
12198
12217
  elementNamePattern?: (({
12199
12218
  pattern: string;
@@ -12204,13 +12223,18 @@ type PerfectionistSortArrayIncludes = {
12204
12223
  } | string));
12205
12224
  selector?: ("literal" | "spread");
12206
12225
  })[];
12226
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
12207
12227
  groups?: (string | [string, ...(string)[]] | {
12208
12228
  newlinesBetween: ("ignore" | number);
12209
12229
  } | {
12210
12230
  group: (string | [string, ...(string)[]]);
12231
+ fallbackSort?: {
12232
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12233
+ order?: ("asc" | "desc");
12234
+ };
12211
12235
  commentAbove?: string;
12212
12236
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12213
- newlinesInside?: number;
12237
+ newlinesInside?: ("ignore" | number);
12214
12238
  order?: ("asc" | "desc");
12215
12239
  })[];
12216
12240
  newlinesBetween?: ("ignore" | number);
@@ -12266,9 +12290,9 @@ type PerfectionistSortClasses = [] | [{
12266
12290
  };
12267
12291
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12268
12292
  groupName: string;
12269
- newlinesInside?: number;
12293
+ newlinesInside?: ("ignore" | number);
12270
12294
  order?: ("asc" | "desc");
12271
- anyOf: {
12295
+ anyOf: [{
12272
12296
  elementNamePattern?: (({
12273
12297
  pattern: string;
12274
12298
  flags?: string;
@@ -12292,7 +12316,31 @@ type PerfectionistSortClasses = [] | [{
12292
12316
  pattern: string;
12293
12317
  flags?: string;
12294
12318
  } | string));
12295
- }[];
12319
+ }, ...({
12320
+ elementNamePattern?: (({
12321
+ pattern: string;
12322
+ flags?: string;
12323
+ } | string)[] | ({
12324
+ pattern: string;
12325
+ flags?: string;
12326
+ } | string));
12327
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
12328
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
12329
+ decoratorNamePattern?: (({
12330
+ pattern: string;
12331
+ flags?: string;
12332
+ } | string)[] | ({
12333
+ pattern: string;
12334
+ flags?: string;
12335
+ } | string));
12336
+ elementValuePattern?: (({
12337
+ pattern: string;
12338
+ flags?: string;
12339
+ } | string)[] | ({
12340
+ pattern: string;
12341
+ flags?: string;
12342
+ } | string));
12343
+ })[]];
12296
12344
  } | {
12297
12345
  fallbackSort?: {
12298
12346
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -12300,7 +12348,7 @@ type PerfectionistSortClasses = [] | [{
12300
12348
  };
12301
12349
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12302
12350
  groupName: string;
12303
- newlinesInside?: number;
12351
+ newlinesInside?: ("ignore" | number);
12304
12352
  order?: ("asc" | "desc");
12305
12353
  elementNamePattern?: (({
12306
12354
  pattern: string;
@@ -12326,13 +12374,18 @@ type PerfectionistSortClasses = [] | [{
12326
12374
  flags?: string;
12327
12375
  } | string));
12328
12376
  })[];
12377
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
12329
12378
  groups?: (string | [string, ...(string)[]] | {
12330
12379
  newlinesBetween: ("ignore" | number);
12331
12380
  } | {
12332
12381
  group: (string | [string, ...(string)[]]);
12382
+ fallbackSort?: {
12383
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12384
+ order?: ("asc" | "desc");
12385
+ };
12333
12386
  commentAbove?: string;
12334
12387
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12335
- newlinesInside?: number;
12388
+ newlinesInside?: ("ignore" | number);
12336
12389
  order?: ("asc" | "desc");
12337
12390
  })[];
12338
12391
  newlinesBetween?: ("ignore" | number);
@@ -12386,9 +12439,9 @@ type PerfectionistSortDecorators = {
12386
12439
  };
12387
12440
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12388
12441
  groupName: string;
12389
- newlinesInside?: number;
12442
+ newlinesInside?: ("ignore" | number);
12390
12443
  order?: ("asc" | "desc");
12391
- anyOf: {
12444
+ anyOf: [{
12392
12445
  elementNamePattern?: (({
12393
12446
  pattern: string;
12394
12447
  flags?: string;
@@ -12396,7 +12449,15 @@ type PerfectionistSortDecorators = {
12396
12449
  pattern: string;
12397
12450
  flags?: string;
12398
12451
  } | string));
12399
- }[];
12452
+ }, ...({
12453
+ elementNamePattern?: (({
12454
+ pattern: string;
12455
+ flags?: string;
12456
+ } | string)[] | ({
12457
+ pattern: string;
12458
+ flags?: string;
12459
+ } | string));
12460
+ })[]];
12400
12461
  } | {
12401
12462
  fallbackSort?: {
12402
12463
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -12404,7 +12465,7 @@ type PerfectionistSortDecorators = {
12404
12465
  };
12405
12466
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12406
12467
  groupName: string;
12407
- newlinesInside?: number;
12468
+ newlinesInside?: ("ignore" | number);
12408
12469
  order?: ("asc" | "desc");
12409
12470
  elementNamePattern?: (({
12410
12471
  pattern: string;
@@ -12414,13 +12475,18 @@ type PerfectionistSortDecorators = {
12414
12475
  flags?: string;
12415
12476
  } | string));
12416
12477
  })[];
12478
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
12417
12479
  groups?: (string | [string, ...(string)[]] | {
12418
12480
  newlinesBetween: ("ignore" | number);
12419
12481
  } | {
12420
12482
  group: (string | [string, ...(string)[]]);
12483
+ fallbackSort?: {
12484
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12485
+ order?: ("asc" | "desc");
12486
+ };
12421
12487
  commentAbove?: string;
12422
12488
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12423
- newlinesInside?: number;
12489
+ newlinesInside?: ("ignore" | number);
12424
12490
  order?: ("asc" | "desc");
12425
12491
  })[];
12426
12492
  newlinesBetween?: ("ignore" | number);
@@ -12472,9 +12538,24 @@ type PerfectionistSortEnums = [] | [{
12472
12538
  };
12473
12539
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12474
12540
  groupName: string;
12475
- newlinesInside?: number;
12541
+ newlinesInside?: ("ignore" | number);
12476
12542
  order?: ("asc" | "desc");
12477
- anyOf: {
12543
+ anyOf: [{
12544
+ elementNamePattern?: (({
12545
+ pattern: string;
12546
+ flags?: string;
12547
+ } | string)[] | ({
12548
+ pattern: string;
12549
+ flags?: string;
12550
+ } | string));
12551
+ elementValuePattern?: (({
12552
+ pattern: string;
12553
+ flags?: string;
12554
+ } | string)[] | ({
12555
+ pattern: string;
12556
+ flags?: string;
12557
+ } | string));
12558
+ }, ...({
12478
12559
  elementNamePattern?: (({
12479
12560
  pattern: string;
12480
12561
  flags?: string;
@@ -12489,7 +12570,7 @@ type PerfectionistSortEnums = [] | [{
12489
12570
  pattern: string;
12490
12571
  flags?: string;
12491
12572
  } | string));
12492
- }[];
12573
+ })[]];
12493
12574
  } | {
12494
12575
  fallbackSort?: {
12495
12576
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -12497,7 +12578,7 @@ type PerfectionistSortEnums = [] | [{
12497
12578
  };
12498
12579
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12499
12580
  groupName: string;
12500
- newlinesInside?: number;
12581
+ newlinesInside?: ("ignore" | number);
12501
12582
  order?: ("asc" | "desc");
12502
12583
  elementNamePattern?: (({
12503
12584
  pattern: string;
@@ -12514,13 +12595,18 @@ type PerfectionistSortEnums = [] | [{
12514
12595
  flags?: string;
12515
12596
  } | string));
12516
12597
  })[];
12598
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
12517
12599
  groups?: (string | [string, ...(string)[]] | {
12518
12600
  newlinesBetween: ("ignore" | number);
12519
12601
  } | {
12520
12602
  group: (string | [string, ...(string)[]]);
12603
+ fallbackSort?: {
12604
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12605
+ order?: ("asc" | "desc");
12606
+ };
12521
12607
  commentAbove?: string;
12522
12608
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12523
- newlinesInside?: number;
12609
+ newlinesInside?: ("ignore" | number);
12524
12610
  order?: ("asc" | "desc");
12525
12611
  })[];
12526
12612
  newlinesBetween?: ("ignore" | number);
@@ -12568,9 +12654,9 @@ type PerfectionistSortExportAttributes = {
12568
12654
  };
12569
12655
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12570
12656
  groupName: string;
12571
- newlinesInside?: number;
12657
+ newlinesInside?: ("ignore" | number);
12572
12658
  order?: ("asc" | "desc");
12573
- anyOf: {
12659
+ anyOf: [{
12574
12660
  elementNamePattern?: (({
12575
12661
  pattern: string;
12576
12662
  flags?: string;
@@ -12578,7 +12664,15 @@ type PerfectionistSortExportAttributes = {
12578
12664
  pattern: string;
12579
12665
  flags?: string;
12580
12666
  } | string));
12581
- }[];
12667
+ }, ...({
12668
+ elementNamePattern?: (({
12669
+ pattern: string;
12670
+ flags?: string;
12671
+ } | string)[] | ({
12672
+ pattern: string;
12673
+ flags?: string;
12674
+ } | string));
12675
+ })[]];
12582
12676
  } | {
12583
12677
  fallbackSort?: {
12584
12678
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -12586,7 +12680,7 @@ type PerfectionistSortExportAttributes = {
12586
12680
  };
12587
12681
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12588
12682
  groupName: string;
12589
- newlinesInside?: number;
12683
+ newlinesInside?: ("ignore" | number);
12590
12684
  order?: ("asc" | "desc");
12591
12685
  elementNamePattern?: (({
12592
12686
  pattern: string;
@@ -12596,13 +12690,18 @@ type PerfectionistSortExportAttributes = {
12596
12690
  flags?: string;
12597
12691
  } | string));
12598
12692
  })[];
12693
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
12599
12694
  groups?: (string | [string, ...(string)[]] | {
12600
12695
  newlinesBetween: ("ignore" | number);
12601
12696
  } | {
12602
12697
  group: (string | [string, ...(string)[]]);
12698
+ fallbackSort?: {
12699
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12700
+ order?: ("asc" | "desc");
12701
+ };
12603
12702
  commentAbove?: string;
12604
12703
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12605
- newlinesInside?: number;
12704
+ newlinesInside?: ("ignore" | number);
12606
12705
  order?: ("asc" | "desc");
12607
12706
  })[];
12608
12707
  newlinesBetween?: ("ignore" | number);
@@ -12649,9 +12748,9 @@ type PerfectionistSortExports = {
12649
12748
  };
12650
12749
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12651
12750
  groupName: string;
12652
- newlinesInside?: number;
12751
+ newlinesInside?: ("ignore" | number);
12653
12752
  order?: ("asc" | "desc");
12654
- anyOf: {
12753
+ anyOf: [{
12655
12754
  elementNamePattern?: (({
12656
12755
  pattern: string;
12657
12756
  flags?: string;
@@ -12661,7 +12760,17 @@ type PerfectionistSortExports = {
12661
12760
  } | string));
12662
12761
  modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
12663
12762
  selector?: "export";
12664
- }[];
12763
+ }, ...({
12764
+ elementNamePattern?: (({
12765
+ pattern: string;
12766
+ flags?: string;
12767
+ } | string)[] | ({
12768
+ pattern: string;
12769
+ flags?: string;
12770
+ } | string));
12771
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
12772
+ selector?: "export";
12773
+ })[]];
12665
12774
  } | {
12666
12775
  fallbackSort?: {
12667
12776
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -12669,7 +12778,7 @@ type PerfectionistSortExports = {
12669
12778
  };
12670
12779
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12671
12780
  groupName: string;
12672
- newlinesInside?: number;
12781
+ newlinesInside?: ("ignore" | number);
12673
12782
  order?: ("asc" | "desc");
12674
12783
  elementNamePattern?: (({
12675
12784
  pattern: string;
@@ -12681,13 +12790,18 @@ type PerfectionistSortExports = {
12681
12790
  modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
12682
12791
  selector?: "export";
12683
12792
  })[];
12793
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
12684
12794
  groups?: (string | [string, ...(string)[]] | {
12685
12795
  newlinesBetween: ("ignore" | number);
12686
12796
  } | {
12687
12797
  group: (string | [string, ...(string)[]]);
12798
+ fallbackSort?: {
12799
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12800
+ order?: ("asc" | "desc");
12801
+ };
12688
12802
  commentAbove?: string;
12689
12803
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12690
- newlinesInside?: number;
12804
+ newlinesInside?: ("ignore" | number);
12691
12805
  order?: ("asc" | "desc");
12692
12806
  })[];
12693
12807
  newlinesBetween?: ("ignore" | number);
@@ -12734,9 +12848,9 @@ type PerfectionistSortHeritageClauses = {
12734
12848
  };
12735
12849
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12736
12850
  groupName: string;
12737
- newlinesInside?: number;
12851
+ newlinesInside?: ("ignore" | number);
12738
12852
  order?: ("asc" | "desc");
12739
- anyOf: {
12853
+ anyOf: [{
12740
12854
  elementNamePattern?: (({
12741
12855
  pattern: string;
12742
12856
  flags?: string;
@@ -12744,7 +12858,15 @@ type PerfectionistSortHeritageClauses = {
12744
12858
  pattern: string;
12745
12859
  flags?: string;
12746
12860
  } | string));
12747
- }[];
12861
+ }, ...({
12862
+ elementNamePattern?: (({
12863
+ pattern: string;
12864
+ flags?: string;
12865
+ } | string)[] | ({
12866
+ pattern: string;
12867
+ flags?: string;
12868
+ } | string));
12869
+ })[]];
12748
12870
  } | {
12749
12871
  fallbackSort?: {
12750
12872
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -12752,7 +12874,7 @@ type PerfectionistSortHeritageClauses = {
12752
12874
  };
12753
12875
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12754
12876
  groupName: string;
12755
- newlinesInside?: number;
12877
+ newlinesInside?: ("ignore" | number);
12756
12878
  order?: ("asc" | "desc");
12757
12879
  elementNamePattern?: (({
12758
12880
  pattern: string;
@@ -12762,13 +12884,18 @@ type PerfectionistSortHeritageClauses = {
12762
12884
  flags?: string;
12763
12885
  } | string));
12764
12886
  })[];
12887
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
12765
12888
  groups?: (string | [string, ...(string)[]] | {
12766
12889
  newlinesBetween: ("ignore" | number);
12767
12890
  } | {
12768
12891
  group: (string | [string, ...(string)[]]);
12892
+ fallbackSort?: {
12893
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12894
+ order?: ("asc" | "desc");
12895
+ };
12769
12896
  commentAbove?: string;
12770
12897
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12771
- newlinesInside?: number;
12898
+ newlinesInside?: ("ignore" | number);
12772
12899
  order?: ("asc" | "desc");
12773
12900
  })[];
12774
12901
  newlinesBetween?: ("ignore" | number);
@@ -12815,9 +12942,9 @@ type PerfectionistSortImportAttributes = {
12815
12942
  };
12816
12943
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12817
12944
  groupName: string;
12818
- newlinesInside?: number;
12945
+ newlinesInside?: ("ignore" | number);
12819
12946
  order?: ("asc" | "desc");
12820
- anyOf: {
12947
+ anyOf: [{
12821
12948
  elementNamePattern?: (({
12822
12949
  pattern: string;
12823
12950
  flags?: string;
@@ -12825,7 +12952,15 @@ type PerfectionistSortImportAttributes = {
12825
12952
  pattern: string;
12826
12953
  flags?: string;
12827
12954
  } | string));
12828
- }[];
12955
+ }, ...({
12956
+ elementNamePattern?: (({
12957
+ pattern: string;
12958
+ flags?: string;
12959
+ } | string)[] | ({
12960
+ pattern: string;
12961
+ flags?: string;
12962
+ } | string));
12963
+ })[]];
12829
12964
  } | {
12830
12965
  fallbackSort?: {
12831
12966
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -12833,7 +12968,7 @@ type PerfectionistSortImportAttributes = {
12833
12968
  };
12834
12969
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12835
12970
  groupName: string;
12836
- newlinesInside?: number;
12971
+ newlinesInside?: ("ignore" | number);
12837
12972
  order?: ("asc" | "desc");
12838
12973
  elementNamePattern?: (({
12839
12974
  pattern: string;
@@ -12843,13 +12978,18 @@ type PerfectionistSortImportAttributes = {
12843
12978
  flags?: string;
12844
12979
  } | string));
12845
12980
  })[];
12981
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
12846
12982
  groups?: (string | [string, ...(string)[]] | {
12847
12983
  newlinesBetween: ("ignore" | number);
12848
12984
  } | {
12849
12985
  group: (string | [string, ...(string)[]]);
12986
+ fallbackSort?: {
12987
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12988
+ order?: ("asc" | "desc");
12989
+ };
12850
12990
  commentAbove?: string;
12851
12991
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12852
- newlinesInside?: number;
12992
+ newlinesInside?: ("ignore" | number);
12853
12993
  order?: ("asc" | "desc");
12854
12994
  })[];
12855
12995
  newlinesBetween?: ("ignore" | number);
@@ -12882,6 +13022,7 @@ type PerfectionistSortImports = {
12882
13022
  fallbackSort?: {
12883
13023
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
12884
13024
  order?: ("asc" | "desc");
13025
+ sortBy?: ("specifier" | "path");
12885
13026
  };
12886
13027
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
12887
13028
  specialCharacters?: ("remove" | "trim" | "keep");
@@ -12889,16 +13030,29 @@ type PerfectionistSortImports = {
12889
13030
  alphabet?: string;
12890
13031
  locales?: (string | string[]);
12891
13032
  order?: ("asc" | "desc");
13033
+ sortBy?: ("specifier" | "path");
12892
13034
  customGroups?: ({
12893
13035
  fallbackSort?: {
12894
13036
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
12895
13037
  order?: ("asc" | "desc");
13038
+ sortBy?: ("specifier" | "path");
12896
13039
  };
12897
13040
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
12898
13041
  groupName: string;
12899
- newlinesInside?: number;
13042
+ newlinesInside?: ("ignore" | number);
12900
13043
  order?: ("asc" | "desc");
12901
- anyOf: {
13044
+ sortBy?: ("specifier" | "path");
13045
+ anyOf: [{
13046
+ elementNamePattern?: (({
13047
+ pattern: string;
13048
+ flags?: string;
13049
+ } | string)[] | ({
13050
+ pattern: string;
13051
+ flags?: string;
13052
+ } | string));
13053
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
13054
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
13055
+ }, ...({
12902
13056
  elementNamePattern?: (({
12903
13057
  pattern: string;
12904
13058
  flags?: string;
@@ -12908,16 +13062,18 @@ type PerfectionistSortImports = {
12908
13062
  } | string));
12909
13063
  modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
12910
13064
  selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
12911
- }[];
13065
+ })[]];
12912
13066
  } | {
12913
13067
  fallbackSort?: {
12914
13068
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
12915
13069
  order?: ("asc" | "desc");
13070
+ sortBy?: ("specifier" | "path");
12916
13071
  };
12917
13072
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
12918
13073
  groupName: string;
12919
- newlinesInside?: number;
13074
+ newlinesInside?: ("ignore" | number);
12920
13075
  order?: ("asc" | "desc");
13076
+ sortBy?: ("specifier" | "path");
12921
13077
  elementNamePattern?: (({
12922
13078
  pattern: string;
12923
13079
  flags?: string;
@@ -12928,14 +13084,21 @@ type PerfectionistSortImports = {
12928
13084
  modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
12929
13085
  selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
12930
13086
  })[];
13087
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
12931
13088
  groups?: (string | [string, ...(string)[]] | {
12932
13089
  newlinesBetween: ("ignore" | number);
12933
13090
  } | {
12934
13091
  group: (string | [string, ...(string)[]]);
13092
+ fallbackSort?: {
13093
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
13094
+ order?: ("asc" | "desc");
13095
+ sortBy?: ("specifier" | "path");
13096
+ };
12935
13097
  commentAbove?: string;
12936
13098
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
12937
- newlinesInside?: number;
13099
+ newlinesInside?: ("ignore" | number);
12938
13100
  order?: ("asc" | "desc");
13101
+ sortBy?: ("specifier" | "path");
12939
13102
  })[];
12940
13103
  newlinesBetween?: ("ignore" | number);
12941
13104
  tsconfig?: {
@@ -12989,6 +13152,7 @@ type PerfectionistSortInterfaces = {
12989
13152
  alphabet?: string;
12990
13153
  locales?: (string | string[]);
12991
13154
  order?: ("asc" | "desc");
13155
+ sortBy?: ("name" | "value");
12992
13156
  customGroups?: ({
12993
13157
  fallbackSort?: {
12994
13158
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -12997,9 +13161,10 @@ type PerfectionistSortInterfaces = {
12997
13161
  };
12998
13162
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12999
13163
  groupName: string;
13000
- newlinesInside?: number;
13164
+ newlinesInside?: ("ignore" | number);
13001
13165
  order?: ("asc" | "desc");
13002
- anyOf: {
13166
+ sortBy?: ("name" | "value");
13167
+ anyOf: [{
13003
13168
  elementNamePattern?: (({
13004
13169
  pattern: string;
13005
13170
  flags?: string;
@@ -13016,8 +13181,24 @@ type PerfectionistSortInterfaces = {
13016
13181
  pattern: string;
13017
13182
  flags?: string;
13018
13183
  } | string));
13019
- sortBy?: ("name" | "value");
13020
- }[];
13184
+ }, ...({
13185
+ elementNamePattern?: (({
13186
+ pattern: string;
13187
+ flags?: string;
13188
+ } | string)[] | ({
13189
+ pattern: string;
13190
+ flags?: string;
13191
+ } | string));
13192
+ modifiers?: ("optional" | "required" | "multiline")[];
13193
+ selector?: ("index-signature" | "member" | "method" | "property");
13194
+ elementValuePattern?: (({
13195
+ pattern: string;
13196
+ flags?: string;
13197
+ } | string)[] | ({
13198
+ pattern: string;
13199
+ flags?: string;
13200
+ } | string));
13201
+ })[]];
13021
13202
  } | {
13022
13203
  fallbackSort?: {
13023
13204
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -13026,8 +13207,9 @@ type PerfectionistSortInterfaces = {
13026
13207
  };
13027
13208
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13028
13209
  groupName: string;
13029
- newlinesInside?: number;
13210
+ newlinesInside?: ("ignore" | number);
13030
13211
  order?: ("asc" | "desc");
13212
+ sortBy?: ("name" | "value");
13031
13213
  elementNamePattern?: (({
13032
13214
  pattern: string;
13033
13215
  flags?: string;
@@ -13044,16 +13226,22 @@ type PerfectionistSortInterfaces = {
13044
13226
  pattern: string;
13045
13227
  flags?: string;
13046
13228
  } | string));
13047
- sortBy?: ("name" | "value");
13048
13229
  })[];
13230
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
13049
13231
  groups?: (string | [string, ...(string)[]] | {
13050
13232
  newlinesBetween: ("ignore" | number);
13051
13233
  } | {
13052
13234
  group: (string | [string, ...(string)[]]);
13235
+ fallbackSort?: {
13236
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13237
+ order?: ("asc" | "desc");
13238
+ sortBy?: ("name" | "value");
13239
+ };
13053
13240
  commentAbove?: string;
13054
13241
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13055
- newlinesInside?: number;
13242
+ newlinesInside?: ("ignore" | number);
13056
13243
  order?: ("asc" | "desc");
13244
+ sortBy?: ("name" | "value");
13057
13245
  })[];
13058
13246
  newlinesBetween?: ("ignore" | number);
13059
13247
  useConfigurationIf?: {
@@ -13107,7 +13295,6 @@ type PerfectionistSortInterfaces = {
13107
13295
  } | string)));
13108
13296
  });
13109
13297
  partitionByNewLine?: boolean;
13110
- sortBy?: ("name" | "value");
13111
13298
  }[];
13112
13299
  // ----- perfectionist/sort-intersection-types -----
13113
13300
  type PerfectionistSortIntersectionTypes = {
@@ -13128,9 +13315,9 @@ type PerfectionistSortIntersectionTypes = {
13128
13315
  };
13129
13316
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13130
13317
  groupName: string;
13131
- newlinesInside?: number;
13318
+ newlinesInside?: ("ignore" | number);
13132
13319
  order?: ("asc" | "desc");
13133
- anyOf: {
13320
+ anyOf: [{
13134
13321
  elementNamePattern?: (({
13135
13322
  pattern: string;
13136
13323
  flags?: string;
@@ -13139,7 +13326,16 @@ type PerfectionistSortIntersectionTypes = {
13139
13326
  flags?: string;
13140
13327
  } | string));
13141
13328
  selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
13142
- }[];
13329
+ }, ...({
13330
+ elementNamePattern?: (({
13331
+ pattern: string;
13332
+ flags?: string;
13333
+ } | string)[] | ({
13334
+ pattern: string;
13335
+ flags?: string;
13336
+ } | string));
13337
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
13338
+ })[]];
13143
13339
  } | {
13144
13340
  fallbackSort?: {
13145
13341
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -13147,7 +13343,7 @@ type PerfectionistSortIntersectionTypes = {
13147
13343
  };
13148
13344
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13149
13345
  groupName: string;
13150
- newlinesInside?: number;
13346
+ newlinesInside?: ("ignore" | number);
13151
13347
  order?: ("asc" | "desc");
13152
13348
  elementNamePattern?: (({
13153
13349
  pattern: string;
@@ -13158,13 +13354,18 @@ type PerfectionistSortIntersectionTypes = {
13158
13354
  } | string));
13159
13355
  selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
13160
13356
  })[];
13357
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
13161
13358
  groups?: (string | [string, ...(string)[]] | {
13162
13359
  newlinesBetween: ("ignore" | number);
13163
13360
  } | {
13164
13361
  group: (string | [string, ...(string)[]]);
13362
+ fallbackSort?: {
13363
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13364
+ order?: ("asc" | "desc");
13365
+ };
13165
13366
  commentAbove?: string;
13166
13367
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13167
- newlinesInside?: number;
13368
+ newlinesInside?: ("ignore" | number);
13168
13369
  order?: ("asc" | "desc");
13169
13370
  })[];
13170
13371
  newlinesBetween?: ("ignore" | number);
@@ -13211,9 +13412,26 @@ type PerfectionistSortJsxProps = {
13211
13412
  };
13212
13413
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13213
13414
  groupName: string;
13214
- newlinesInside?: number;
13415
+ newlinesInside?: ("ignore" | number);
13215
13416
  order?: ("asc" | "desc");
13216
- anyOf: {
13417
+ anyOf: [{
13418
+ elementNamePattern?: (({
13419
+ pattern: string;
13420
+ flags?: string;
13421
+ } | string)[] | ({
13422
+ pattern: string;
13423
+ flags?: string;
13424
+ } | string));
13425
+ modifiers?: ("shorthand" | "multiline")[];
13426
+ selector?: "prop";
13427
+ elementValuePattern?: (({
13428
+ pattern: string;
13429
+ flags?: string;
13430
+ } | string)[] | ({
13431
+ pattern: string;
13432
+ flags?: string;
13433
+ } | string));
13434
+ }, ...({
13217
13435
  elementNamePattern?: (({
13218
13436
  pattern: string;
13219
13437
  flags?: string;
@@ -13230,7 +13448,7 @@ type PerfectionistSortJsxProps = {
13230
13448
  pattern: string;
13231
13449
  flags?: string;
13232
13450
  } | string));
13233
- }[];
13451
+ })[]];
13234
13452
  } | {
13235
13453
  fallbackSort?: {
13236
13454
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -13238,7 +13456,7 @@ type PerfectionistSortJsxProps = {
13238
13456
  };
13239
13457
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13240
13458
  groupName: string;
13241
- newlinesInside?: number;
13459
+ newlinesInside?: ("ignore" | number);
13242
13460
  order?: ("asc" | "desc");
13243
13461
  elementNamePattern?: (({
13244
13462
  pattern: string;
@@ -13257,13 +13475,18 @@ type PerfectionistSortJsxProps = {
13257
13475
  flags?: string;
13258
13476
  } | string));
13259
13477
  })[];
13478
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
13260
13479
  groups?: (string | [string, ...(string)[]] | {
13261
13480
  newlinesBetween: ("ignore" | number);
13262
13481
  } | {
13263
13482
  group: (string | [string, ...(string)[]]);
13483
+ fallbackSort?: {
13484
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13485
+ order?: ("asc" | "desc");
13486
+ };
13264
13487
  commentAbove?: string;
13265
13488
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13266
- newlinesInside?: number;
13489
+ newlinesInside?: ("ignore" | number);
13267
13490
  order?: ("asc" | "desc");
13268
13491
  })[];
13269
13492
  newlinesBetween?: ("ignore" | number);
@@ -13304,9 +13527,9 @@ type PerfectionistSortMaps = {
13304
13527
  };
13305
13528
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13306
13529
  groupName: string;
13307
- newlinesInside?: number;
13530
+ newlinesInside?: ("ignore" | number);
13308
13531
  order?: ("asc" | "desc");
13309
- anyOf: {
13532
+ anyOf: [{
13310
13533
  elementNamePattern?: (({
13311
13534
  pattern: string;
13312
13535
  flags?: string;
@@ -13314,7 +13537,15 @@ type PerfectionistSortMaps = {
13314
13537
  pattern: string;
13315
13538
  flags?: string;
13316
13539
  } | string));
13317
- }[];
13540
+ }, ...({
13541
+ elementNamePattern?: (({
13542
+ pattern: string;
13543
+ flags?: string;
13544
+ } | string)[] | ({
13545
+ pattern: string;
13546
+ flags?: string;
13547
+ } | string));
13548
+ })[]];
13318
13549
  } | {
13319
13550
  fallbackSort?: {
13320
13551
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -13322,7 +13553,7 @@ type PerfectionistSortMaps = {
13322
13553
  };
13323
13554
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13324
13555
  groupName: string;
13325
- newlinesInside?: number;
13556
+ newlinesInside?: ("ignore" | number);
13326
13557
  order?: ("asc" | "desc");
13327
13558
  elementNamePattern?: (({
13328
13559
  pattern: string;
@@ -13332,13 +13563,18 @@ type PerfectionistSortMaps = {
13332
13563
  flags?: string;
13333
13564
  } | string));
13334
13565
  })[];
13566
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
13335
13567
  groups?: (string | [string, ...(string)[]] | {
13336
13568
  newlinesBetween: ("ignore" | number);
13337
13569
  } | {
13338
13570
  group: (string | [string, ...(string)[]]);
13571
+ fallbackSort?: {
13572
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13573
+ order?: ("asc" | "desc");
13574
+ };
13339
13575
  commentAbove?: string;
13340
13576
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13341
- newlinesInside?: number;
13577
+ newlinesInside?: ("ignore" | number);
13342
13578
  order?: ("asc" | "desc");
13343
13579
  })[];
13344
13580
  newlinesBetween?: ("ignore" | number);
@@ -13378,10 +13614,10 @@ type PerfectionistSortMaps = {
13378
13614
  // ----- perfectionist/sort-modules -----
13379
13615
  type PerfectionistSortModules = [] | [{
13380
13616
  fallbackSort?: {
13381
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13617
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "usage");
13382
13618
  order?: ("asc" | "desc");
13383
13619
  };
13384
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13620
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "usage");
13385
13621
  specialCharacters?: ("remove" | "trim" | "keep");
13386
13622
  ignoreCase?: boolean;
13387
13623
  alphabet?: string;
@@ -13389,14 +13625,14 @@ type PerfectionistSortModules = [] | [{
13389
13625
  order?: ("asc" | "desc");
13390
13626
  customGroups?: ({
13391
13627
  fallbackSort?: {
13392
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13628
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "usage");
13393
13629
  order?: ("asc" | "desc");
13394
13630
  };
13395
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13631
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "usage");
13396
13632
  groupName: string;
13397
- newlinesInside?: number;
13633
+ newlinesInside?: ("ignore" | number);
13398
13634
  order?: ("asc" | "desc");
13399
- anyOf: {
13635
+ anyOf: [{
13400
13636
  elementNamePattern?: (({
13401
13637
  pattern: string;
13402
13638
  flags?: string;
@@ -13413,15 +13649,32 @@ type PerfectionistSortModules = [] | [{
13413
13649
  pattern: string;
13414
13650
  flags?: string;
13415
13651
  } | string));
13416
- }[];
13652
+ }, ...({
13653
+ elementNamePattern?: (({
13654
+ pattern: string;
13655
+ flags?: string;
13656
+ } | string)[] | ({
13657
+ pattern: string;
13658
+ flags?: string;
13659
+ } | string));
13660
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
13661
+ selector?: ("enum" | "function" | "interface" | "type" | "class");
13662
+ decoratorNamePattern?: (({
13663
+ pattern: string;
13664
+ flags?: string;
13665
+ } | string)[] | ({
13666
+ pattern: string;
13667
+ flags?: string;
13668
+ } | string));
13669
+ })[]];
13417
13670
  } | {
13418
13671
  fallbackSort?: {
13419
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13672
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "usage");
13420
13673
  order?: ("asc" | "desc");
13421
13674
  };
13422
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13675
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "usage");
13423
13676
  groupName: string;
13424
- newlinesInside?: number;
13677
+ newlinesInside?: ("ignore" | number);
13425
13678
  order?: ("asc" | "desc");
13426
13679
  elementNamePattern?: (({
13427
13680
  pattern: string;
@@ -13440,13 +13693,18 @@ type PerfectionistSortModules = [] | [{
13440
13693
  flags?: string;
13441
13694
  } | string));
13442
13695
  })[];
13696
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
13443
13697
  groups?: (string | [string, ...(string)[]] | {
13444
13698
  newlinesBetween: ("ignore" | number);
13445
13699
  } | {
13446
13700
  group: (string | [string, ...(string)[]]);
13701
+ fallbackSort?: {
13702
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "usage");
13703
+ order?: ("asc" | "desc");
13704
+ };
13447
13705
  commentAbove?: string;
13448
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13449
- newlinesInside?: number;
13706
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "usage");
13707
+ newlinesInside?: ("ignore" | number);
13450
13708
  order?: ("asc" | "desc");
13451
13709
  })[];
13452
13710
  newlinesBetween?: ("ignore" | number);
@@ -13493,9 +13751,19 @@ type PerfectionistSortNamedExports = {
13493
13751
  };
13494
13752
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13495
13753
  groupName: string;
13496
- newlinesInside?: number;
13754
+ newlinesInside?: ("ignore" | number);
13497
13755
  order?: ("asc" | "desc");
13498
- anyOf: {
13756
+ anyOf: [{
13757
+ elementNamePattern?: (({
13758
+ pattern: string;
13759
+ flags?: string;
13760
+ } | string)[] | ({
13761
+ pattern: string;
13762
+ flags?: string;
13763
+ } | string));
13764
+ modifiers?: ("value" | "type")[];
13765
+ selector?: "export";
13766
+ }, ...({
13499
13767
  elementNamePattern?: (({
13500
13768
  pattern: string;
13501
13769
  flags?: string;
@@ -13505,7 +13773,7 @@ type PerfectionistSortNamedExports = {
13505
13773
  } | string));
13506
13774
  modifiers?: ("value" | "type")[];
13507
13775
  selector?: "export";
13508
- }[];
13776
+ })[]];
13509
13777
  } | {
13510
13778
  fallbackSort?: {
13511
13779
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -13513,7 +13781,7 @@ type PerfectionistSortNamedExports = {
13513
13781
  };
13514
13782
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13515
13783
  groupName: string;
13516
- newlinesInside?: number;
13784
+ newlinesInside?: ("ignore" | number);
13517
13785
  order?: ("asc" | "desc");
13518
13786
  elementNamePattern?: (({
13519
13787
  pattern: string;
@@ -13525,13 +13793,18 @@ type PerfectionistSortNamedExports = {
13525
13793
  modifiers?: ("value" | "type")[];
13526
13794
  selector?: "export";
13527
13795
  })[];
13796
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
13528
13797
  groups?: (string | [string, ...(string)[]] | {
13529
13798
  newlinesBetween: ("ignore" | number);
13530
13799
  } | {
13531
13800
  group: (string | [string, ...(string)[]]);
13801
+ fallbackSort?: {
13802
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13803
+ order?: ("asc" | "desc");
13804
+ };
13532
13805
  commentAbove?: string;
13533
13806
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13534
- newlinesInside?: number;
13807
+ newlinesInside?: ("ignore" | number);
13535
13808
  order?: ("asc" | "desc");
13536
13809
  })[];
13537
13810
  newlinesBetween?: ("ignore" | number);
@@ -13579,9 +13852,9 @@ type PerfectionistSortNamedImports = {
13579
13852
  };
13580
13853
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13581
13854
  groupName: string;
13582
- newlinesInside?: number;
13855
+ newlinesInside?: ("ignore" | number);
13583
13856
  order?: ("asc" | "desc");
13584
- anyOf: {
13857
+ anyOf: [{
13585
13858
  elementNamePattern?: (({
13586
13859
  pattern: string;
13587
13860
  flags?: string;
@@ -13591,7 +13864,17 @@ type PerfectionistSortNamedImports = {
13591
13864
  } | string));
13592
13865
  modifiers?: ("value" | "type")[];
13593
13866
  selector?: "import";
13594
- }[];
13867
+ }, ...({
13868
+ elementNamePattern?: (({
13869
+ pattern: string;
13870
+ flags?: string;
13871
+ } | string)[] | ({
13872
+ pattern: string;
13873
+ flags?: string;
13874
+ } | string));
13875
+ modifiers?: ("value" | "type")[];
13876
+ selector?: "import";
13877
+ })[]];
13595
13878
  } | {
13596
13879
  fallbackSort?: {
13597
13880
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -13599,7 +13882,7 @@ type PerfectionistSortNamedImports = {
13599
13882
  };
13600
13883
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13601
13884
  groupName: string;
13602
- newlinesInside?: number;
13885
+ newlinesInside?: ("ignore" | number);
13603
13886
  order?: ("asc" | "desc");
13604
13887
  elementNamePattern?: (({
13605
13888
  pattern: string;
@@ -13611,13 +13894,18 @@ type PerfectionistSortNamedImports = {
13611
13894
  modifiers?: ("value" | "type")[];
13612
13895
  selector?: "import";
13613
13896
  })[];
13897
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
13614
13898
  groups?: (string | [string, ...(string)[]] | {
13615
13899
  newlinesBetween: ("ignore" | number);
13616
13900
  } | {
13617
13901
  group: (string | [string, ...(string)[]]);
13902
+ fallbackSort?: {
13903
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13904
+ order?: ("asc" | "desc");
13905
+ };
13618
13906
  commentAbove?: string;
13619
13907
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13620
- newlinesInside?: number;
13908
+ newlinesInside?: ("ignore" | number);
13621
13909
  order?: ("asc" | "desc");
13622
13910
  })[];
13623
13911
  newlinesBetween?: ("ignore" | number);
@@ -13659,6 +13947,7 @@ type PerfectionistSortObjectTypes = {
13659
13947
  alphabet?: string;
13660
13948
  locales?: (string | string[]);
13661
13949
  order?: ("asc" | "desc");
13950
+ sortBy?: ("name" | "value");
13662
13951
  customGroups?: ({
13663
13952
  fallbackSort?: {
13664
13953
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -13667,9 +13956,10 @@ type PerfectionistSortObjectTypes = {
13667
13956
  };
13668
13957
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13669
13958
  groupName: string;
13670
- newlinesInside?: number;
13959
+ newlinesInside?: ("ignore" | number);
13671
13960
  order?: ("asc" | "desc");
13672
- anyOf: {
13961
+ sortBy?: ("name" | "value");
13962
+ anyOf: [{
13673
13963
  elementNamePattern?: (({
13674
13964
  pattern: string;
13675
13965
  flags?: string;
@@ -13686,8 +13976,24 @@ type PerfectionistSortObjectTypes = {
13686
13976
  pattern: string;
13687
13977
  flags?: string;
13688
13978
  } | string));
13689
- sortBy?: ("name" | "value");
13690
- }[];
13979
+ }, ...({
13980
+ elementNamePattern?: (({
13981
+ pattern: string;
13982
+ flags?: string;
13983
+ } | string)[] | ({
13984
+ pattern: string;
13985
+ flags?: string;
13986
+ } | string));
13987
+ modifiers?: ("optional" | "required" | "multiline")[];
13988
+ selector?: ("index-signature" | "member" | "method" | "property");
13989
+ elementValuePattern?: (({
13990
+ pattern: string;
13991
+ flags?: string;
13992
+ } | string)[] | ({
13993
+ pattern: string;
13994
+ flags?: string;
13995
+ } | string));
13996
+ })[]];
13691
13997
  } | {
13692
13998
  fallbackSort?: {
13693
13999
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -13696,8 +14002,9 @@ type PerfectionistSortObjectTypes = {
13696
14002
  };
13697
14003
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13698
14004
  groupName: string;
13699
- newlinesInside?: number;
14005
+ newlinesInside?: ("ignore" | number);
13700
14006
  order?: ("asc" | "desc");
14007
+ sortBy?: ("name" | "value");
13701
14008
  elementNamePattern?: (({
13702
14009
  pattern: string;
13703
14010
  flags?: string;
@@ -13714,16 +14021,22 @@ type PerfectionistSortObjectTypes = {
13714
14021
  pattern: string;
13715
14022
  flags?: string;
13716
14023
  } | string));
13717
- sortBy?: ("name" | "value");
13718
14024
  })[];
14025
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
13719
14026
  groups?: (string | [string, ...(string)[]] | {
13720
14027
  newlinesBetween: ("ignore" | number);
13721
14028
  } | {
13722
14029
  group: (string | [string, ...(string)[]]);
14030
+ fallbackSort?: {
14031
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14032
+ order?: ("asc" | "desc");
14033
+ sortBy?: ("name" | "value");
14034
+ };
13723
14035
  commentAbove?: string;
13724
14036
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13725
- newlinesInside?: number;
14037
+ newlinesInside?: ("ignore" | number);
13726
14038
  order?: ("asc" | "desc");
14039
+ sortBy?: ("name" | "value");
13727
14040
  })[];
13728
14041
  newlinesBetween?: ("ignore" | number);
13729
14042
  useConfigurationIf?: {
@@ -13777,7 +14090,6 @@ type PerfectionistSortObjectTypes = {
13777
14090
  } | string)));
13778
14091
  });
13779
14092
  partitionByNewLine?: boolean;
13780
- sortBy?: ("name" | "value");
13781
14093
  }[];
13782
14094
  // ----- perfectionist/sort-objects -----
13783
14095
  type PerfectionistSortObjects = {
@@ -13798,9 +14110,26 @@ type PerfectionistSortObjects = {
13798
14110
  };
13799
14111
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13800
14112
  groupName: string;
13801
- newlinesInside?: number;
14113
+ newlinesInside?: ("ignore" | number);
13802
14114
  order?: ("asc" | "desc");
13803
- anyOf: {
14115
+ anyOf: [{
14116
+ elementNamePattern?: (({
14117
+ pattern: string;
14118
+ flags?: string;
14119
+ } | string)[] | ({
14120
+ pattern: string;
14121
+ flags?: string;
14122
+ } | string));
14123
+ modifiers?: ("optional" | "required" | "multiline")[];
14124
+ selector?: ("member" | "method" | "property");
14125
+ elementValuePattern?: (({
14126
+ pattern: string;
14127
+ flags?: string;
14128
+ } | string)[] | ({
14129
+ pattern: string;
14130
+ flags?: string;
14131
+ } | string));
14132
+ }, ...({
13804
14133
  elementNamePattern?: (({
13805
14134
  pattern: string;
13806
14135
  flags?: string;
@@ -13817,7 +14146,7 @@ type PerfectionistSortObjects = {
13817
14146
  pattern: string;
13818
14147
  flags?: string;
13819
14148
  } | string));
13820
- }[];
14149
+ })[]];
13821
14150
  } | {
13822
14151
  fallbackSort?: {
13823
14152
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -13825,7 +14154,7 @@ type PerfectionistSortObjects = {
13825
14154
  };
13826
14155
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13827
14156
  groupName: string;
13828
- newlinesInside?: number;
14157
+ newlinesInside?: ("ignore" | number);
13829
14158
  order?: ("asc" | "desc");
13830
14159
  elementNamePattern?: (({
13831
14160
  pattern: string;
@@ -13844,13 +14173,18 @@ type PerfectionistSortObjects = {
13844
14173
  flags?: string;
13845
14174
  } | string));
13846
14175
  })[];
14176
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
13847
14177
  groups?: (string | [string, ...(string)[]] | {
13848
14178
  newlinesBetween: ("ignore" | number);
13849
14179
  } | {
13850
14180
  group: (string | [string, ...(string)[]]);
14181
+ fallbackSort?: {
14182
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14183
+ order?: ("asc" | "desc");
14184
+ };
13851
14185
  commentAbove?: string;
13852
14186
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13853
- newlinesInside?: number;
14187
+ newlinesInside?: ("ignore" | number);
13854
14188
  order?: ("asc" | "desc");
13855
14189
  })[];
13856
14190
  newlinesBetween?: ("ignore" | number);
@@ -13936,9 +14270,9 @@ type PerfectionistSortSets = {
13936
14270
  };
13937
14271
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13938
14272
  groupName: string;
13939
- newlinesInside?: number;
14273
+ newlinesInside?: ("ignore" | number);
13940
14274
  order?: ("asc" | "desc");
13941
- anyOf: {
14275
+ anyOf: [{
13942
14276
  elementNamePattern?: (({
13943
14277
  pattern: string;
13944
14278
  flags?: string;
@@ -13947,7 +14281,16 @@ type PerfectionistSortSets = {
13947
14281
  flags?: string;
13948
14282
  } | string));
13949
14283
  selector?: ("literal" | "spread");
13950
- }[];
14284
+ }, ...({
14285
+ elementNamePattern?: (({
14286
+ pattern: string;
14287
+ flags?: string;
14288
+ } | string)[] | ({
14289
+ pattern: string;
14290
+ flags?: string;
14291
+ } | string));
14292
+ selector?: ("literal" | "spread");
14293
+ })[]];
13951
14294
  } | {
13952
14295
  fallbackSort?: {
13953
14296
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -13955,7 +14298,7 @@ type PerfectionistSortSets = {
13955
14298
  };
13956
14299
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13957
14300
  groupName: string;
13958
- newlinesInside?: number;
14301
+ newlinesInside?: ("ignore" | number);
13959
14302
  order?: ("asc" | "desc");
13960
14303
  elementNamePattern?: (({
13961
14304
  pattern: string;
@@ -13966,13 +14309,18 @@ type PerfectionistSortSets = {
13966
14309
  } | string));
13967
14310
  selector?: ("literal" | "spread");
13968
14311
  })[];
14312
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
13969
14313
  groups?: (string | [string, ...(string)[]] | {
13970
14314
  newlinesBetween: ("ignore" | number);
13971
14315
  } | {
13972
14316
  group: (string | [string, ...(string)[]]);
14317
+ fallbackSort?: {
14318
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14319
+ order?: ("asc" | "desc");
14320
+ };
13973
14321
  commentAbove?: string;
13974
14322
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
13975
- newlinesInside?: number;
14323
+ newlinesInside?: ("ignore" | number);
13976
14324
  order?: ("asc" | "desc");
13977
14325
  })[];
13978
14326
  newlinesBetween?: ("ignore" | number);
@@ -14041,9 +14389,18 @@ type PerfectionistSortUnionTypes = {
14041
14389
  };
14042
14390
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14043
14391
  groupName: string;
14044
- newlinesInside?: number;
14392
+ newlinesInside?: ("ignore" | number);
14045
14393
  order?: ("asc" | "desc");
14046
- anyOf: {
14394
+ anyOf: [{
14395
+ elementNamePattern?: (({
14396
+ pattern: string;
14397
+ flags?: string;
14398
+ } | string)[] | ({
14399
+ pattern: string;
14400
+ flags?: string;
14401
+ } | string));
14402
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
14403
+ }, ...({
14047
14404
  elementNamePattern?: (({
14048
14405
  pattern: string;
14049
14406
  flags?: string;
@@ -14052,7 +14409,7 @@ type PerfectionistSortUnionTypes = {
14052
14409
  flags?: string;
14053
14410
  } | string));
14054
14411
  selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
14055
- }[];
14412
+ })[]];
14056
14413
  } | {
14057
14414
  fallbackSort?: {
14058
14415
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -14060,7 +14417,7 @@ type PerfectionistSortUnionTypes = {
14060
14417
  };
14061
14418
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14062
14419
  groupName: string;
14063
- newlinesInside?: number;
14420
+ newlinesInside?: ("ignore" | number);
14064
14421
  order?: ("asc" | "desc");
14065
14422
  elementNamePattern?: (({
14066
14423
  pattern: string;
@@ -14071,13 +14428,18 @@ type PerfectionistSortUnionTypes = {
14071
14428
  } | string));
14072
14429
  selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
14073
14430
  })[];
14431
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
14074
14432
  groups?: (string | [string, ...(string)[]] | {
14075
14433
  newlinesBetween: ("ignore" | number);
14076
14434
  } | {
14077
14435
  group: (string | [string, ...(string)[]]);
14436
+ fallbackSort?: {
14437
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14438
+ order?: ("asc" | "desc");
14439
+ };
14078
14440
  commentAbove?: string;
14079
14441
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14080
- newlinesInside?: number;
14442
+ newlinesInside?: ("ignore" | number);
14081
14443
  order?: ("asc" | "desc");
14082
14444
  })[];
14083
14445
  newlinesBetween?: ("ignore" | number);
@@ -14124,9 +14486,9 @@ type PerfectionistSortVariableDeclarations = [] | [{
14124
14486
  };
14125
14487
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14126
14488
  groupName: string;
14127
- newlinesInside?: number;
14489
+ newlinesInside?: ("ignore" | number);
14128
14490
  order?: ("asc" | "desc");
14129
- anyOf: {
14491
+ anyOf: [{
14130
14492
  elementNamePattern?: (({
14131
14493
  pattern: string;
14132
14494
  flags?: string;
@@ -14135,7 +14497,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
14135
14497
  flags?: string;
14136
14498
  } | string));
14137
14499
  selector?: ("initialized" | "uninitialized");
14138
- }[];
14500
+ }, ...({
14501
+ elementNamePattern?: (({
14502
+ pattern: string;
14503
+ flags?: string;
14504
+ } | string)[] | ({
14505
+ pattern: string;
14506
+ flags?: string;
14507
+ } | string));
14508
+ selector?: ("initialized" | "uninitialized");
14509
+ })[]];
14139
14510
  } | {
14140
14511
  fallbackSort?: {
14141
14512
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -14143,7 +14514,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
14143
14514
  };
14144
14515
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14145
14516
  groupName: string;
14146
- newlinesInside?: number;
14517
+ newlinesInside?: ("ignore" | number);
14147
14518
  order?: ("asc" | "desc");
14148
14519
  elementNamePattern?: (({
14149
14520
  pattern: string;
@@ -14154,13 +14525,18 @@ type PerfectionistSortVariableDeclarations = [] | [{
14154
14525
  } | string));
14155
14526
  selector?: ("initialized" | "uninitialized");
14156
14527
  })[];
14528
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
14157
14529
  groups?: (string | [string, ...(string)[]] | {
14158
14530
  newlinesBetween: ("ignore" | number);
14159
14531
  } | {
14160
14532
  group: (string | [string, ...(string)[]]);
14533
+ fallbackSort?: {
14534
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14535
+ order?: ("asc" | "desc");
14536
+ };
14161
14537
  commentAbove?: string;
14162
14538
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14163
- newlinesInside?: number;
14539
+ newlinesInside?: ("ignore" | number);
14164
14540
  order?: ("asc" | "desc");
14165
14541
  })[];
14166
14542
  newlinesBetween?: ("ignore" | number);