@biscuittin/eslint-config 0.0.4 → 0.0.5

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/typegen.d.ts CHANGED
@@ -49,447 +49,497 @@ export interface RuleOptions {
49
49
  */
50
50
  '@eslint-community/eslint-comments/require-description'?: Linter.RuleEntry<EslintCommunityEslintCommentsRequireDescription>
51
51
  /**
52
- * disallow using shorthand boolean attributes
52
+ * Enforces explicit boolean values for boolean attributes.
53
53
  * @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
54
54
  */
55
55
  '@eslint-react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
56
56
  /**
57
- * disallow using shorthand fragment syntax
57
+ * Enforces explicit `<Fragment>` components instead of the shorthand `<>` or `</>` syntax.
58
58
  * @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
59
59
  */
60
60
  '@eslint-react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
61
61
  /**
62
- * report all class components, including anonymous ones
62
+ * Reports all class components.
63
63
  * @see https://eslint-react.xyz/docs/rules/debug-class-component
64
64
  */
65
65
  '@eslint-react/debug/class-component'?: Linter.RuleEntry<[]>
66
66
  /**
67
- * report all function components, including anonymous ones
67
+ * Reports all function components.
68
68
  * @see https://eslint-react.xyz/docs/rules/debug-function-component
69
69
  */
70
70
  '@eslint-react/debug/function-component'?: Linter.RuleEntry<[]>
71
71
  /**
72
- * report all React Hooks
72
+ * Reports all React Hooks.
73
73
  * @see https://eslint-react.xyz/docs/rules/debug-hook
74
74
  */
75
75
  '@eslint-react/debug/hook'?: Linter.RuleEntry<[]>
76
76
  /**
77
- * report all identifiers that are initialized from React.
77
+ * Report all identifiers that are initialized from React.
78
78
  * @see https://eslint-react.xyz/docs/rules/debug-is-from-react
79
79
  */
80
80
  '@eslint-react/debug/is-from-react'?: Linter.RuleEntry<[]>
81
81
  /**
82
- * report all React Hooks
82
+ * Reports all React Hooks.
83
83
  * @see https://eslint-react.xyz/docs/rules/debug-hook
84
84
  */
85
85
  '@eslint-react/debug/react-hooks'?: Linter.RuleEntry<[]>
86
86
  /**
87
- * disallow void elements (AKA self-closing elements) from having children
87
+ * Disallow `children` in void DOM elements.
88
88
  * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
89
89
  */
90
90
  '@eslint-react/dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
91
91
  /**
92
- * disallow when a DOM component is using 'dangerouslySetInnerHTML'
92
+ * Disallow `dangerouslySetInnerHTML`.
93
93
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
94
94
  */
95
95
  '@eslint-react/dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>
96
96
  /**
97
- * disallow when a DOM component is using both 'children' and 'dangerouslySetInnerHTML'
97
+ * Disallow `dangerouslySetInnerHTML` and `children` at the same time.
98
98
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
99
99
  */
100
100
  '@eslint-react/dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>
101
101
  /**
102
- * disallow 'findDOMNode'
102
+ * Disallow `findDOMNode`.
103
103
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
104
104
  */
105
105
  '@eslint-react/dom/no-find-dom-node'?: Linter.RuleEntry<[]>
106
106
  /**
107
- * enforce that button component have an explicit 'type' attribute
107
+ * Disallow `flushSync`.
108
+ * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
109
+ */
110
+ '@eslint-react/dom/no-flush-sync'?: Linter.RuleEntry<[]>
111
+ /**
112
+ * Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.
113
+ * @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
114
+ */
115
+ '@eslint-react/dom/no-hydrate'?: Linter.RuleEntry<[]>
116
+ /**
117
+ * Enforces explicit `type` attribute for `button` elements.
108
118
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
109
119
  */
110
120
  '@eslint-react/dom/no-missing-button-type'?: Linter.RuleEntry<[]>
111
121
  /**
112
- * enforce that 'iframe' component have an explicit 'sandbox' attribute
122
+ * Enforces explicit `sandbox` attribute for `iframe` elements.
113
123
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
114
124
  */
115
125
  '@eslint-react/dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
116
126
  /**
117
- * enforce that namespaces are not used in React elements
127
+ * Enforces the absence of a `namespace` in React elements.
118
128
  * @see https://eslint-react.xyz/docs/rules/dom-no-namespace
119
129
  */
120
130
  '@eslint-react/dom/no-namespace'?: Linter.RuleEntry<[]>
121
131
  /**
122
- * disallow usage of the return value of 'ReactDOM.render'
132
+ * Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.
133
+ * @see https://eslint-react.xyz/docs/rules/dom-no-render
134
+ */
135
+ '@eslint-react/dom/no-render'?: Linter.RuleEntry<[]>
136
+ /**
137
+ * Disallow the return value of `ReactDOM.render`.
123
138
  * @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
124
139
  */
125
140
  '@eslint-react/dom/no-render-return-value'?: Linter.RuleEntry<[]>
126
141
  /**
127
- * disallow 'javascript:' URLs as JSX event handler prop's value
142
+ * Disallow `javascript:` URLs as attribute values.
128
143
  * @see https://eslint-react.xyz/docs/rules/dom-no-script-url
129
144
  */
130
145
  '@eslint-react/dom/no-script-url'?: Linter.RuleEntry<[]>
131
146
  /**
132
- * disallow usage of unknown DOM property
147
+ * Disallow unknown `DOM` property.
133
148
  * @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
134
149
  */
135
150
  '@eslint-react/dom/no-unknown-property'?: Linter.RuleEntry<EslintReactDomNoUnknownProperty>
136
151
  /**
137
- * disallow unsafe iframe 'sandbox' attribute combinations
152
+ * Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.
138
153
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
139
154
  */
140
155
  '@eslint-react/dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>
141
156
  /**
142
- * disallow 'target="_blank"' on an external link without 'rel="noreferrer noopener"'
157
+ * Disallow `target="_blank"` without `rel="noreferrer noopener"`.
143
158
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
144
159
  */
145
160
  '@eslint-react/dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
146
161
  /**
147
- * disallow void elements (AKA self-closing elements) from having children
162
+ * Replaces usages of `useFormState` with `useActionState`.
163
+ * @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
164
+ */
165
+ '@eslint-react/dom/no-use-form-state'?: Linter.RuleEntry<[]>
166
+ /**
167
+ * Disallow `children` in void DOM elements.
148
168
  * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
149
169
  */
150
170
  '@eslint-react/dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
151
171
  /**
152
- * require a 'ref' parameter to be set when using 'forwardRef'
153
- * @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
172
+ * Disallow useless `forwardRef` calls on components that don't use `ref`s.
173
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
154
174
  */
155
175
  '@eslint-react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
156
176
  /**
157
- * enforce custom Hooks to use at least one other hook inside
158
- * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
177
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
178
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
159
179
  */
160
180
  '@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
161
181
  /**
162
- * disallow unnecessary usage of 'useCallback'
182
+ * Disallow unnecessary usage of `useCallback`.
163
183
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
164
184
  */
165
185
  '@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
166
186
  /**
167
- * disallow unnecessary usage of 'useMemo'
187
+ * Disallow unnecessary usage of `useMemo`.
168
188
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
169
189
  */
170
190
  '@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
171
191
  /**
172
- * disallow direct calls to the 'set' function of 'useState' in 'useEffect'
192
+ * Disallow direct calls to the `set` function of `useState` in `useEffect`.
173
193
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
174
194
  */
175
195
  '@eslint-react/hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
176
196
  /**
177
- * disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
197
+ * Disallow direct calls to the `set` function of `useState` in `useLayoutEffect`.
178
198
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
179
199
  */
180
200
  '@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
181
201
  /**
182
- * enforce custom Hooks to use at least one other hook inside
183
- * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
202
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
203
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
184
204
  */
185
205
  '@eslint-react/hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
186
206
  /**
187
- * disallow unnecessary usage of 'useCallback'
207
+ * Disallow unnecessary usage of `useCallback`.
188
208
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
189
209
  */
190
210
  '@eslint-react/hooks-extra/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>
191
211
  /**
192
- * disallow unnecessary usage of 'useMemo'
212
+ * Disallow unnecessary usage of `useMemo`.
193
213
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
194
214
  */
195
215
  '@eslint-react/hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
196
216
  /**
197
- * enforce custom Hooks to use at least one other hook inside
198
- * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
217
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
218
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
219
+ */
220
+ '@eslint-react/hooks-extra/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>
221
+ /**
222
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
223
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
199
224
  */
200
225
  '@eslint-react/hooks-extra/no-useless-custom-hooks'?: Linter.RuleEntry<[]>
201
226
  /**
202
- * disallow function calls in 'useState' that aren't wrapped in an initializer function
227
+ * Enforces function calls made inside `useState` to be wrapped in an `initializer function`.
203
228
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
204
229
  */
205
230
  '@eslint-react/hooks-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
206
231
  /**
207
- * disallow duplicate props
232
+ * Disallow duplicate props in JSX elements.
208
233
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
209
234
  */
210
235
  '@eslint-react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
211
236
  /**
212
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
237
+ * Marks variables used in JSX as used.
213
238
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
214
239
  */
215
240
  '@eslint-react/jsx-uses-vars'?: Linter.RuleEntry<[]>
216
241
  /**
217
- * enforce component naming convention to 'PascalCase' or 'CONSTANT_CASE'
242
+ * Enforces naming conventions for components.
218
243
  * @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
219
244
  */
220
245
  '@eslint-react/naming-convention/component-name'?: Linter.RuleEntry<EslintReactNamingConventionComponentName>
221
246
  /**
222
- * enforce naming convention for JSX filenames
247
+ * Enforces context name to be a valid component name with the suffix `Context`.
248
+ * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
249
+ */
250
+ '@eslint-react/naming-convention/context-name'?: Linter.RuleEntry<[]>
251
+ /**
252
+ * Enforces consistent file naming conventions.
223
253
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename
224
254
  */
225
255
  '@eslint-react/naming-convention/filename'?: Linter.RuleEntry<EslintReactNamingConventionFilename>
226
256
  /**
227
- * enforce naming convention for JSX file extensions
257
+ * Enforces consistent file naming conventions.
228
258
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
229
259
  */
230
260
  '@eslint-react/naming-convention/filename-extension'?: Linter.RuleEntry<EslintReactNamingConventionFilenameExtension>
231
261
  /**
232
- * enforce destructuring and symmetric naming of 'useState' hook value and setter variables
262
+ * Enforces destructuring and symmetric naming of `useState` hook value and setter.
233
263
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
234
264
  */
235
265
  '@eslint-react/naming-convention/use-state'?: Linter.RuleEntry<[]>
236
266
  /**
237
- * disallow accessing 'this.state' within 'setState'
267
+ * Disallow accessing `this.state` inside `setState` calls.
238
268
  * @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
239
269
  */
240
270
  '@eslint-react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
241
271
  /**
242
- * disallow using Array index as 'key'
272
+ * Disallow an item's index in the array as its key.
243
273
  * @see https://eslint-react.xyz/docs/rules/no-array-index-key
244
274
  */
245
275
  '@eslint-react/no-array-index-key'?: Linter.RuleEntry<[]>
246
276
  /**
247
- * disallow using 'Children.count'
277
+ * Disallow `Children.count`.
248
278
  * @see https://eslint-react.xyz/docs/rules/no-children-count
249
279
  */
250
280
  '@eslint-react/no-children-count'?: Linter.RuleEntry<[]>
251
281
  /**
252
- * disallow using 'Children.forEach'
282
+ * Disallow 'Children.forEach'.
253
283
  * @see https://eslint-react.xyz/docs/rules/no-children-for-each
254
284
  */
255
285
  '@eslint-react/no-children-for-each'?: Linter.RuleEntry<[]>
256
286
  /**
257
- * disallow using 'Children.map'
287
+ * Disallow `Children.map`.
258
288
  * @see https://eslint-react.xyz/docs/rules/no-children-map
259
289
  */
260
290
  '@eslint-react/no-children-map'?: Linter.RuleEntry<[]>
261
291
  /**
262
- * disallow using 'Children.only'
292
+ * Disallow `Children.only`.
263
293
  * @see https://eslint-react.xyz/docs/rules/no-children-only
264
294
  */
265
295
  '@eslint-react/no-children-only'?: Linter.RuleEntry<[]>
266
296
  /**
267
- * disallow passing 'children' as props
297
+ * Disallow passing `children` as a prop.
268
298
  * @see https://eslint-react.xyz/docs/rules/no-children-prop
269
299
  */
270
300
  '@eslint-react/no-children-prop'?: Linter.RuleEntry<[]>
271
301
  /**
272
- * disallow using 'Children.toArray'
302
+ * Disallow `Children.toArray`.
273
303
  * @see https://eslint-react.xyz/docs/rules/no-children-to-array
274
304
  */
275
305
  '@eslint-react/no-children-to-array'?: Linter.RuleEntry<[]>
276
306
  /**
277
- * disallow using class components
307
+ * Disallow class components.
278
308
  * @see https://eslint-react.xyz/docs/rules/no-class-component
279
309
  */
280
310
  '@eslint-react/no-class-component'?: Linter.RuleEntry<[]>
281
311
  /**
282
- * disallow using 'cloneElement'
312
+ * Disallow `cloneElement`.
283
313
  * @see https://eslint-react.xyz/docs/rules/no-clone-element
284
314
  */
285
315
  '@eslint-react/no-clone-element'?: Linter.RuleEntry<[]>
286
316
  /**
287
- * disallow comments from being inserted as text nodes
317
+ * Prevents comments from being inserted as text nodes.
288
318
  * @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
289
319
  */
290
320
  '@eslint-react/no-comment-textnodes'?: Linter.RuleEntry<[]>
291
321
  /**
292
- * disallow complex conditional rendering
322
+ * Disallow complex conditional rendering in JSX expressions.
293
323
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
294
324
  */
295
325
  '@eslint-react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
296
326
  /**
297
- * disallow complex conditional rendering
327
+ * Disallow complex conditional rendering in JSX expressions.
298
328
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
299
329
  */
300
330
  '@eslint-react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
301
331
  /**
302
- * disallow using 'componentWillMount'
332
+ * Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.
303
333
  * @see https://eslint-react.xyz/docs/rules/no-component-will-mount
304
334
  */
305
335
  '@eslint-react/no-component-will-mount'?: Linter.RuleEntry<[]>
306
336
  /**
307
- * disallow using 'componentWillReceiveProps'
337
+ * Replace usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.
308
338
  * @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
309
339
  */
310
340
  '@eslint-react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
311
341
  /**
312
- * disallow using 'componentWillReceiveProps'
342
+ * Replace usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`.
313
343
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
314
344
  */
315
345
  '@eslint-react/no-component-will-update'?: Linter.RuleEntry<[]>
316
346
  /**
317
- * disallow the use of '<Context.Provider>'
347
+ * Replace usages of `<Context.Provider>` with `<Context>`.
318
348
  * @see https://eslint-react.xyz/docs/rules/no-context-provider
319
349
  */
320
350
  '@eslint-react/no-context-provider'?: Linter.RuleEntry<[]>
321
351
  /**
322
- * disallow using 'createRef' in function components
352
+ * Disallow `createRef` in function components.
323
353
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
324
354
  */
325
355
  '@eslint-react/no-create-ref'?: Linter.RuleEntry<[]>
326
356
  /**
327
- * disallow using 'defaultProps' property in components
357
+ * Disallow `defaultProps` property in favor of ES6 default parameters.
328
358
  * @see https://eslint-react.xyz/docs/rules/no-default-props
329
359
  */
330
360
  '@eslint-react/no-default-props'?: Linter.RuleEntry<[]>
331
361
  /**
332
- * disallow direct mutation of state
362
+ * Disallow direct mutation of `this.state`.
333
363
  * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
334
364
  */
335
365
  '@eslint-react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
336
366
  /**
337
- * disallow duplicate props
367
+ * Disallow duplicate props in JSX elements.
338
368
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
339
369
  */
340
370
  '@eslint-react/no-duplicate-jsx-props'?: Linter.RuleEntry<[]>
341
371
  /**
342
- * disallow duplicate keys when rendering list
372
+ * Disallow duplicate `key` on elements in the same array or a list of `children`.
343
373
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
344
374
  */
345
375
  '@eslint-react/no-duplicate-key'?: Linter.RuleEntry<[]>
346
376
  /**
347
- * disallow the use of 'forwardRef'
377
+ * Replaces usages of `forwardRef` with passing `ref` as a prop.
348
378
  * @see https://eslint-react.xyz/docs/rules/no-forward-ref
349
379
  */
350
380
  '@eslint-react/no-forward-ref'?: Linter.RuleEntry<[]>
351
381
  /**
352
- * disallow implicit 'key' props
382
+ * Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).
353
383
  * @see https://eslint-react.xyz/docs/rules/no-implicit-key
354
384
  */
355
385
  '@eslint-react/no-implicit-key'?: Linter.RuleEntry<[]>
356
386
  /**
357
- * disallow problematic leaked values from being rendered
387
+ * Prevents problematic leaked values from being rendered.
358
388
  * @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
359
389
  */
360
390
  '@eslint-react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>
361
391
  /**
362
- * require 'displayName' for 'memo' and 'forwardRef' components
392
+ * Enforces that all components have a `displayName` which can be used in devtools.
363
393
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
364
394
  */
365
395
  '@eslint-react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
366
396
  /**
367
- * require 'key' when rendering list
397
+ * Enforces that all contexts have a `displayName` which can be used in devtools.
398
+ * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
399
+ */
400
+ '@eslint-react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
401
+ /**
402
+ * Disallow missing `key` on items in list rendering.
368
403
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
369
404
  */
370
405
  '@eslint-react/no-missing-key'?: Linter.RuleEntry<[]>
371
406
  /**
372
- * disallow using unstable nested components
373
- * @see https://eslint-react.xyz/docs/rules/no-nested-components
407
+ * Disallow nesting component definitions inside other components.
408
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
409
+ */
410
+ '@eslint-react/no-nested-component-definitions'?: Linter.RuleEntry<[]>
411
+ /**
412
+ * Disallow nesting component definitions inside other components.
413
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
374
414
  */
375
415
  '@eslint-react/no-nested-components'?: Linter.RuleEntry<[]>
376
416
  /**
377
- * disallow using 'propTypes' property in components
417
+ * Disallow `propTypes` in favor of TypeScript or another type-checking solution.
378
418
  * @see https://eslint-react.xyz/docs/rules/no-prop-types
379
419
  */
380
420
  '@eslint-react/no-prop-types'?: Linter.RuleEntry<[]>
381
421
  /**
382
- * disallow using 'shouldComponentUpdate' in class component extends 'React.PureComponent'
422
+ * Disallow `shouldComponentUpdate` when extending `React.PureComponent`.
383
423
  * @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
384
424
  */
385
425
  '@eslint-react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
386
426
  /**
387
- * disallow using 'setState' in 'componentDidMount'
427
+ * Disallow calling `this.setState` in `componentDidMount` outside of functions, such as callbacks.
388
428
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
389
429
  */
390
430
  '@eslint-react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
391
431
  /**
392
- * disallow using 'setState' in 'componentDidUpdate'
432
+ * Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
393
433
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
394
434
  */
395
435
  '@eslint-react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
396
436
  /**
397
- * disallow using 'setState' in 'componentWillUpdate'
437
+ * Disallows calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.
398
438
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
399
439
  */
400
440
  '@eslint-react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
401
441
  /**
402
- * disallow using deprecated string refs
442
+ * Disallow deprecated string `refs`.
403
443
  * @see https://eslint-react.xyz/docs/rules/no-string-refs
404
444
  */
405
445
  '@eslint-react/no-string-refs'?: Linter.RuleEntry<[]>
406
446
  /**
407
- * disallow using 'UNSAFE_componentWillMount'
447
+ * Warns the usage of `UNSAFE_componentWillMount` in class components.
408
448
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
409
449
  */
410
450
  '@eslint-react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>
411
451
  /**
412
- * disallow using 'UNSAFE_componentWillReceiveProps'
452
+ * Warns the usage of `UNSAFE_componentWillReceiveProps` in class components.
413
453
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
414
454
  */
415
455
  '@eslint-react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>
416
456
  /**
417
- * disallow using 'UNSAFE_componentWillUpdate'
457
+ * Warns the usage of `UNSAFE_componentWillUpdate` in class components.
418
458
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
419
459
  */
420
460
  '@eslint-react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>
421
461
  /**
422
- * disallow passing constructed values to context providers
462
+ * Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`.
423
463
  * @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
424
464
  */
425
465
  '@eslint-react/no-unstable-context-value'?: Linter.RuleEntry<[]>
426
466
  /**
427
- * disallow using unstable value as default param in function component
467
+ * Prevents using referential-type values as default props in object destructuring.
428
468
  * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
429
469
  */
430
470
  '@eslint-react/no-unstable-default-props'?: Linter.RuleEntry<[]>
431
471
  /**
432
- * disallow unused class component members
472
+ * Warns unused class component methods and properties.
433
473
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
434
474
  */
435
475
  '@eslint-react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
436
476
  /**
437
- * disallow unused state of class component
477
+ * Warns unused class component state.
438
478
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
439
479
  */
440
480
  '@eslint-react/no-unused-state'?: Linter.RuleEntry<[]>
441
481
  /**
442
- * disallow unnecessary fragments
482
+ * Replaces usages of `useContext` with `use`.
483
+ * @see https://eslint-react.xyz/docs/rules/no-use-context
484
+ */
485
+ '@eslint-react/no-use-context'?: Linter.RuleEntry<[]>
486
+ /**
487
+ * Disallow useless `forwardRef` calls on components that don't use `ref`s.
488
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
489
+ */
490
+ '@eslint-react/no-useless-forward-ref'?: Linter.RuleEntry<[]>
491
+ /**
492
+ * Disallow useless fragment elements.
443
493
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
444
494
  */
445
495
  '@eslint-react/no-useless-fragment'?: Linter.RuleEntry<EslintReactNoUselessFragment>
446
496
  /**
447
- * enforce using destructuring assignment in component props and context
497
+ * Enforces destructuring assignment for component props and context.
448
498
  * @see https://eslint-react.xyz/docs/rules/prefer-destructuring-assignment
449
499
  */
450
500
  '@eslint-react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
451
501
  /**
452
- * enforce React is imported via a namespace import
502
+ * Enforces React is imported via a namespace import.
453
503
  * @see https://eslint-react.xyz/docs/rules/prefer-react-namespace-import
454
504
  */
455
505
  '@eslint-react/prefer-react-namespace-import'?: Linter.RuleEntry<[]>
456
506
  /**
457
- * enforce read-only props in components
507
+ * Enforces read-only props in components.
458
508
  * @see https://eslint-react.xyz/docs/rules/prefer-read-only-props
459
509
  */
460
510
  '@eslint-react/prefer-read-only-props'?: Linter.RuleEntry<[]>
461
511
  /**
462
- * enforce using shorthand boolean attributes
512
+ * Enforces shorthand syntax for boolean attributes.
463
513
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
464
514
  */
465
515
  '@eslint-react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
466
516
  /**
467
- * enforce using fragment syntax instead of 'Fragment' component
517
+ * Enforces shorthand syntax for fragments.
468
518
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
469
519
  */
470
520
  '@eslint-react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
471
521
  /**
472
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
522
+ * Marks variables used in JSX as used.
473
523
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
474
524
  */
475
525
  '@eslint-react/use-jsx-vars'?: Linter.RuleEntry<[]>
476
526
  /**
477
- * enforce that every 'addEventListener' in a component or custom Hook has a corresponding 'removeEventListener'.
527
+ * Prevents leaked `addEventListener` in a component or custom Hook.
478
528
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
479
529
  */
480
530
  '@eslint-react/web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>
481
531
  /**
482
- * enforce that every 'setInterval' in a component or custom Hook has a corresponding 'clearInterval'.
532
+ * Prevents leaked `setInterval` in a component or custom Hook.
483
533
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
484
534
  */
485
535
  '@eslint-react/web-api/no-leaked-interval'?: Linter.RuleEntry<[]>
486
536
  /**
487
- * enforce cleanup of 'ResizeObserver' instances in components and custom Hooks.
537
+ * Prevents leaked `ResizeObserver` in a component or custom Hook.
488
538
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
489
539
  */
490
540
  '@eslint-react/web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>
491
541
  /**
492
- * enforce that every 'setTimeout' in a component or custom Hook has a corresponding 'clearTimeout'.
542
+ * Prevents leaked `setTimeout` in a component or custom Hook.
493
543
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
494
544
  */
495
545
  '@eslint-react/web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>
@@ -910,7 +960,7 @@ export interface RuleOptions {
910
960
  */
911
961
  '@typescript-eslint/no-for-in-array'?: Linter.RuleEntry<[]>
912
962
  /**
913
- * Disallow the use of `eval()`-like methods
963
+ * Disallow the use of `eval()`-like functions
914
964
  * @see https://typescript-eslint.io/rules/no-implied-eval
915
965
  */
916
966
  '@typescript-eslint/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -2365,233 +2415,233 @@ export interface RuleOptions {
2365
2415
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
2366
2416
  /**
2367
2417
  * Enforce or ban the use of inline type-only markers for named imports.
2368
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
2418
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/consistent-type-specifier-style.md
2369
2419
  */
2370
2420
  'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
2371
2421
  /**
2372
2422
  * Ensure a default export is present, given a default import.
2373
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
2423
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/default.md
2374
2424
  */
2375
2425
  'import-x/default'?: Linter.RuleEntry<[]>
2376
2426
  /**
2377
2427
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
2378
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
2428
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/dynamic-import-chunkname.md
2379
2429
  */
2380
2430
  'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
2381
2431
  /**
2382
2432
  * Forbid any invalid exports, i.e. re-export of the same name.
2383
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
2433
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/export.md
2384
2434
  */
2385
2435
  'import-x/export'?: Linter.RuleEntry<[]>
2386
2436
  /**
2387
2437
  * Ensure all exports appear after other statements.
2388
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
2438
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/exports-last.md
2389
2439
  */
2390
2440
  'import-x/exports-last'?: Linter.RuleEntry<[]>
2391
2441
  /**
2392
2442
  * Ensure consistent use of file extension within the import path.
2393
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
2443
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/extensions.md
2394
2444
  */
2395
2445
  'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
2396
2446
  /**
2397
2447
  * Ensure all imports appear before other statements.
2398
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
2448
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/first.md
2399
2449
  */
2400
2450
  'import-x/first'?: Linter.RuleEntry<ImportXFirst>
2401
2451
  /**
2402
2452
  * Prefer named exports to be grouped together in a single export declaration.
2403
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
2453
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/group-exports.md
2404
2454
  */
2405
2455
  'import-x/group-exports'?: Linter.RuleEntry<[]>
2406
2456
  /**
2407
2457
  * Replaced by `import-x/first`.
2408
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
2458
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/imports-first.md
2409
2459
  * @deprecated
2410
2460
  */
2411
2461
  'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
2412
2462
  /**
2413
2463
  * Enforce the maximum number of dependencies a module can have.
2414
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
2464
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/max-dependencies.md
2415
2465
  */
2416
2466
  'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
2417
2467
  /**
2418
2468
  * Ensure named imports correspond to a named export in the remote file.
2419
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
2469
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/named.md
2420
2470
  */
2421
2471
  'import-x/named'?: Linter.RuleEntry<ImportXNamed>
2422
2472
  /**
2423
2473
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
2424
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
2474
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/namespace.md
2425
2475
  */
2426
2476
  'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
2427
2477
  /**
2428
2478
  * Enforce a newline after import statements.
2429
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
2479
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/newline-after-import.md
2430
2480
  */
2431
2481
  'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
2432
2482
  /**
2433
2483
  * Forbid import of modules using absolute paths.
2434
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
2484
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-absolute-path.md
2435
2485
  */
2436
2486
  'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
2437
2487
  /**
2438
2488
  * Forbid AMD `require` and `define` calls.
2439
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
2489
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-amd.md
2440
2490
  */
2441
2491
  'import-x/no-amd'?: Linter.RuleEntry<[]>
2442
2492
  /**
2443
2493
  * Forbid anonymous values as default exports.
2444
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
2494
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-anonymous-default-export.md
2445
2495
  */
2446
2496
  'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
2447
2497
  /**
2448
2498
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
2449
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
2499
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-commonjs.md
2450
2500
  */
2451
2501
  'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
2452
2502
  /**
2453
2503
  * Forbid a module from importing a module with a dependency path back to itself.
2454
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
2504
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-cycle.md
2455
2505
  */
2456
2506
  'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
2457
2507
  /**
2458
2508
  * Forbid default exports.
2459
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
2509
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-default-export.md
2460
2510
  */
2461
2511
  'import-x/no-default-export'?: Linter.RuleEntry<[]>
2462
2512
  /**
2463
2513
  * Forbid imported names marked with `@deprecated` documentation tag.
2464
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
2514
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-deprecated.md
2465
2515
  */
2466
2516
  'import-x/no-deprecated'?: Linter.RuleEntry<[]>
2467
2517
  /**
2468
2518
  * Forbid repeated import of the same module in multiple places.
2469
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
2519
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-duplicates.md
2470
2520
  */
2471
2521
  'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
2472
2522
  /**
2473
2523
  * Forbid `require()` calls with expressions.
2474
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
2524
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-dynamic-require.md
2475
2525
  */
2476
2526
  'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
2477
2527
  /**
2478
2528
  * Forbid empty named import blocks.
2479
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
2529
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-empty-named-blocks.md
2480
2530
  */
2481
2531
  'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
2482
2532
  /**
2483
2533
  * Forbid the use of extraneous packages.
2484
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
2534
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-extraneous-dependencies.md
2485
2535
  */
2486
2536
  'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
2487
2537
  /**
2488
2538
  * Forbid import statements with CommonJS module.exports.
2489
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
2539
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-import-module-exports.md
2490
2540
  */
2491
2541
  'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
2492
2542
  /**
2493
2543
  * Forbid importing the submodules of other modules.
2494
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
2544
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-internal-modules.md
2495
2545
  */
2496
2546
  'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
2497
2547
  /**
2498
2548
  * Forbid the use of mutable exports with `var` or `let`.
2499
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
2549
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-mutable-exports.md
2500
2550
  */
2501
2551
  'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
2502
2552
  /**
2503
2553
  * Forbid use of exported name as identifier of default export.
2504
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
2554
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-as-default.md
2505
2555
  */
2506
2556
  'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
2507
2557
  /**
2508
2558
  * Forbid use of exported name as property of default export.
2509
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
2559
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-as-default-member.md
2510
2560
  */
2511
2561
  'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
2512
2562
  /**
2513
2563
  * Forbid named default exports.
2514
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
2564
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-default.md
2515
2565
  */
2516
2566
  'import-x/no-named-default'?: Linter.RuleEntry<[]>
2517
2567
  /**
2518
2568
  * Forbid named exports.
2519
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
2569
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-named-export.md
2520
2570
  */
2521
2571
  'import-x/no-named-export'?: Linter.RuleEntry<[]>
2522
2572
  /**
2523
2573
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
2524
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
2574
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-namespace.md
2525
2575
  */
2526
2576
  'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
2527
2577
  /**
2528
2578
  * Forbid Node.js builtin modules.
2529
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
2579
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-nodejs-modules.md
2530
2580
  */
2531
2581
  'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
2532
2582
  /**
2533
2583
  * Forbid importing packages through relative paths.
2534
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
2584
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-relative-packages.md
2535
2585
  */
2536
2586
  'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
2537
2587
  /**
2538
2588
  * Forbid importing modules from parent directories.
2539
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
2589
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-relative-parent-imports.md
2540
2590
  */
2541
2591
  'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
2542
2592
  /**
2543
2593
  * Forbid importing a default export by a different name.
2544
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
2594
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-rename-default.md
2545
2595
  */
2546
2596
  'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
2547
2597
  /**
2548
2598
  * Enforce which files can be imported in a given folder.
2549
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
2599
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-restricted-paths.md
2550
2600
  */
2551
2601
  'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
2552
2602
  /**
2553
2603
  * Forbid a module from importing itself.
2554
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
2604
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-self-import.md
2555
2605
  */
2556
2606
  'import-x/no-self-import'?: Linter.RuleEntry<[]>
2557
2607
  /**
2558
2608
  * Forbid unassigned imports.
2559
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
2609
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-unassigned-import.md
2560
2610
  */
2561
2611
  'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
2562
2612
  /**
2563
2613
  * Ensure imports point to a file/module that can be resolved.
2564
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
2614
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-unresolved.md
2565
2615
  */
2566
2616
  'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
2567
2617
  /**
2568
2618
  * Forbid modules without exports, or exports without matching import in another module.
2569
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
2619
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-unused-modules.md
2570
2620
  */
2571
2621
  'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
2572
2622
  /**
2573
2623
  * Forbid unnecessary path segments in import and require statements.
2574
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
2624
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-useless-path-segments.md
2575
2625
  */
2576
2626
  'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
2577
2627
  /**
2578
2628
  * Forbid webpack loader syntax in imports.
2579
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
2629
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/no-webpack-loader-syntax.md
2580
2630
  */
2581
2631
  'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
2582
2632
  /**
2583
2633
  * Enforce a convention in module import order.
2584
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
2634
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/order.md
2585
2635
  */
2586
2636
  'import-x/order'?: Linter.RuleEntry<ImportXOrder>
2587
2637
  /**
2588
2638
  * Prefer a default export if module exports a single name or multiple names.
2589
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
2639
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/prefer-default-export.md
2590
2640
  */
2591
2641
  'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
2592
2642
  /**
2593
2643
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
2594
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
2644
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.1/docs/rules/unambiguous.md
2595
2645
  */
2596
2646
  'import-x/unambiguous'?: Linter.RuleEntry<[]>
2597
2647
  /**
@@ -4310,11 +4360,6 @@ export interface RuleOptions {
4310
4360
  * @see https://reactjs.org/docs/hooks-rules.html
4311
4361
  */
4312
4362
  'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
4313
- /**
4314
- * Enforce components are written as function components
4315
- * @see https://github.com/tatethurston/eslint-plugin-react-prefer-function-component#rule-details
4316
- */
4317
- 'react-prefer-function-component/react-prefer-function-component'?: Linter.RuleEntry<ReactPreferFunctionComponentReactPreferFunctionComponent>
4318
4363
  'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
4319
4364
  /**
4320
4365
  * disallow confusing quantifiers
@@ -4896,702 +4941,642 @@ export interface RuleOptions {
4896
4941
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4897
4942
  /**
4898
4943
  * Improve regexes by making them shorter, consistent, and safer.
4899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
4944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
4900
4945
  */
4901
4946
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4902
4947
  /**
4903
4948
  * Enforce a specific parameter name in catch clauses.
4904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
4949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
4905
4950
  */
4906
4951
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4952
+ /**
4953
+ * Enforce consistent assertion style with `node:assert`.
4954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
4955
+ */
4956
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
4957
+ /**
4958
+ * Prefer passing `Date` directly to the constructor when cloning.
4959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
4960
+ */
4961
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
4907
4962
  /**
4908
4963
  * Use destructured variables over properties.
4909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
4964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
4910
4965
  */
4911
4966
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4912
4967
  /**
4913
4968
  * Prefer consistent types when spreading a ternary in an array literal.
4914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
4969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
4915
4970
  */
4916
4971
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
4917
4972
  /**
4918
4973
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
4974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
4920
4975
  */
4921
4976
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
4922
4977
  /**
4923
4978
  * Move function definitions to the highest possible scope.
4924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
4979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
4925
4980
  */
4926
4981
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4927
4982
  /**
4928
4983
  * Enforce correct `Error` subclassing.
4929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
4984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
4930
4985
  */
4931
4986
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4932
4987
  /**
4933
4988
  * Enforce no spaces between braces.
4934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
4989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
4935
4990
  */
4936
4991
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
4937
4992
  /**
4938
4993
  * Enforce passing a `message` value when creating a built-in error.
4939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
4994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
4940
4995
  */
4941
4996
  'unicorn/error-message'?: Linter.RuleEntry<[]>
4942
4997
  /**
4943
4998
  * Require escape sequences to use uppercase values.
4944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
4999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
4945
5000
  */
4946
5001
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
4947
5002
  /**
4948
5003
  * Add expiration conditions to TODO comments.
4949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
5004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
4950
5005
  */
4951
5006
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
4952
5007
  /**
4953
5008
  * Enforce explicitly comparing the `length` or `size` property of a value.
4954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
5009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
4955
5010
  */
4956
5011
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
4957
5012
  /**
4958
5013
  * Enforce a case style for filenames.
4959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
5014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
4960
5015
  */
4961
5016
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
4962
- /**
4963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
4964
- * @deprecated
4965
- */
4966
- 'unicorn/import-index'?: Linter.RuleEntry<[]>
4967
5017
  /**
4968
5018
  * Enforce specific import styles per module.
4969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
5019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
4970
5020
  */
4971
5021
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
4972
5022
  /**
4973
5023
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
5024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
4975
5025
  */
4976
5026
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
4977
5027
  /**
4978
5028
  * Enforce specifying rules to disable in `eslint-disable` comments.
4979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
5029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
4980
5030
  */
4981
5031
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5032
+ /**
5033
+ * Disallow recursive access to `this` within getters and setters.
5034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
5035
+ */
5036
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
4982
5037
  /**
4983
5038
  * Disallow anonymous functions and classes as the default export.
4984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
5039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
4985
5040
  */
4986
5041
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
4987
5042
  /**
4988
5043
  * Prevent passing a function reference directly to iterator methods.
4989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
5044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
4990
5045
  */
4991
5046
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
4992
5047
  /**
4993
5048
  * Prefer `for…of` over the `forEach` method.
4994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
5049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
4995
5050
  */
4996
5051
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
4997
- /**
4998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
4999
- * @deprecated
5000
- */
5001
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
5002
5052
  /**
5003
5053
  * Disallow using the `this` argument in array methods.
5004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
5054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
5005
5055
  */
5006
5056
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5007
5057
  /**
5008
5058
  * Enforce combining multiple `Array#push()` into one call.
5009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
5059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
5010
5060
  */
5011
5061
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
5012
5062
  /**
5013
5063
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
5064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
5015
5065
  */
5016
5066
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5017
5067
  /**
5018
5068
  * Disallow member access from await expression.
5019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
5069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
5020
5070
  */
5021
5071
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5022
5072
  /**
5023
5073
  * Disallow using `await` in `Promise` method parameters.
5024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
5074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
5025
5075
  */
5026
5076
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5027
5077
  /**
5028
5078
  * Do not use leading/trailing space between `console.log` parameters.
5029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
5079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
5030
5080
  */
5031
5081
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5032
5082
  /**
5033
5083
  * Do not use `document.cookie` directly.
5034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
5084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
5035
5085
  */
5036
5086
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5037
5087
  /**
5038
5088
  * Disallow empty files.
5039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
5089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
5040
5090
  */
5041
5091
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5042
- /**
5043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
5044
- * @deprecated
5045
- */
5046
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
5047
5092
  /**
5048
5093
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
5094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
5050
5095
  */
5051
5096
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5052
5097
  /**
5053
5098
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
5099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
5055
5100
  */
5056
5101
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5057
5102
  /**
5058
- * Require `Array.isArray()` instead of `instanceof Array`.
5059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
5103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
5104
+ * @deprecated
5060
5105
  */
5061
5106
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5107
+ /**
5108
+ * Disallow `instanceof` with built-in objects
5109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
5110
+ */
5111
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5062
5112
  /**
5063
5113
  * Disallow invalid options in `fetch()` and `new Request()`.
5064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
5114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
5065
5115
  */
5066
5116
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5067
5117
  /**
5068
5118
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
5119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
5070
5120
  */
5071
5121
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5072
5122
  /**
5073
5123
  * Disallow identifiers starting with `new` or `class`.
5074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
5124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
5075
5125
  */
5076
5126
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5077
5127
  /**
5078
5128
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
5129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
5080
5130
  */
5081
5131
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5082
5132
  /**
5083
5133
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
5134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
5085
5135
  */
5086
5136
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5087
5137
  /**
5088
5138
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
5139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
5090
5140
  */
5091
5141
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5142
+ /**
5143
+ * Disallow named usage of default import and export.
5144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
5145
+ */
5146
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5092
5147
  /**
5093
5148
  * Disallow negated conditions.
5094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
5149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
5095
5150
  */
5096
5151
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5097
5152
  /**
5098
5153
  * Disallow negated expression in equality check.
5099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
5154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
5100
5155
  */
5101
5156
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5102
5157
  /**
5103
5158
  * Disallow nested ternary expressions.
5104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
5159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
5105
5160
  */
5106
5161
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5107
5162
  /**
5108
5163
  * Disallow `new Array()`.
5109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
5164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
5110
5165
  */
5111
5166
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5112
5167
  /**
5113
5168
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
5169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
5115
5170
  */
5116
5171
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5117
5172
  /**
5118
5173
  * Disallow the use of the `null` literal.
5119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
5174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
5120
5175
  */
5121
5176
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5122
5177
  /**
5123
5178
  * Disallow the use of objects as default parameters.
5124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
5179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
5125
5180
  */
5126
5181
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5127
5182
  /**
5128
5183
  * Disallow `process.exit()`.
5129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
5184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
5130
5185
  */
5131
5186
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5132
- /**
5133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
5134
- * @deprecated
5135
- */
5136
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>
5137
5187
  /**
5138
5188
  * Disallow passing single-element arrays to `Promise` methods.
5139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
5189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
5140
5190
  */
5141
5191
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5142
5192
  /**
5143
5193
  * Disallow classes that only have static members.
5144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
5194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
5145
5195
  */
5146
5196
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5147
5197
  /**
5148
5198
  * Disallow `then` property.
5149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
5199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
5150
5200
  */
5151
5201
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5152
5202
  /**
5153
5203
  * Disallow assigning `this` to a variable.
5154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
5204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
5155
5205
  */
5156
5206
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5157
5207
  /**
5158
5208
  * Disallow comparing `undefined` using `typeof`.
5159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
5209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
5160
5210
  */
5161
5211
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5162
5212
  /**
5163
5213
  * Disallow awaiting non-promise values.
5164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
5214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
5165
5215
  */
5166
5216
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5167
5217
  /**
5168
5218
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
5219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
5170
5220
  */
5171
5221
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5172
5222
  /**
5173
5223
  * Disallow unreadable array destructuring.
5174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
5224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
5175
5225
  */
5176
5226
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5177
5227
  /**
5178
5228
  * Disallow unreadable IIFEs.
5179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
5229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
5180
5230
  */
5181
5231
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5182
- /**
5183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
5184
- * @deprecated
5185
- */
5186
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
5187
5232
  /**
5188
5233
  * Disallow unused object properties.
5189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
5234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
5190
5235
  */
5191
5236
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5192
5237
  /**
5193
5238
  * Disallow useless fallback when spreading in object literals.
5194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
5239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
5195
5240
  */
5196
5241
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5197
5242
  /**
5198
5243
  * Disallow useless array length check.
5199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
5244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
5200
5245
  */
5201
5246
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5202
5247
  /**
5203
5248
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
5249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
5205
5250
  */
5206
5251
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5207
5252
  /**
5208
5253
  * Disallow unnecessary spread.
5209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
5254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
5210
5255
  */
5211
5256
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5212
5257
  /**
5213
5258
  * Disallow useless case in switch statements.
5214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
5259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
5215
5260
  */
5216
5261
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5217
5262
  /**
5218
5263
  * Disallow useless `undefined`.
5219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
5264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
5220
5265
  */
5221
5266
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5222
5267
  /**
5223
5268
  * Disallow number literals with zero fractions or dangling dots.
5224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
5269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
5225
5270
  */
5226
5271
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5227
5272
  /**
5228
5273
  * Enforce proper case for numeric literals.
5229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
5274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
5230
5275
  */
5231
5276
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
5232
5277
  /**
5233
5278
  * Enforce the style of numeric separators by correctly grouping digits.
5234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
5279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
5235
5280
  */
5236
5281
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5237
5282
  /**
5238
5283
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
5284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
5240
5285
  */
5241
5286
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5242
5287
  /**
5243
5288
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
5289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
5245
5290
  */
5246
5291
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5247
5292
  /**
5248
5293
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
5294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
5250
5295
  */
5251
5296
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5252
5297
  /**
5253
5298
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
5299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
5255
5300
  */
5256
5301
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5257
5302
  /**
5258
5303
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
5304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
5260
5305
  */
5261
5306
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5262
5307
  /**
5263
5308
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
5309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
5265
5310
  */
5266
5311
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5267
5312
  /**
5268
5313
  * Prefer `.at()` method for index access and `String#charAt()`.
5269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
5314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
5270
5315
  */
5271
5316
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5272
5317
  /**
5273
5318
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
5319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
5275
5320
  */
5276
5321
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5277
5322
  /**
5278
5323
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
5324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
5280
5325
  */
5281
5326
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5282
- /**
5283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
5284
- * @deprecated
5285
- */
5286
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
5287
5327
  /**
5288
5328
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
5329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
5290
5330
  */
5291
5331
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5292
5332
  /**
5293
5333
  * Prefer default parameters over reassignment.
5294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
5334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
5295
5335
  */
5296
5336
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5297
5337
  /**
5298
5338
  * Prefer `Node#append()` over `Node#appendChild()`.
5299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
5339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
5300
5340
  */
5301
5341
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5302
5342
  /**
5303
5343
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
5344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
5305
5345
  */
5306
5346
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5307
5347
  /**
5308
5348
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
5349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
5310
5350
  */
5311
5351
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5312
5352
  /**
5313
5353
  * Prefer `.textContent` over `.innerText`.
5314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
5354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
5315
5355
  */
5316
5356
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5317
- /**
5318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
5319
- * @deprecated
5320
- */
5321
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
5322
5357
  /**
5323
5358
  * Prefer `EventTarget` over `EventEmitter`.
5324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
5359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
5325
5360
  */
5326
5361
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5327
- /**
5328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
5329
- * @deprecated
5330
- */
5331
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
5332
5362
  /**
5333
5363
  * Prefer `export…from` when re-exporting.
5334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
5364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
5335
5365
  */
5336
5366
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5337
- /**
5338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
5339
- * @deprecated
5340
- */
5341
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
5342
5367
  /**
5343
5368
  * Prefer `globalThis` over `window`, `self`, and `global`.
5344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
5369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
5345
5370
  */
5346
5371
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
5347
5372
  /**
5348
5373
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
5374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
5350
5375
  */
5351
5376
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5352
5377
  /**
5353
5378
  * Prefer reading a JSON file as a buffer.
5354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
5379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
5355
5380
  */
5356
5381
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5357
5382
  /**
5358
5383
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
5384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
5360
5385
  */
5361
5386
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5362
5387
  /**
5363
5388
  * Prefer using a logical operator over a ternary.
5364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
5389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5365
5390
  */
5366
5391
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5367
5392
  /**
5368
5393
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
5394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
5370
5395
  */
5371
5396
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
5372
5397
  /**
5373
5398
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
5399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
5375
5400
  */
5376
5401
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5377
5402
  /**
5378
5403
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
5404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
5380
5405
  */
5381
5406
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5382
5407
  /**
5383
5408
  * Prefer modern `Math` APIs over legacy patterns.
5384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
5409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
5385
5410
  */
5386
5411
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5387
5412
  /**
5388
5413
  * Prefer JavaScript modules (ESM) over CommonJS.
5389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
5414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
5390
5415
  */
5391
5416
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5392
5417
  /**
5393
5418
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
5419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
5395
5420
  */
5396
5421
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5397
5422
  /**
5398
5423
  * Prefer negative index over `.length - index` when possible.
5399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
5424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
5400
5425
  */
5401
5426
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5402
- /**
5403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
5404
- * @deprecated
5405
- */
5406
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
5407
5427
  /**
5408
5428
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
5429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
5410
5430
  */
5411
5431
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5412
- /**
5413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
5414
- * @deprecated
5415
- */
5416
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
5417
5432
  /**
5418
5433
  * Prefer `Number` static properties over global ones.
5419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
5434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
5420
5435
  */
5421
5436
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5422
5437
  /**
5423
5438
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
5439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
5425
5440
  */
5426
5441
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
5427
- /**
5428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
5429
- * @deprecated
5430
- */
5431
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
5432
5442
  /**
5433
5443
  * Prefer omitting the `catch` binding parameter.
5434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
5444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
5435
5445
  */
5436
5446
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
5437
5447
  /**
5438
5448
  * Prefer borrowing methods from the prototype instead of the instance.
5439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
5449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
5440
5450
  */
5441
5451
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
5442
5452
  /**
5443
5453
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
5454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
5445
5455
  */
5446
5456
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
5447
5457
  /**
5448
5458
  * Prefer `Reflect.apply()` over `Function#apply()`.
5449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
5459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
5450
5460
  */
5451
5461
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
5452
5462
  /**
5453
5463
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
5464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
5455
5465
  */
5456
5466
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
5457
- /**
5458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
5459
- * @deprecated
5460
- */
5461
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
5462
5467
  /**
5463
5468
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
5469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
5465
5470
  */
5466
5471
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
5467
5472
  /**
5468
5473
  * Prefer using `Set#size` instead of `Array#length`.
5469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
5474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
5470
5475
  */
5471
5476
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
5472
5477
  /**
5473
5478
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
5479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
5475
5480
  */
5476
5481
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
5477
- /**
5478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
5479
- * @deprecated
5480
- */
5481
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
5482
5482
  /**
5483
5483
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
5484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
5485
5485
  */
5486
5486
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
5487
5487
  /**
5488
5488
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
5489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
5490
5490
  */
5491
5491
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
5492
5492
  /**
5493
5493
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
5494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
5495
5495
  */
5496
5496
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
5497
5497
  /**
5498
5498
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
5499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
5500
5500
  */
5501
5501
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
5502
5502
  /**
5503
5503
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
5504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
5505
5505
  */
5506
5506
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
5507
5507
  /**
5508
5508
  * Prefer using `structuredClone` to create a deep clone.
5509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
5509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
5510
5510
  */
5511
5511
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
5512
5512
  /**
5513
5513
  * Prefer `switch` over multiple `else-if`.
5514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
5514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
5515
5515
  */
5516
5516
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
5517
5517
  /**
5518
5518
  * Prefer ternary expressions over simple `if-else` statements.
5519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
5519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
5520
5520
  */
5521
5521
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
5522
- /**
5523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
5524
- * @deprecated
5525
- */
5526
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
5527
5522
  /**
5528
5523
  * Prefer top-level await over top-level promises and async function calls.
5529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
5524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
5530
5525
  */
5531
5526
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
5532
- /**
5533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
5534
- * @deprecated
5535
- */
5536
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
5537
5527
  /**
5538
5528
  * Enforce throwing `TypeError` in type checking conditions.
5539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
5529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
5540
5530
  */
5541
5531
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
5542
5532
  /**
5543
5533
  * Prevent abbreviations.
5544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
5534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
5545
5535
  */
5546
5536
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
5547
- /**
5548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
5549
- * @deprecated
5550
- */
5551
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
5552
5537
  /**
5553
5538
  * Enforce consistent relative URL style.
5554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
5539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
5555
5540
  */
5556
5541
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
5557
5542
  /**
5558
5543
  * Enforce using the separator argument with `Array#join()`.
5559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
5544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
5560
5545
  */
5561
5546
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
5562
5547
  /**
5563
5548
  * Enforce using the digits argument with `Number#toFixed()`.
5564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
5549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5565
5550
  */
5566
5551
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
5567
5552
  /**
5568
5553
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
5554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
5570
5555
  */
5571
5556
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
5572
5557
  /**
5573
5558
  * Enforce better string content.
5574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
5559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
5575
5560
  */
5576
5561
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
5577
5562
  /**
5578
5563
  * Enforce consistent brace style for `case` clauses.
5579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
5564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
5580
5565
  */
5581
5566
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
5582
5567
  /**
5583
5568
  * Fix whitespace-insensitive template indentation.
5584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
5569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
5585
5570
  */
5586
5571
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
5587
5572
  /**
5588
5573
  * Enforce consistent case for text encoding identifiers.
5589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
5574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
5590
5575
  */
5591
5576
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
5592
5577
  /**
5593
5578
  * Require `new` when creating an error.
5594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
5579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
5595
5580
  */
5596
5581
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
5597
5582
  /**
@@ -5946,6 +5931,8 @@ type TypescriptEslintExplicitModuleBoundaryTypes = []|[{
5946
5931
 
5947
5932
  allowHigherOrderFunctions?: boolean
5948
5933
 
5934
+ allowOverloadFunctions?: boolean
5935
+
5949
5936
  allowTypedFunctionExpressions?: boolean
5950
5937
  }]
5951
5938
  // ----- @typescript-eslint/init-declarations -----
@@ -6612,11 +6599,13 @@ type TypescriptEslintNoUnnecessaryBooleanLiteralCompare = []|[{
6612
6599
  allowComparingNullableBooleansToFalse?: boolean
6613
6600
 
6614
6601
  allowComparingNullableBooleansToTrue?: boolean
6602
+
6603
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
6615
6604
  }]
6616
6605
  // ----- @typescript-eslint/no-unnecessary-condition -----
6617
6606
  type TypescriptEslintNoUnnecessaryCondition = []|[{
6618
6607
 
6619
- allowConstantLoopConditions?: boolean
6608
+ allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
6620
6609
 
6621
6610
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
6622
6611
 
@@ -6975,6 +6964,8 @@ type TypescriptEslintUnboundMethod = []|[{
6975
6964
  type TypescriptEslintUnifiedSignatures = []|[{
6976
6965
 
6977
6966
  ignoreDifferentlyNamedParameters?: boolean
6967
+
6968
+ ignoreOverloadsWithDifferentJSDoc?: boolean
6978
6969
  }]
6979
6970
  // ----- accessor-pairs -----
6980
6971
  type AccessorPairs = []|[{
@@ -8159,7 +8150,7 @@ type IdMatch = []|[string]|[string, {
8159
8150
  // ----- implicit-arrow-linebreak -----
8160
8151
  type ImplicitArrowLinebreak = []|[("beside" | "below")]
8161
8152
  // ----- import-x/consistent-type-specifier-style -----
8162
- type ImportXConsistentTypeSpecifierStyle = []|[("prefer-inline" | "prefer-top-level")]
8153
+ type ImportXConsistentTypeSpecifierStyle = []|[("prefer-top-level" | "prefer-inline")]
8163
8154
  // ----- import-x/dynamic-import-chunkname -----
8164
8155
  type ImportXDynamicImportChunkname = []|[{
8165
8156
  importFunctions?: string[]
@@ -8379,6 +8370,17 @@ type ImportXOrder = []|[{
8379
8370
  position?: ("after" | "before")
8380
8371
  }[]
8381
8372
  "newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never")
8373
+ "newlines-between-types"?: ("ignore" | "always" | "always-and-inside-groups" | "never")
8374
+ consolidateIslands?: ("inside-groups" | "never")
8375
+ sortTypesGroup?: boolean
8376
+ named?: (boolean | {
8377
+ enabled?: boolean
8378
+ import?: boolean
8379
+ export?: boolean
8380
+ require?: boolean
8381
+ cjsExports?: boolean
8382
+ types?: ("mixed" | "types-first" | "types-last")
8383
+ })
8382
8384
  alphabetize?: {
8383
8385
  caseInsensitive?: boolean
8384
8386
  order?: ("ignore" | "asc" | "desc")
@@ -10035,6 +10037,14 @@ type PaddingLineBetweenStatements = {
10035
10037
  // ----- perfectionist/sort-array-includes -----
10036
10038
  type PerfectionistSortArrayIncludes = {
10037
10039
 
10040
+ fallbackSort?: {
10041
+
10042
+ order?: ("asc" | "desc")
10043
+
10044
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10045
+ [k: string]: unknown | undefined
10046
+ }
10047
+
10038
10048
  specialCharacters?: ("remove" | "trim" | "keep")
10039
10049
 
10040
10050
  ignoreCase?: boolean
@@ -10045,47 +10055,99 @@ type PerfectionistSortArrayIncludes = {
10045
10055
 
10046
10056
  order?: ("asc" | "desc")
10047
10057
 
10058
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10059
+
10048
10060
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
10049
10061
 
10050
10062
  customGroups?: ({
10051
10063
 
10052
- groupName?: string
10064
+ newlinesInside?: ("always" | "never")
10065
+
10066
+ fallbackSort?: {
10067
+
10068
+ order?: ("asc" | "desc")
10069
+
10070
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10071
+ [k: string]: unknown | undefined
10072
+ }
10053
10073
 
10054
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10074
+ groupName?: string
10055
10075
 
10056
- order?: ("desc" | "asc")
10076
+ order?: ("asc" | "desc")
10057
10077
 
10058
- newlinesInside?: ("always" | "never")
10078
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10059
10079
  anyOf?: {
10060
10080
 
10061
10081
  selector?: ("literal" | "spread")
10062
10082
 
10063
- elementNamePattern?: string
10083
+ elementNamePattern?: (({
10084
+ pattern?: string
10085
+ flags?: string
10086
+ } | string)[] | ({
10087
+ pattern?: string
10088
+ flags?: string
10089
+ } | string))
10064
10090
  }[]
10065
10091
  } | {
10066
10092
 
10067
- groupName?: string
10093
+ newlinesInside?: ("always" | "never")
10068
10094
 
10069
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10095
+ fallbackSort?: {
10096
+
10097
+ order?: ("asc" | "desc")
10098
+
10099
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10100
+ [k: string]: unknown | undefined
10101
+ }
10102
+
10103
+ groupName?: string
10070
10104
 
10071
- order?: ("desc" | "asc")
10105
+ order?: ("asc" | "desc")
10072
10106
 
10073
- newlinesInside?: ("always" | "never")
10107
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10074
10108
 
10075
10109
  selector?: ("literal" | "spread")
10076
10110
 
10077
- elementNamePattern?: string
10111
+ elementNamePattern?: (({
10112
+ pattern?: string
10113
+ flags?: string
10114
+ } | string)[] | ({
10115
+ pattern?: string
10116
+ flags?: string
10117
+ } | string))
10078
10118
  })[]
10079
10119
  useConfigurationIf?: {
10080
- allNamesMatchPattern?: string
10120
+
10121
+ allNamesMatchPattern?: (({
10122
+ pattern?: string
10123
+ flags?: string
10124
+ } | string)[] | ({
10125
+ pattern?: string
10126
+ flags?: string
10127
+ } | string))
10081
10128
  }
10082
10129
 
10083
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10084
-
10085
- partitionByComment?: (string[] | boolean | string | {
10086
- block?: (string[] | boolean | string)
10087
- line?: (string[] | boolean | string)
10088
- [k: string]: unknown | undefined
10130
+ partitionByComment?: (boolean | (({
10131
+ pattern?: string
10132
+ flags?: string
10133
+ } | string)[] | ({
10134
+ pattern?: string
10135
+ flags?: string
10136
+ } | string)) | {
10137
+ block?: (boolean | (({
10138
+ pattern?: string
10139
+ flags?: string
10140
+ } | string)[] | ({
10141
+ pattern?: string
10142
+ flags?: string
10143
+ } | string)))
10144
+ line?: (boolean | (({
10145
+ pattern?: string
10146
+ flags?: string
10147
+ } | string)[] | ({
10148
+ pattern?: string
10149
+ flags?: string
10150
+ } | string)))
10089
10151
  })
10090
10152
 
10091
10153
  partitionByNewLine?: boolean
@@ -10095,12 +10157,19 @@ type PerfectionistSortArrayIncludes = {
10095
10157
  groups?: (string | string[] | {
10096
10158
 
10097
10159
  newlinesBetween?: ("ignore" | "always" | "never")
10098
- [k: string]: unknown | undefined
10099
10160
  })[]
10100
10161
  }[]
10101
10162
  // ----- perfectionist/sort-classes -----
10102
10163
  type PerfectionistSortClasses = []|[{
10103
10164
 
10165
+ fallbackSort?: {
10166
+
10167
+ order?: ("asc" | "desc")
10168
+
10169
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10170
+ [k: string]: unknown | undefined
10171
+ }
10172
+
10104
10173
  specialCharacters?: ("remove" | "trim" | "keep")
10105
10174
 
10106
10175
  ignoreCase?: boolean
@@ -10111,71 +10180,153 @@ type PerfectionistSortClasses = []|[{
10111
10180
 
10112
10181
  order?: ("asc" | "desc")
10113
10182
 
10114
- ignoreCallbackDependenciesPatterns?: string[]
10183
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10115
10184
 
10116
10185
  customGroups?: ({
10117
10186
 
10118
- groupName?: string
10187
+ newlinesInside?: ("always" | "never")
10188
+
10189
+ fallbackSort?: {
10190
+
10191
+ order?: ("asc" | "desc")
10192
+
10193
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10194
+ [k: string]: unknown | undefined
10195
+ }
10119
10196
 
10120
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10197
+ groupName?: string
10121
10198
 
10122
- order?: ("desc" | "asc")
10199
+ order?: ("asc" | "desc")
10123
10200
 
10124
- newlinesInside?: ("always" | "never")
10201
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10125
10202
  anyOf?: {
10126
10203
 
10127
- decoratorNamePattern?: string
10128
-
10129
10204
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
10130
10205
 
10131
10206
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
10132
10207
 
10133
- elementValuePattern?: string
10208
+ decoratorNamePattern?: (({
10209
+ pattern?: string
10210
+ flags?: string
10211
+ } | string)[] | ({
10212
+ pattern?: string
10213
+ flags?: string
10214
+ } | string))
10134
10215
 
10135
- elementNamePattern?: string
10216
+ elementValuePattern?: (({
10217
+ pattern?: string
10218
+ flags?: string
10219
+ } | string)[] | ({
10220
+ pattern?: string
10221
+ flags?: string
10222
+ } | string))
10223
+
10224
+ elementNamePattern?: (({
10225
+ pattern?: string
10226
+ flags?: string
10227
+ } | string)[] | ({
10228
+ pattern?: string
10229
+ flags?: string
10230
+ } | string))
10136
10231
  }[]
10137
10232
  } | {
10138
10233
 
10139
- groupName?: string
10234
+ newlinesInside?: ("always" | "never")
10140
10235
 
10141
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10236
+ fallbackSort?: {
10237
+
10238
+ order?: ("asc" | "desc")
10239
+
10240
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10241
+ [k: string]: unknown | undefined
10242
+ }
10142
10243
 
10143
- order?: ("desc" | "asc")
10244
+ groupName?: string
10144
10245
 
10145
- newlinesInside?: ("always" | "never")
10246
+ order?: ("asc" | "desc")
10146
10247
 
10147
- decoratorNamePattern?: string
10248
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10148
10249
 
10149
10250
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
10150
10251
 
10151
10252
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
10152
10253
 
10153
- elementValuePattern?: string
10154
-
10155
- elementNamePattern?: string
10254
+ decoratorNamePattern?: (({
10255
+ pattern?: string
10256
+ flags?: string
10257
+ } | string)[] | ({
10258
+ pattern?: string
10259
+ flags?: string
10260
+ } | string))
10261
+
10262
+ elementValuePattern?: (({
10263
+ pattern?: string
10264
+ flags?: string
10265
+ } | string)[] | ({
10266
+ pattern?: string
10267
+ flags?: string
10268
+ } | string))
10269
+
10270
+ elementNamePattern?: (({
10271
+ pattern?: string
10272
+ flags?: string
10273
+ } | string)[] | ({
10274
+ pattern?: string
10275
+ flags?: string
10276
+ } | string))
10156
10277
  })[]
10157
10278
 
10158
- partitionByComment?: (string[] | boolean | string | {
10159
- block?: (string[] | boolean | string)
10160
- line?: (string[] | boolean | string)
10161
- [k: string]: unknown | undefined
10279
+ ignoreCallbackDependenciesPatterns?: (({
10280
+ pattern?: string
10281
+ flags?: string
10282
+ } | string)[] | ({
10283
+ pattern?: string
10284
+ flags?: string
10285
+ } | string))
10286
+
10287
+ partitionByComment?: (boolean | (({
10288
+ pattern?: string
10289
+ flags?: string
10290
+ } | string)[] | ({
10291
+ pattern?: string
10292
+ flags?: string
10293
+ } | string)) | {
10294
+ block?: (boolean | (({
10295
+ pattern?: string
10296
+ flags?: string
10297
+ } | string)[] | ({
10298
+ pattern?: string
10299
+ flags?: string
10300
+ } | string)))
10301
+ line?: (boolean | (({
10302
+ pattern?: string
10303
+ flags?: string
10304
+ } | string)[] | ({
10305
+ pattern?: string
10306
+ flags?: string
10307
+ } | string)))
10162
10308
  })
10163
10309
 
10164
10310
  partitionByNewLine?: boolean
10165
10311
 
10166
10312
  newlinesBetween?: ("ignore" | "always" | "never")
10167
10313
 
10168
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10169
-
10170
10314
  groups?: (string | string[] | {
10171
10315
 
10172
10316
  newlinesBetween?: ("ignore" | "always" | "never")
10173
- [k: string]: unknown | undefined
10174
10317
  })[]
10175
10318
  }]
10176
10319
  // ----- perfectionist/sort-decorators -----
10177
10320
  type PerfectionistSortDecorators = []|[{
10178
10321
 
10322
+ fallbackSort?: {
10323
+
10324
+ order?: ("asc" | "desc")
10325
+
10326
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10327
+ [k: string]: unknown | undefined
10328
+ }
10329
+
10179
10330
  specialCharacters?: ("remove" | "trim" | "keep")
10180
10331
 
10181
10332
  ignoreCase?: boolean
@@ -10186,6 +10337,8 @@ type PerfectionistSortDecorators = []|[{
10186
10337
 
10187
10338
  order?: ("asc" | "desc")
10188
10339
 
10340
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10341
+
10189
10342
  sortOnParameters?: boolean
10190
10343
 
10191
10344
  sortOnProperties?: boolean
@@ -10196,27 +10349,49 @@ type PerfectionistSortDecorators = []|[{
10196
10349
 
10197
10350
  sortOnClasses?: boolean
10198
10351
 
10199
- partitionByComment?: (string[] | boolean | string | {
10200
- block?: (string[] | boolean | string)
10201
- line?: (string[] | boolean | string)
10202
- [k: string]: unknown | undefined
10352
+ partitionByComment?: (boolean | (({
10353
+ pattern?: string
10354
+ flags?: string
10355
+ } | string)[] | ({
10356
+ pattern?: string
10357
+ flags?: string
10358
+ } | string)) | {
10359
+ block?: (boolean | (({
10360
+ pattern?: string
10361
+ flags?: string
10362
+ } | string)[] | ({
10363
+ pattern?: string
10364
+ flags?: string
10365
+ } | string)))
10366
+ line?: (boolean | (({
10367
+ pattern?: string
10368
+ flags?: string
10369
+ } | string)[] | ({
10370
+ pattern?: string
10371
+ flags?: string
10372
+ } | string)))
10203
10373
  })
10204
10374
 
10205
10375
  customGroups?: {
10206
10376
  [k: string]: (string | string[]) | undefined
10207
10377
  }
10208
10378
 
10209
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10210
-
10211
10379
  groups?: (string | string[] | {
10212
10380
 
10213
10381
  newlinesBetween?: ("ignore" | "always" | "never")
10214
- [k: string]: unknown | undefined
10215
10382
  })[]
10216
10383
  }]
10217
10384
  // ----- perfectionist/sort-enums -----
10218
10385
  type PerfectionistSortEnums = []|[{
10219
10386
 
10387
+ fallbackSort?: {
10388
+
10389
+ order?: ("asc" | "desc")
10390
+
10391
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10392
+ [k: string]: unknown | undefined
10393
+ }
10394
+
10220
10395
  specialCharacters?: ("remove" | "trim" | "keep")
10221
10396
 
10222
10397
  ignoreCase?: boolean
@@ -10227,23 +10402,126 @@ type PerfectionistSortEnums = []|[{
10227
10402
 
10228
10403
  order?: ("asc" | "desc")
10229
10404
 
10405
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10406
+
10230
10407
  forceNumericSort?: boolean
10408
+ customGroups?: ({
10409
+ [k: string]: (string | string[]) | undefined
10410
+ } | ({
10411
+
10412
+ newlinesInside?: ("always" | "never")
10413
+
10414
+ fallbackSort?: {
10415
+
10416
+ order?: ("asc" | "desc")
10417
+
10418
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10419
+ [k: string]: unknown | undefined
10420
+ }
10421
+
10422
+ groupName?: string
10423
+
10424
+ order?: ("asc" | "desc")
10425
+
10426
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10427
+ anyOf?: {
10428
+
10429
+ elementValuePattern?: (({
10430
+ pattern?: string
10431
+ flags?: string
10432
+ } | string)[] | ({
10433
+ pattern?: string
10434
+ flags?: string
10435
+ } | string))
10436
+
10437
+ elementNamePattern?: (({
10438
+ pattern?: string
10439
+ flags?: string
10440
+ } | string)[] | ({
10441
+ pattern?: string
10442
+ flags?: string
10443
+ } | string))
10444
+ }[]
10445
+ } | {
10446
+
10447
+ newlinesInside?: ("always" | "never")
10448
+
10449
+ fallbackSort?: {
10450
+
10451
+ order?: ("asc" | "desc")
10452
+
10453
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10454
+ [k: string]: unknown | undefined
10455
+ }
10456
+
10457
+ groupName?: string
10458
+
10459
+ order?: ("asc" | "desc")
10460
+
10461
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10462
+
10463
+ elementValuePattern?: (({
10464
+ pattern?: string
10465
+ flags?: string
10466
+ } | string)[] | ({
10467
+ pattern?: string
10468
+ flags?: string
10469
+ } | string))
10470
+
10471
+ elementNamePattern?: (({
10472
+ pattern?: string
10473
+ flags?: string
10474
+ } | string)[] | ({
10475
+ pattern?: string
10476
+ flags?: string
10477
+ } | string))
10478
+ })[])
10231
10479
 
10232
10480
  sortByValue?: boolean
10233
10481
 
10234
- partitionByComment?: (string[] | boolean | string | {
10235
- block?: (string[] | boolean | string)
10236
- line?: (string[] | boolean | string)
10237
- [k: string]: unknown | undefined
10482
+ partitionByComment?: (boolean | (({
10483
+ pattern?: string
10484
+ flags?: string
10485
+ } | string)[] | ({
10486
+ pattern?: string
10487
+ flags?: string
10488
+ } | string)) | {
10489
+ block?: (boolean | (({
10490
+ pattern?: string
10491
+ flags?: string
10492
+ } | string)[] | ({
10493
+ pattern?: string
10494
+ flags?: string
10495
+ } | string)))
10496
+ line?: (boolean | (({
10497
+ pattern?: string
10498
+ flags?: string
10499
+ } | string)[] | ({
10500
+ pattern?: string
10501
+ flags?: string
10502
+ } | string)))
10238
10503
  })
10239
10504
 
10240
10505
  partitionByNewLine?: boolean
10241
10506
 
10242
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10507
+ newlinesBetween?: ("ignore" | "always" | "never")
10508
+
10509
+ groups?: (string | string[] | {
10510
+
10511
+ newlinesBetween?: ("ignore" | "always" | "never")
10512
+ })[]
10243
10513
  }]
10244
10514
  // ----- perfectionist/sort-exports -----
10245
10515
  type PerfectionistSortExports = []|[{
10246
10516
 
10517
+ fallbackSort?: {
10518
+
10519
+ order?: ("asc" | "desc")
10520
+
10521
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10522
+ [k: string]: unknown | undefined
10523
+ }
10524
+
10247
10525
  specialCharacters?: ("remove" | "trim" | "keep")
10248
10526
 
10249
10527
  ignoreCase?: boolean
@@ -10254,21 +10532,46 @@ type PerfectionistSortExports = []|[{
10254
10532
 
10255
10533
  order?: ("asc" | "desc")
10256
10534
 
10535
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10536
+
10257
10537
  groupKind?: ("mixed" | "values-first" | "types-first")
10258
10538
 
10259
- partitionByComment?: (string[] | boolean | string | {
10260
- block?: (string[] | boolean | string)
10261
- line?: (string[] | boolean | string)
10262
- [k: string]: unknown | undefined
10539
+ partitionByComment?: (boolean | (({
10540
+ pattern?: string
10541
+ flags?: string
10542
+ } | string)[] | ({
10543
+ pattern?: string
10544
+ flags?: string
10545
+ } | string)) | {
10546
+ block?: (boolean | (({
10547
+ pattern?: string
10548
+ flags?: string
10549
+ } | string)[] | ({
10550
+ pattern?: string
10551
+ flags?: string
10552
+ } | string)))
10553
+ line?: (boolean | (({
10554
+ pattern?: string
10555
+ flags?: string
10556
+ } | string)[] | ({
10557
+ pattern?: string
10558
+ flags?: string
10559
+ } | string)))
10263
10560
  })
10264
10561
 
10265
10562
  partitionByNewLine?: boolean
10266
-
10267
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10268
10563
  }]
10269
10564
  // ----- perfectionist/sort-heritage-clauses -----
10270
10565
  type PerfectionistSortHeritageClauses = []|[{
10271
10566
 
10567
+ fallbackSort?: {
10568
+
10569
+ order?: ("asc" | "desc")
10570
+
10571
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10572
+ [k: string]: unknown | undefined
10573
+ }
10574
+
10272
10575
  specialCharacters?: ("remove" | "trim" | "keep")
10273
10576
 
10274
10577
  ignoreCase?: boolean
@@ -10279,22 +10582,29 @@ type PerfectionistSortHeritageClauses = []|[{
10279
10582
 
10280
10583
  order?: ("asc" | "desc")
10281
10584
 
10585
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10586
+
10282
10587
  customGroups?: {
10283
10588
  [k: string]: (string | string[]) | undefined
10284
10589
  }
10285
10590
 
10286
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10287
-
10288
10591
  groups?: (string | string[] | {
10289
10592
 
10290
10593
  newlinesBetween?: ("ignore" | "always" | "never")
10291
- [k: string]: unknown | undefined
10292
10594
  })[]
10293
10595
  }]
10294
10596
  // ----- perfectionist/sort-imports -----
10295
10597
  type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
10296
10598
  type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
10297
10599
 
10600
+ fallbackSort?: {
10601
+
10602
+ order?: ("asc" | "desc")
10603
+
10604
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10605
+ [k: string]: unknown | undefined
10606
+ }
10607
+
10298
10608
  specialCharacters?: ("remove" | "trim" | "keep")
10299
10609
 
10300
10610
  ignoreCase?: boolean
@@ -10305,6 +10615,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10305
10615
 
10306
10616
  order?: ("asc" | "desc")
10307
10617
 
10618
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10619
+
10308
10620
  customGroups?: {
10309
10621
 
10310
10622
  value?: {
@@ -10316,8 +10628,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10316
10628
  }
10317
10629
  }
10318
10630
 
10319
- internalPattern?: string[]
10320
-
10321
10631
  maxLineLength?: number
10322
10632
 
10323
10633
  sortSideEffects?: boolean
@@ -10326,22 +10636,44 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10326
10636
 
10327
10637
  tsconfigRootDir?: string
10328
10638
 
10329
- partitionByComment?: (string[] | boolean | string | {
10330
- block?: (string[] | boolean | string)
10331
- line?: (string[] | boolean | string)
10332
- [k: string]: unknown | undefined
10639
+ partitionByComment?: (boolean | (({
10640
+ pattern?: string
10641
+ flags?: string
10642
+ } | string)[] | ({
10643
+ pattern?: string
10644
+ flags?: string
10645
+ } | string)) | {
10646
+ block?: (boolean | (({
10647
+ pattern?: string
10648
+ flags?: string
10649
+ } | string)[] | ({
10650
+ pattern?: string
10651
+ flags?: string
10652
+ } | string)))
10653
+ line?: (boolean | (({
10654
+ pattern?: string
10655
+ flags?: string
10656
+ } | string)[] | ({
10657
+ pattern?: string
10658
+ flags?: string
10659
+ } | string)))
10333
10660
  })
10334
10661
 
10335
10662
  partitionByNewLine?: boolean
10336
10663
 
10337
10664
  newlinesBetween?: ("ignore" | "always" | "never")
10338
10665
 
10339
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10666
+ internalPattern?: (({
10667
+ pattern?: string
10668
+ flags?: string
10669
+ } | string)[] | ({
10670
+ pattern?: string
10671
+ flags?: string
10672
+ } | string))
10340
10673
 
10341
10674
  groups?: (string | string[] | {
10342
10675
 
10343
10676
  newlinesBetween?: ("ignore" | "always" | "never")
10344
- [k: string]: unknown | undefined
10345
10677
  })[]
10346
10678
  })
10347
10679
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
@@ -10354,6 +10686,14 @@ interface _PerfectionistSortImports_IsLineLength {
10354
10686
  // ----- perfectionist/sort-interfaces -----
10355
10687
  type PerfectionistSortInterfaces = {
10356
10688
 
10689
+ fallbackSort?: {
10690
+
10691
+ order?: ("asc" | "desc")
10692
+
10693
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10694
+ [k: string]: unknown | undefined
10695
+ }
10696
+
10357
10697
  specialCharacters?: ("remove" | "trim" | "keep")
10358
10698
 
10359
10699
  ignoreCase?: boolean
@@ -10364,70 +10704,163 @@ type PerfectionistSortInterfaces = {
10364
10704
 
10365
10705
  order?: ("asc" | "desc")
10366
10706
 
10367
- ignorePattern?: string[]
10368
- useConfigurationIf?: {
10369
- allNamesMatchPattern?: string
10370
- declarationMatchesPattern?: string
10371
- }
10707
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10372
10708
  customGroups?: ({
10373
10709
  [k: string]: (string | string[]) | undefined
10374
10710
  } | ({
10375
10711
 
10376
- groupName?: string
10712
+ newlinesInside?: ("always" | "never")
10377
10713
 
10378
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10714
+ fallbackSort?: {
10715
+
10716
+ order?: ("asc" | "desc")
10717
+
10718
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10719
+ sortBy?: ("name" | "value")
10720
+ [k: string]: unknown | undefined
10721
+ }
10379
10722
 
10380
- order?: ("desc" | "asc")
10723
+ groupName?: string
10381
10724
 
10382
- newlinesInside?: ("always" | "never")
10725
+ order?: ("asc" | "desc")
10726
+
10727
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10383
10728
  anyOf?: {
10384
10729
 
10385
10730
  modifiers?: ("optional" | "required" | "multiline")[]
10386
10731
 
10387
10732
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
10388
10733
 
10389
- elementNamePattern?: string
10734
+ elementValuePattern?: (({
10735
+ pattern?: string
10736
+ flags?: string
10737
+ } | string)[] | ({
10738
+ pattern?: string
10739
+ flags?: string
10740
+ } | string))
10741
+
10742
+ elementNamePattern?: (({
10743
+ pattern?: string
10744
+ flags?: string
10745
+ } | string)[] | ({
10746
+ pattern?: string
10747
+ flags?: string
10748
+ } | string))
10749
+ sortBy?: ("name" | "value")
10390
10750
  }[]
10391
10751
  } | {
10392
10752
 
10393
- groupName?: string
10753
+ newlinesInside?: ("always" | "never")
10754
+
10755
+ fallbackSort?: {
10756
+
10757
+ order?: ("asc" | "desc")
10758
+
10759
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10760
+ sortBy?: ("name" | "value")
10761
+ [k: string]: unknown | undefined
10762
+ }
10394
10763
 
10395
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10764
+ groupName?: string
10396
10765
 
10397
- order?: ("desc" | "asc")
10766
+ order?: ("asc" | "desc")
10398
10767
 
10399
- newlinesInside?: ("always" | "never")
10768
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10400
10769
 
10401
10770
  modifiers?: ("optional" | "required" | "multiline")[]
10402
10771
 
10403
10772
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
10404
10773
 
10405
- elementNamePattern?: string
10774
+ elementValuePattern?: (({
10775
+ pattern?: string
10776
+ flags?: string
10777
+ } | string)[] | ({
10778
+ pattern?: string
10779
+ flags?: string
10780
+ } | string))
10781
+
10782
+ elementNamePattern?: (({
10783
+ pattern?: string
10784
+ flags?: string
10785
+ } | string)[] | ({
10786
+ pattern?: string
10787
+ flags?: string
10788
+ } | string))
10789
+ sortBy?: ("name" | "value")
10406
10790
  })[])
10791
+ useConfigurationIf?: {
10792
+
10793
+ allNamesMatchPattern?: (({
10794
+ pattern?: string
10795
+ flags?: string
10796
+ } | string)[] | ({
10797
+ pattern?: string
10798
+ flags?: string
10799
+ } | string))
10800
+
10801
+ declarationMatchesPattern?: (({
10802
+ pattern?: string
10803
+ flags?: string
10804
+ } | string)[] | ({
10805
+ pattern?: string
10806
+ flags?: string
10807
+ } | string))
10808
+ }
10407
10809
 
10408
10810
  groupKind?: ("mixed" | "required-first" | "optional-first")
10409
10811
 
10410
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10411
-
10412
- partitionByComment?: (string[] | boolean | string | {
10413
- block?: (string[] | boolean | string)
10414
- line?: (string[] | boolean | string)
10415
- [k: string]: unknown | undefined
10812
+ partitionByComment?: (boolean | (({
10813
+ pattern?: string
10814
+ flags?: string
10815
+ } | string)[] | ({
10816
+ pattern?: string
10817
+ flags?: string
10818
+ } | string)) | {
10819
+ block?: (boolean | (({
10820
+ pattern?: string
10821
+ flags?: string
10822
+ } | string)[] | ({
10823
+ pattern?: string
10824
+ flags?: string
10825
+ } | string)))
10826
+ line?: (boolean | (({
10827
+ pattern?: string
10828
+ flags?: string
10829
+ } | string)[] | ({
10830
+ pattern?: string
10831
+ flags?: string
10832
+ } | string)))
10416
10833
  })
10417
10834
 
10418
10835
  partitionByNewLine?: boolean
10419
10836
 
10420
10837
  newlinesBetween?: ("ignore" | "always" | "never")
10421
10838
 
10839
+ ignorePattern?: (({
10840
+ pattern?: string
10841
+ flags?: string
10842
+ } | string)[] | ({
10843
+ pattern?: string
10844
+ flags?: string
10845
+ } | string))
10846
+ sortBy?: ("name" | "value")
10847
+
10422
10848
  groups?: (string | string[] | {
10423
10849
 
10424
10850
  newlinesBetween?: ("ignore" | "always" | "never")
10425
- [k: string]: unknown | undefined
10426
10851
  })[]
10427
10852
  }[]
10428
10853
  // ----- perfectionist/sort-intersection-types -----
10429
10854
  type PerfectionistSortIntersectionTypes = []|[{
10430
10855
 
10856
+ fallbackSort?: {
10857
+
10858
+ order?: ("asc" | "desc")
10859
+
10860
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10861
+ [k: string]: unknown | undefined
10862
+ }
10863
+
10431
10864
  specialCharacters?: ("remove" | "trim" | "keep")
10432
10865
 
10433
10866
  ignoreCase?: boolean
@@ -10438,26 +10871,50 @@ type PerfectionistSortIntersectionTypes = []|[{
10438
10871
 
10439
10872
  order?: ("asc" | "desc")
10440
10873
 
10441
- partitionByComment?: (string[] | boolean | string | {
10442
- block?: (string[] | boolean | string)
10443
- line?: (string[] | boolean | string)
10444
- [k: string]: unknown | undefined
10874
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10875
+
10876
+ partitionByComment?: (boolean | (({
10877
+ pattern?: string
10878
+ flags?: string
10879
+ } | string)[] | ({
10880
+ pattern?: string
10881
+ flags?: string
10882
+ } | string)) | {
10883
+ block?: (boolean | (({
10884
+ pattern?: string
10885
+ flags?: string
10886
+ } | string)[] | ({
10887
+ pattern?: string
10888
+ flags?: string
10889
+ } | string)))
10890
+ line?: (boolean | (({
10891
+ pattern?: string
10892
+ flags?: string
10893
+ } | string)[] | ({
10894
+ pattern?: string
10895
+ flags?: string
10896
+ } | string)))
10445
10897
  })
10446
10898
 
10447
10899
  partitionByNewLine?: boolean
10448
10900
 
10449
10901
  newlinesBetween?: ("ignore" | "always" | "never")
10450
10902
 
10451
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10452
-
10453
10903
  groups?: (string | string[] | {
10454
10904
 
10455
10905
  newlinesBetween?: ("ignore" | "always" | "never")
10456
- [k: string]: unknown | undefined
10457
10906
  })[]
10458
10907
  }]
10459
10908
  // ----- perfectionist/sort-jsx-props -----
10460
- type PerfectionistSortJsxProps = []|[{
10909
+ type PerfectionistSortJsxProps = {
10910
+
10911
+ fallbackSort?: {
10912
+
10913
+ order?: ("asc" | "desc")
10914
+
10915
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10916
+ [k: string]: unknown | undefined
10917
+ }
10461
10918
 
10462
10919
  specialCharacters?: ("remove" | "trim" | "keep")
10463
10920
 
@@ -10469,7 +10926,25 @@ type PerfectionistSortJsxProps = []|[{
10469
10926
 
10470
10927
  order?: ("asc" | "desc")
10471
10928
 
10472
- ignorePattern?: string[]
10929
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10930
+ useConfigurationIf?: {
10931
+
10932
+ allNamesMatchPattern?: (({
10933
+ pattern?: string
10934
+ flags?: string
10935
+ } | string)[] | ({
10936
+ pattern?: string
10937
+ flags?: string
10938
+ } | string))
10939
+
10940
+ tagMatchesPattern?: (({
10941
+ pattern?: string
10942
+ flags?: string
10943
+ } | string)[] | ({
10944
+ pattern?: string
10945
+ flags?: string
10946
+ } | string))
10947
+ }
10473
10948
 
10474
10949
  partitionByNewLine?: boolean
10475
10950
 
@@ -10479,17 +10954,30 @@ type PerfectionistSortJsxProps = []|[{
10479
10954
  [k: string]: (string | string[]) | undefined
10480
10955
  }
10481
10956
 
10482
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10957
+ ignorePattern?: (({
10958
+ pattern?: string
10959
+ flags?: string
10960
+ } | string)[] | ({
10961
+ pattern?: string
10962
+ flags?: string
10963
+ } | string))
10483
10964
 
10484
10965
  groups?: (string | string[] | {
10485
10966
 
10486
10967
  newlinesBetween?: ("ignore" | "always" | "never")
10487
- [k: string]: unknown | undefined
10488
10968
  })[]
10489
- }]
10969
+ }[]
10490
10970
  // ----- perfectionist/sort-maps -----
10491
10971
  type PerfectionistSortMaps = {
10492
10972
 
10973
+ fallbackSort?: {
10974
+
10975
+ order?: ("asc" | "desc")
10976
+
10977
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10978
+ [k: string]: unknown | undefined
10979
+ }
10980
+
10493
10981
  specialCharacters?: ("remove" | "trim" | "keep")
10494
10982
 
10495
10983
  ignoreCase?: boolean
@@ -10500,56 +10988,115 @@ type PerfectionistSortMaps = {
10500
10988
 
10501
10989
  order?: ("asc" | "desc")
10502
10990
 
10991
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10992
+
10503
10993
  customGroups?: ({
10504
10994
 
10505
- groupName?: string
10995
+ newlinesInside?: ("always" | "never")
10506
10996
 
10507
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
10997
+ fallbackSort?: {
10998
+
10999
+ order?: ("asc" | "desc")
11000
+
11001
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11002
+ [k: string]: unknown | undefined
11003
+ }
10508
11004
 
10509
- order?: ("desc" | "asc")
11005
+ groupName?: string
10510
11006
 
10511
- newlinesInside?: ("always" | "never")
11007
+ order?: ("asc" | "desc")
11008
+
11009
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10512
11010
  anyOf?: {
10513
11011
 
10514
- elementNamePattern?: string
11012
+ elementNamePattern?: (({
11013
+ pattern?: string
11014
+ flags?: string
11015
+ } | string)[] | ({
11016
+ pattern?: string
11017
+ flags?: string
11018
+ } | string))
10515
11019
  }[]
10516
11020
  } | {
10517
11021
 
10518
- groupName?: string
11022
+ newlinesInside?: ("always" | "never")
11023
+
11024
+ fallbackSort?: {
11025
+
11026
+ order?: ("asc" | "desc")
11027
+
11028
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11029
+ [k: string]: unknown | undefined
11030
+ }
10519
11031
 
10520
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11032
+ groupName?: string
10521
11033
 
10522
- order?: ("desc" | "asc")
11034
+ order?: ("asc" | "desc")
10523
11035
 
10524
- newlinesInside?: ("always" | "never")
11036
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10525
11037
 
10526
- elementNamePattern?: string
11038
+ elementNamePattern?: (({
11039
+ pattern?: string
11040
+ flags?: string
11041
+ } | string)[] | ({
11042
+ pattern?: string
11043
+ flags?: string
11044
+ } | string))
10527
11045
  })[]
10528
11046
  useConfigurationIf?: {
10529
- allNamesMatchPattern?: string
11047
+
11048
+ allNamesMatchPattern?: (({
11049
+ pattern?: string
11050
+ flags?: string
11051
+ } | string)[] | ({
11052
+ pattern?: string
11053
+ flags?: string
11054
+ } | string))
10530
11055
  }
10531
11056
 
10532
- partitionByComment?: (string[] | boolean | string | {
10533
- block?: (string[] | boolean | string)
10534
- line?: (string[] | boolean | string)
10535
- [k: string]: unknown | undefined
11057
+ partitionByComment?: (boolean | (({
11058
+ pattern?: string
11059
+ flags?: string
11060
+ } | string)[] | ({
11061
+ pattern?: string
11062
+ flags?: string
11063
+ } | string)) | {
11064
+ block?: (boolean | (({
11065
+ pattern?: string
11066
+ flags?: string
11067
+ } | string)[] | ({
11068
+ pattern?: string
11069
+ flags?: string
11070
+ } | string)))
11071
+ line?: (boolean | (({
11072
+ pattern?: string
11073
+ flags?: string
11074
+ } | string)[] | ({
11075
+ pattern?: string
11076
+ flags?: string
11077
+ } | string)))
10536
11078
  })
10537
11079
 
10538
11080
  partitionByNewLine?: boolean
10539
11081
 
10540
11082
  newlinesBetween?: ("ignore" | "always" | "never")
10541
11083
 
10542
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10543
-
10544
11084
  groups?: (string | string[] | {
10545
11085
 
10546
11086
  newlinesBetween?: ("ignore" | "always" | "never")
10547
- [k: string]: unknown | undefined
10548
11087
  })[]
10549
11088
  }[]
10550
11089
  // ----- perfectionist/sort-modules -----
10551
11090
  type PerfectionistSortModules = []|[{
10552
11091
 
11092
+ fallbackSort?: {
11093
+
11094
+ order?: ("asc" | "desc")
11095
+
11096
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11097
+ [k: string]: unknown | undefined
11098
+ }
11099
+
10553
11100
  specialCharacters?: ("remove" | "trim" | "keep")
10554
11101
 
10555
11102
  ignoreCase?: boolean
@@ -10560,65 +11107,129 @@ type PerfectionistSortModules = []|[{
10560
11107
 
10561
11108
  order?: ("asc" | "desc")
10562
11109
 
11110
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11111
+
10563
11112
  customGroups?: ({
10564
11113
 
10565
- groupName?: string
11114
+ newlinesInside?: ("always" | "never")
10566
11115
 
10567
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11116
+ fallbackSort?: {
11117
+
11118
+ order?: ("asc" | "desc")
11119
+
11120
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11121
+ [k: string]: unknown | undefined
11122
+ }
10568
11123
 
10569
- order?: ("desc" | "asc")
11124
+ groupName?: string
10570
11125
 
10571
- newlinesInside?: ("always" | "never")
11126
+ order?: ("asc" | "desc")
11127
+
11128
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10572
11129
  anyOf?: {
10573
11130
 
10574
- decoratorNamePattern?: string
10575
-
10576
11131
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
10577
11132
 
10578
11133
  selector?: ("enum" | "function" | "interface" | "type" | "class")
10579
11134
 
10580
- elementNamePattern?: string
11135
+ decoratorNamePattern?: (({
11136
+ pattern?: string
11137
+ flags?: string
11138
+ } | string)[] | ({
11139
+ pattern?: string
11140
+ flags?: string
11141
+ } | string))
11142
+
11143
+ elementNamePattern?: (({
11144
+ pattern?: string
11145
+ flags?: string
11146
+ } | string)[] | ({
11147
+ pattern?: string
11148
+ flags?: string
11149
+ } | string))
10581
11150
  }[]
10582
11151
  } | {
10583
11152
 
10584
- groupName?: string
11153
+ newlinesInside?: ("always" | "never")
10585
11154
 
10586
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11155
+ fallbackSort?: {
11156
+
11157
+ order?: ("asc" | "desc")
11158
+
11159
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11160
+ [k: string]: unknown | undefined
11161
+ }
10587
11162
 
10588
- order?: ("desc" | "asc")
11163
+ groupName?: string
10589
11164
 
10590
- newlinesInside?: ("always" | "never")
11165
+ order?: ("asc" | "desc")
10591
11166
 
10592
- decoratorNamePattern?: string
11167
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10593
11168
 
10594
11169
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
10595
11170
 
10596
11171
  selector?: ("enum" | "function" | "interface" | "type" | "class")
10597
11172
 
10598
- elementNamePattern?: string
11173
+ decoratorNamePattern?: (({
11174
+ pattern?: string
11175
+ flags?: string
11176
+ } | string)[] | ({
11177
+ pattern?: string
11178
+ flags?: string
11179
+ } | string))
11180
+
11181
+ elementNamePattern?: (({
11182
+ pattern?: string
11183
+ flags?: string
11184
+ } | string)[] | ({
11185
+ pattern?: string
11186
+ flags?: string
11187
+ } | string))
10599
11188
  })[]
10600
11189
 
10601
- partitionByComment?: (string[] | boolean | string | {
10602
- block?: (string[] | boolean | string)
10603
- line?: (string[] | boolean | string)
10604
- [k: string]: unknown | undefined
11190
+ partitionByComment?: (boolean | (({
11191
+ pattern?: string
11192
+ flags?: string
11193
+ } | string)[] | ({
11194
+ pattern?: string
11195
+ flags?: string
11196
+ } | string)) | {
11197
+ block?: (boolean | (({
11198
+ pattern?: string
11199
+ flags?: string
11200
+ } | string)[] | ({
11201
+ pattern?: string
11202
+ flags?: string
11203
+ } | string)))
11204
+ line?: (boolean | (({
11205
+ pattern?: string
11206
+ flags?: string
11207
+ } | string)[] | ({
11208
+ pattern?: string
11209
+ flags?: string
11210
+ } | string)))
10605
11211
  })
10606
11212
 
10607
11213
  partitionByNewLine?: boolean
10608
11214
 
10609
11215
  newlinesBetween?: ("ignore" | "always" | "never")
10610
11216
 
10611
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10612
-
10613
11217
  groups?: (string | string[] | {
10614
11218
 
10615
11219
  newlinesBetween?: ("ignore" | "always" | "never")
10616
- [k: string]: unknown | undefined
10617
11220
  })[]
10618
11221
  }]
10619
11222
  // ----- perfectionist/sort-named-exports -----
10620
11223
  type PerfectionistSortNamedExports = []|[{
10621
11224
 
11225
+ fallbackSort?: {
11226
+
11227
+ order?: ("asc" | "desc")
11228
+
11229
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11230
+ [k: string]: unknown | undefined
11231
+ }
11232
+
10622
11233
  specialCharacters?: ("remove" | "trim" | "keep")
10623
11234
 
10624
11235
  ignoreCase?: boolean
@@ -10629,21 +11240,48 @@ type PerfectionistSortNamedExports = []|[{
10629
11240
 
10630
11241
  order?: ("asc" | "desc")
10631
11242
 
11243
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11244
+
10632
11245
  groupKind?: ("mixed" | "values-first" | "types-first")
10633
11246
 
10634
- partitionByComment?: (string[] | boolean | string | {
10635
- block?: (string[] | boolean | string)
10636
- line?: (string[] | boolean | string)
10637
- [k: string]: unknown | undefined
11247
+ ignoreAlias?: boolean
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)))
10638
11270
  })
10639
11271
 
10640
11272
  partitionByNewLine?: boolean
10641
-
10642
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10643
11273
  }]
10644
11274
  // ----- perfectionist/sort-named-imports -----
10645
11275
  type PerfectionistSortNamedImports = []|[{
10646
11276
 
11277
+ fallbackSort?: {
11278
+
11279
+ order?: ("asc" | "desc")
11280
+
11281
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11282
+ [k: string]: unknown | undefined
11283
+ }
11284
+
10647
11285
  specialCharacters?: ("remove" | "trim" | "keep")
10648
11286
 
10649
11287
  ignoreCase?: boolean
@@ -10654,23 +11292,48 @@ type PerfectionistSortNamedImports = []|[{
10654
11292
 
10655
11293
  order?: ("asc" | "desc")
10656
11294
 
11295
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11296
+
10657
11297
  groupKind?: ("mixed" | "values-first" | "types-first")
10658
11298
 
10659
11299
  ignoreAlias?: boolean
10660
11300
 
10661
- partitionByComment?: (string[] | boolean | string | {
10662
- block?: (string[] | boolean | string)
10663
- line?: (string[] | boolean | string)
10664
- [k: string]: unknown | undefined
11301
+ partitionByComment?: (boolean | (({
11302
+ pattern?: string
11303
+ flags?: string
11304
+ } | string)[] | ({
11305
+ pattern?: string
11306
+ flags?: string
11307
+ } | string)) | {
11308
+ block?: (boolean | (({
11309
+ pattern?: string
11310
+ flags?: string
11311
+ } | string)[] | ({
11312
+ pattern?: string
11313
+ flags?: string
11314
+ } | string)))
11315
+ line?: (boolean | (({
11316
+ pattern?: string
11317
+ flags?: string
11318
+ } | string)[] | ({
11319
+ pattern?: string
11320
+ flags?: string
11321
+ } | string)))
10665
11322
  })
10666
11323
 
10667
11324
  partitionByNewLine?: boolean
10668
-
10669
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10670
11325
  }]
10671
11326
  // ----- perfectionist/sort-object-types -----
10672
11327
  type PerfectionistSortObjectTypes = {
10673
11328
 
11329
+ fallbackSort?: {
11330
+
11331
+ order?: ("asc" | "desc")
11332
+
11333
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11334
+ [k: string]: unknown | undefined
11335
+ }
11336
+
10674
11337
  specialCharacters?: ("remove" | "trim" | "keep")
10675
11338
 
10676
11339
  ignoreCase?: boolean
@@ -10681,70 +11344,163 @@ type PerfectionistSortObjectTypes = {
10681
11344
 
10682
11345
  order?: ("asc" | "desc")
10683
11346
 
10684
- ignorePattern?: string[]
10685
- useConfigurationIf?: {
10686
- allNamesMatchPattern?: string
10687
- declarationMatchesPattern?: string
10688
- }
11347
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10689
11348
  customGroups?: ({
10690
11349
  [k: string]: (string | string[]) | undefined
10691
11350
  } | ({
10692
11351
 
10693
- groupName?: string
11352
+ newlinesInside?: ("always" | "never")
11353
+
11354
+ fallbackSort?: {
11355
+
11356
+ order?: ("asc" | "desc")
11357
+
11358
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11359
+ sortBy?: ("name" | "value")
11360
+ [k: string]: unknown | undefined
11361
+ }
10694
11362
 
10695
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11363
+ groupName?: string
10696
11364
 
10697
- order?: ("desc" | "asc")
11365
+ order?: ("asc" | "desc")
10698
11366
 
10699
- newlinesInside?: ("always" | "never")
11367
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10700
11368
  anyOf?: {
10701
11369
 
10702
11370
  modifiers?: ("optional" | "required" | "multiline")[]
10703
11371
 
10704
11372
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
10705
11373
 
10706
- elementNamePattern?: string
11374
+ elementValuePattern?: (({
11375
+ pattern?: string
11376
+ flags?: string
11377
+ } | string)[] | ({
11378
+ pattern?: string
11379
+ flags?: string
11380
+ } | string))
11381
+
11382
+ elementNamePattern?: (({
11383
+ pattern?: string
11384
+ flags?: string
11385
+ } | string)[] | ({
11386
+ pattern?: string
11387
+ flags?: string
11388
+ } | string))
11389
+ sortBy?: ("name" | "value")
10707
11390
  }[]
10708
11391
  } | {
10709
11392
 
10710
- groupName?: string
11393
+ newlinesInside?: ("always" | "never")
10711
11394
 
10712
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11395
+ fallbackSort?: {
11396
+
11397
+ order?: ("asc" | "desc")
11398
+
11399
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11400
+ sortBy?: ("name" | "value")
11401
+ [k: string]: unknown | undefined
11402
+ }
10713
11403
 
10714
- order?: ("desc" | "asc")
11404
+ groupName?: string
10715
11405
 
10716
- newlinesInside?: ("always" | "never")
11406
+ order?: ("asc" | "desc")
11407
+
11408
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10717
11409
 
10718
11410
  modifiers?: ("optional" | "required" | "multiline")[]
10719
11411
 
10720
11412
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
10721
11413
 
10722
- elementNamePattern?: string
11414
+ elementValuePattern?: (({
11415
+ pattern?: string
11416
+ flags?: string
11417
+ } | string)[] | ({
11418
+ pattern?: string
11419
+ flags?: string
11420
+ } | string))
11421
+
11422
+ elementNamePattern?: (({
11423
+ pattern?: string
11424
+ flags?: string
11425
+ } | string)[] | ({
11426
+ pattern?: string
11427
+ flags?: string
11428
+ } | string))
11429
+ sortBy?: ("name" | "value")
10723
11430
  })[])
11431
+ useConfigurationIf?: {
11432
+
11433
+ allNamesMatchPattern?: (({
11434
+ pattern?: string
11435
+ flags?: string
11436
+ } | string)[] | ({
11437
+ pattern?: string
11438
+ flags?: string
11439
+ } | string))
11440
+
11441
+ declarationMatchesPattern?: (({
11442
+ pattern?: string
11443
+ flags?: string
11444
+ } | string)[] | ({
11445
+ pattern?: string
11446
+ flags?: string
11447
+ } | string))
11448
+ }
10724
11449
 
10725
11450
  groupKind?: ("mixed" | "required-first" | "optional-first")
10726
11451
 
10727
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10728
-
10729
- partitionByComment?: (string[] | boolean | string | {
10730
- block?: (string[] | boolean | string)
10731
- line?: (string[] | boolean | string)
10732
- [k: string]: unknown | undefined
11452
+ partitionByComment?: (boolean | (({
11453
+ pattern?: string
11454
+ flags?: string
11455
+ } | string)[] | ({
11456
+ pattern?: string
11457
+ flags?: string
11458
+ } | string)) | {
11459
+ block?: (boolean | (({
11460
+ pattern?: string
11461
+ flags?: string
11462
+ } | string)[] | ({
11463
+ pattern?: string
11464
+ flags?: string
11465
+ } | string)))
11466
+ line?: (boolean | (({
11467
+ pattern?: string
11468
+ flags?: string
11469
+ } | string)[] | ({
11470
+ pattern?: string
11471
+ flags?: string
11472
+ } | string)))
10733
11473
  })
10734
11474
 
10735
11475
  partitionByNewLine?: boolean
10736
11476
 
10737
11477
  newlinesBetween?: ("ignore" | "always" | "never")
10738
11478
 
11479
+ ignorePattern?: (({
11480
+ pattern?: string
11481
+ flags?: string
11482
+ } | string)[] | ({
11483
+ pattern?: string
11484
+ flags?: string
11485
+ } | string))
11486
+ sortBy?: ("name" | "value")
11487
+
10739
11488
  groups?: (string | string[] | {
10740
11489
 
10741
11490
  newlinesBetween?: ("ignore" | "always" | "never")
10742
- [k: string]: unknown | undefined
10743
11491
  })[]
10744
11492
  }[]
10745
11493
  // ----- perfectionist/sort-objects -----
10746
11494
  type PerfectionistSortObjects = {
10747
11495
 
11496
+ fallbackSort?: {
11497
+
11498
+ order?: ("asc" | "desc")
11499
+
11500
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11501
+ [k: string]: unknown | undefined
11502
+ }
11503
+
10748
11504
  specialCharacters?: ("remove" | "trim" | "keep")
10749
11505
 
10750
11506
  ignoreCase?: boolean
@@ -10755,55 +11511,109 @@ type PerfectionistSortObjects = {
10755
11511
 
10756
11512
  order?: ("asc" | "desc")
10757
11513
 
11514
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11515
+
10758
11516
  destructuredObjects?: (boolean | {
10759
11517
 
10760
11518
  groups?: boolean
10761
11519
  })
10762
-
10763
- ignorePattern?: string[]
10764
- useConfigurationIf?: {
10765
- allNamesMatchPattern?: string
10766
- callingFunctionNamePattern?: string
10767
- }
10768
11520
  customGroups?: ({
10769
11521
  [k: string]: (string | string[]) | undefined
10770
11522
  } | ({
10771
11523
 
10772
- groupName?: string
11524
+ newlinesInside?: ("always" | "never")
10773
11525
 
10774
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11526
+ fallbackSort?: {
11527
+
11528
+ order?: ("asc" | "desc")
11529
+
11530
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11531
+ [k: string]: unknown | undefined
11532
+ }
10775
11533
 
10776
- order?: ("desc" | "asc")
11534
+ groupName?: string
10777
11535
 
10778
- newlinesInside?: ("always" | "never")
11536
+ order?: ("asc" | "desc")
11537
+
11538
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10779
11539
  anyOf?: {
10780
11540
 
10781
11541
  modifiers?: ("optional" | "required" | "multiline")[]
10782
11542
 
10783
11543
  selector?: ("member" | "method" | "multiline" | "property")
10784
11544
 
10785
- elementValuePattern?: string
11545
+ elementValuePattern?: (({
11546
+ pattern?: string
11547
+ flags?: string
11548
+ } | string)[] | ({
11549
+ pattern?: string
11550
+ flags?: string
11551
+ } | string))
10786
11552
 
10787
- elementNamePattern?: string
11553
+ elementNamePattern?: (({
11554
+ pattern?: string
11555
+ flags?: string
11556
+ } | string)[] | ({
11557
+ pattern?: string
11558
+ flags?: string
11559
+ } | string))
10788
11560
  }[]
10789
11561
  } | {
10790
11562
 
10791
- groupName?: string
11563
+ newlinesInside?: ("always" | "never")
10792
11564
 
10793
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11565
+ fallbackSort?: {
11566
+
11567
+ order?: ("asc" | "desc")
11568
+
11569
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11570
+ [k: string]: unknown | undefined
11571
+ }
10794
11572
 
10795
- order?: ("desc" | "asc")
11573
+ groupName?: string
10796
11574
 
10797
- newlinesInside?: ("always" | "never")
11575
+ order?: ("asc" | "desc")
11576
+
11577
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10798
11578
 
10799
11579
  modifiers?: ("optional" | "required" | "multiline")[]
10800
11580
 
10801
11581
  selector?: ("member" | "method" | "multiline" | "property")
10802
11582
 
10803
- elementValuePattern?: string
10804
-
10805
- elementNamePattern?: string
11583
+ elementValuePattern?: (({
11584
+ pattern?: string
11585
+ flags?: string
11586
+ } | string)[] | ({
11587
+ pattern?: string
11588
+ flags?: string
11589
+ } | string))
11590
+
11591
+ elementNamePattern?: (({
11592
+ pattern?: string
11593
+ flags?: string
11594
+ } | string)[] | ({
11595
+ pattern?: string
11596
+ flags?: string
11597
+ } | string))
10806
11598
  })[])
11599
+ useConfigurationIf?: {
11600
+
11601
+ allNamesMatchPattern?: (({
11602
+ pattern?: string
11603
+ flags?: string
11604
+ } | string)[] | ({
11605
+ pattern?: string
11606
+ flags?: string
11607
+ } | string))
11608
+
11609
+ callingFunctionNamePattern?: (({
11610
+ pattern?: string
11611
+ flags?: string
11612
+ } | string)[] | ({
11613
+ pattern?: string
11614
+ flags?: string
11615
+ } | string))
11616
+ }
10807
11617
 
10808
11618
  destructureOnly?: boolean
10809
11619
 
@@ -10811,27 +11621,57 @@ type PerfectionistSortObjects = {
10811
11621
 
10812
11622
  styledComponents?: boolean
10813
11623
 
10814
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10815
-
10816
- partitionByComment?: (string[] | boolean | string | {
10817
- block?: (string[] | boolean | string)
10818
- line?: (string[] | boolean | string)
10819
- [k: string]: unknown | undefined
11624
+ partitionByComment?: (boolean | (({
11625
+ pattern?: string
11626
+ flags?: string
11627
+ } | string)[] | ({
11628
+ pattern?: string
11629
+ flags?: string
11630
+ } | string)) | {
11631
+ block?: (boolean | (({
11632
+ pattern?: string
11633
+ flags?: string
11634
+ } | string)[] | ({
11635
+ pattern?: string
11636
+ flags?: string
11637
+ } | string)))
11638
+ line?: (boolean | (({
11639
+ pattern?: string
11640
+ flags?: string
11641
+ } | string)[] | ({
11642
+ pattern?: string
11643
+ flags?: string
11644
+ } | string)))
10820
11645
  })
10821
11646
 
10822
11647
  partitionByNewLine?: boolean
10823
11648
 
10824
11649
  newlinesBetween?: ("ignore" | "always" | "never")
10825
11650
 
11651
+ ignorePattern?: (({
11652
+ pattern?: string
11653
+ flags?: string
11654
+ } | string)[] | ({
11655
+ pattern?: string
11656
+ flags?: string
11657
+ } | string))
11658
+
10826
11659
  groups?: (string | string[] | {
10827
11660
 
10828
11661
  newlinesBetween?: ("ignore" | "always" | "never")
10829
- [k: string]: unknown | undefined
10830
11662
  })[]
10831
11663
  }[]
10832
11664
  // ----- perfectionist/sort-sets -----
10833
11665
  type PerfectionistSortSets = {
10834
11666
 
11667
+ fallbackSort?: {
11668
+
11669
+ order?: ("asc" | "desc")
11670
+
11671
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11672
+ [k: string]: unknown | undefined
11673
+ }
11674
+
10835
11675
  specialCharacters?: ("remove" | "trim" | "keep")
10836
11676
 
10837
11677
  ignoreCase?: boolean
@@ -10842,47 +11682,99 @@ type PerfectionistSortSets = {
10842
11682
 
10843
11683
  order?: ("asc" | "desc")
10844
11684
 
11685
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11686
+
10845
11687
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
10846
11688
 
10847
11689
  customGroups?: ({
10848
11690
 
10849
- groupName?: string
11691
+ newlinesInside?: ("always" | "never")
10850
11692
 
10851
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11693
+ fallbackSort?: {
11694
+
11695
+ order?: ("asc" | "desc")
11696
+
11697
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11698
+ [k: string]: unknown | undefined
11699
+ }
11700
+
11701
+ groupName?: string
10852
11702
 
10853
- order?: ("desc" | "asc")
11703
+ order?: ("asc" | "desc")
10854
11704
 
10855
- newlinesInside?: ("always" | "never")
11705
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10856
11706
  anyOf?: {
10857
11707
 
10858
11708
  selector?: ("literal" | "spread")
10859
11709
 
10860
- elementNamePattern?: string
11710
+ elementNamePattern?: (({
11711
+ pattern?: string
11712
+ flags?: string
11713
+ } | string)[] | ({
11714
+ pattern?: string
11715
+ flags?: string
11716
+ } | string))
10861
11717
  }[]
10862
11718
  } | {
10863
11719
 
10864
- groupName?: string
11720
+ newlinesInside?: ("always" | "never")
10865
11721
 
10866
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11722
+ fallbackSort?: {
11723
+
11724
+ order?: ("asc" | "desc")
11725
+
11726
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11727
+ [k: string]: unknown | undefined
11728
+ }
10867
11729
 
10868
- order?: ("desc" | "asc")
11730
+ groupName?: string
10869
11731
 
10870
- newlinesInside?: ("always" | "never")
11732
+ order?: ("asc" | "desc")
11733
+
11734
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10871
11735
 
10872
11736
  selector?: ("literal" | "spread")
10873
11737
 
10874
- elementNamePattern?: string
11738
+ elementNamePattern?: (({
11739
+ pattern?: string
11740
+ flags?: string
11741
+ } | string)[] | ({
11742
+ pattern?: string
11743
+ flags?: string
11744
+ } | string))
10875
11745
  })[]
10876
11746
  useConfigurationIf?: {
10877
- allNamesMatchPattern?: string
11747
+
11748
+ allNamesMatchPattern?: (({
11749
+ pattern?: string
11750
+ flags?: string
11751
+ } | string)[] | ({
11752
+ pattern?: string
11753
+ flags?: string
11754
+ } | string))
10878
11755
  }
10879
11756
 
10880
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10881
-
10882
- partitionByComment?: (string[] | boolean | string | {
10883
- block?: (string[] | boolean | string)
10884
- line?: (string[] | boolean | string)
10885
- [k: string]: unknown | undefined
11757
+ partitionByComment?: (boolean | (({
11758
+ pattern?: string
11759
+ flags?: string
11760
+ } | string)[] | ({
11761
+ pattern?: string
11762
+ flags?: string
11763
+ } | string)) | {
11764
+ block?: (boolean | (({
11765
+ pattern?: string
11766
+ flags?: string
11767
+ } | string)[] | ({
11768
+ pattern?: string
11769
+ flags?: string
11770
+ } | string)))
11771
+ line?: (boolean | (({
11772
+ pattern?: string
11773
+ flags?: string
11774
+ } | string)[] | ({
11775
+ pattern?: string
11776
+ flags?: string
11777
+ } | string)))
10886
11778
  })
10887
11779
 
10888
11780
  partitionByNewLine?: boolean
@@ -10892,12 +11784,19 @@ type PerfectionistSortSets = {
10892
11784
  groups?: (string | string[] | {
10893
11785
 
10894
11786
  newlinesBetween?: ("ignore" | "always" | "never")
10895
- [k: string]: unknown | undefined
10896
11787
  })[]
10897
11788
  }[]
10898
11789
  // ----- perfectionist/sort-switch-case -----
10899
11790
  type PerfectionistSortSwitchCase = []|[{
10900
11791
 
11792
+ fallbackSort?: {
11793
+
11794
+ order?: ("asc" | "desc")
11795
+
11796
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11797
+ [k: string]: unknown | undefined
11798
+ }
11799
+
10901
11800
  specialCharacters?: ("remove" | "trim" | "keep")
10902
11801
 
10903
11802
  ignoreCase?: boolean
@@ -10908,11 +11807,19 @@ type PerfectionistSortSwitchCase = []|[{
10908
11807
 
10909
11808
  order?: ("asc" | "desc")
10910
11809
 
10911
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11810
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10912
11811
  }]
10913
11812
  // ----- perfectionist/sort-union-types -----
10914
11813
  type PerfectionistSortUnionTypes = []|[{
10915
11814
 
11815
+ fallbackSort?: {
11816
+
11817
+ order?: ("asc" | "desc")
11818
+
11819
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11820
+ [k: string]: unknown | undefined
11821
+ }
11822
+
10916
11823
  specialCharacters?: ("remove" | "trim" | "keep")
10917
11824
 
10918
11825
  ignoreCase?: boolean
@@ -10923,27 +11830,51 @@ type PerfectionistSortUnionTypes = []|[{
10923
11830
 
10924
11831
  order?: ("asc" | "desc")
10925
11832
 
10926
- partitionByComment?: (string[] | boolean | string | {
10927
- block?: (string[] | boolean | string)
10928
- line?: (string[] | boolean | string)
10929
- [k: string]: unknown | undefined
11833
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11834
+
11835
+ partitionByComment?: (boolean | (({
11836
+ pattern?: string
11837
+ flags?: string
11838
+ } | string)[] | ({
11839
+ pattern?: string
11840
+ flags?: string
11841
+ } | string)) | {
11842
+ block?: (boolean | (({
11843
+ pattern?: string
11844
+ flags?: string
11845
+ } | string)[] | ({
11846
+ pattern?: string
11847
+ flags?: string
11848
+ } | string)))
11849
+ line?: (boolean | (({
11850
+ pattern?: string
11851
+ flags?: string
11852
+ } | string)[] | ({
11853
+ pattern?: string
11854
+ flags?: string
11855
+ } | string)))
10930
11856
  })
10931
11857
 
10932
11858
  partitionByNewLine?: boolean
10933
11859
 
10934
11860
  newlinesBetween?: ("ignore" | "always" | "never")
10935
11861
 
10936
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10937
-
10938
11862
  groups?: (string | string[] | {
10939
11863
 
10940
11864
  newlinesBetween?: ("ignore" | "always" | "never")
10941
- [k: string]: unknown | undefined
10942
11865
  })[]
10943
11866
  }]
10944
11867
  // ----- perfectionist/sort-variable-declarations -----
10945
11868
  type PerfectionistSortVariableDeclarations = []|[{
10946
11869
 
11870
+ fallbackSort?: {
11871
+
11872
+ order?: ("asc" | "desc")
11873
+
11874
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11875
+ [k: string]: unknown | undefined
11876
+ }
11877
+
10947
11878
  specialCharacters?: ("remove" | "trim" | "keep")
10948
11879
 
10949
11880
  ignoreCase?: boolean
@@ -10954,15 +11885,32 @@ type PerfectionistSortVariableDeclarations = []|[{
10954
11885
 
10955
11886
  order?: ("asc" | "desc")
10956
11887
 
10957
- partitionByComment?: (string[] | boolean | string | {
10958
- block?: (string[] | boolean | string)
10959
- line?: (string[] | boolean | string)
10960
- [k: string]: unknown | undefined
11888
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11889
+
11890
+ partitionByComment?: (boolean | (({
11891
+ pattern?: string
11892
+ flags?: string
11893
+ } | string)[] | ({
11894
+ pattern?: string
11895
+ flags?: string
11896
+ } | string)) | {
11897
+ block?: (boolean | (({
11898
+ pattern?: string
11899
+ flags?: string
11900
+ } | string)[] | ({
11901
+ pattern?: string
11902
+ flags?: string
11903
+ } | string)))
11904
+ line?: (boolean | (({
11905
+ pattern?: string
11906
+ flags?: string
11907
+ } | string)[] | ({
11908
+ pattern?: string
11909
+ flags?: string
11910
+ } | string)))
10961
11911
  })
10962
11912
 
10963
11913
  partitionByNewLine?: boolean
10964
-
10965
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10966
11914
  }]
10967
11915
  // ----- prefer-arrow-callback -----
10968
11916
  type PreferArrowCallback = []|[{
@@ -11032,11 +11980,6 @@ type ReactHooksExhaustiveDeps = []|[{
11032
11980
  additionalHooks?: string
11033
11981
  enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean
11034
11982
  }]
11035
- // ----- react-prefer-function-component/react-prefer-function-component -----
11036
- type ReactPreferFunctionComponentReactPreferFunctionComponent = []|[{
11037
- allowComponentDidCatch?: boolean
11038
- allowJsxUtilityClass?: boolean
11039
- }]
11040
11983
  // ----- react-refresh/only-export-components -----
11041
11984
  type ReactRefreshOnlyExportComponents = []|[{
11042
11985
  allowExportNames?: string[]
@@ -11410,6 +12353,13 @@ type UnicornNoArrayPushPush = []|[{
11410
12353
  type UnicornNoArrayReduce = []|[{
11411
12354
  allowSimpleOperations?: boolean
11412
12355
  }]
12356
+ // ----- unicorn/no-instanceof-builtins -----
12357
+ type UnicornNoInstanceofBuiltins = []|[{
12358
+ useErrorIsError?: boolean
12359
+ strategy?: ("loose" | "strict")
12360
+ include?: string[]
12361
+ exclude?: string[]
12362
+ }]
11413
12363
  // ----- unicorn/no-keyword-prefix -----
11414
12364
  type UnicornNoKeywordPrefix = []|[{
11415
12365
 
@@ -11614,4 +12564,4 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
11614
12564
  onlyEquality?: boolean
11615
12565
  }]
11616
12566
  // Names of all the configs
11617
- export type ConfigNames = '@biscuittin/eslint-config/eslint-comments/setup' | '@biscuittin/eslint-config/eslint-comments/rules' | '@biscuittin/eslint-config/disables/script' | '@biscuittin/eslint-config/disables/cli' | '@biscuittin/eslint-config/disables/bin' | '@biscuittin/eslint-config/disables/dts' | '@biscuittin/eslint-config/disables/commonjs' | '@biscuittin/eslint-config/disables/config-files' | '@biscuittin/eslint-config/formatters/setup' | '@biscuittin/eslint-config/formatters/rules/typescript' | '@biscuittin/eslint-config/formatters/rules/json' | '@biscuittin/eslint-config/formatters/rules/markdown' | '@biscuittin/eslint-config/formatters/rules/malva' | '@biscuittin/eslint-config/formatters/rules/markup' | '@biscuittin/eslint-config/formatters/rules/yaml' | '@biscuittin/eslint-config/ignores/files' | '@biscuittin/eslint-config/ignores/gitignore' | '@biscuittin/eslint-config/imports/setup' | '@biscuittin/eslint-config/imports/rules' | '@biscuittin/eslint-config/imports/stylistic' | '@biscuittin/eslint-config/javascript/setup' | '@biscuittin/eslint-config/javascript/commonjs' | '@biscuittin/eslint-config/javascript/module' | '@biscuittin/eslint-config/javascript/rules' | '@biscuittin/eslint-config/json/setup' | '@biscuittin/eslint-config/json/rules' | '@biscuittin/eslint-config/json/stylistic' | '@biscuittin/eslint-config/json/package-json' | '@biscuittin/eslint-config/json/tsconfig-json' | '@biscuittin/eslint-config/jsx/setup' | '@biscuittin/eslint-config/next-js/setup' | '@biscuittin/eslint-config/next-js/rules' | '@biscuittin/eslint-config/node-js/setup' | '@biscuittin/eslint-config/node-js/rules' | '@biscuittin/eslint-config/node-js/commonjs' | '@biscuittin/eslint-config/react/setup' | '@biscuittin/eslint-config/react/rules' | '@biscuittin/eslint-config/react/stylistic' | '@biscuittin/eslint-config/regexp/setup' | '@biscuittin/eslint-config/regexp/rules' | '@biscuittin/eslint-config/tailwindcss/setup' | '@biscuittin/eslint-config/tailwindcss/rules' | '@biscuittin/eslint-config/typescript/setup' | '@biscuittin/eslint-config/typescript/rules' | '@biscuittin/eslint-config/typescript/react-type-checked' | '@biscuittin/eslint-config/unicorn/setup/all-src' | '@biscuittin/eslint-config/unicorn/setup/src' | '@biscuittin/eslint-config/unicorn/rules/all-src' | '@biscuittin/eslint-config/unicorn/rules/src'
12567
+ export type ConfigNames = '@biscuittin/eslint-config/eslint-comments/setup' | '@biscuittin/eslint-config/eslint-comments/rules' | '@biscuittin/eslint-config/disables/script' | '@biscuittin/eslint-config/disables/cli' | '@biscuittin/eslint-config/disables/bin' | '@biscuittin/eslint-config/disables/dts' | '@biscuittin/eslint-config/disables/commonjs' | '@biscuittin/eslint-config/disables/config-files' | '@biscuittin/eslint-config/formatters/setup' | '@biscuittin/eslint-config/formatters/rules/typescript' | '@biscuittin/eslint-config/formatters/rules/json' | '@biscuittin/eslint-config/formatters/rules/markdown' | '@biscuittin/eslint-config/formatters/rules/malva' | '@biscuittin/eslint-config/formatters/rules/markup' | '@biscuittin/eslint-config/formatters/rules/yaml' | '@biscuittin/eslint-config/ignores/files' | '@biscuittin/eslint-config/ignores/gitignore' | '@biscuittin/eslint-config/imports/setup' | '@biscuittin/eslint-config/imports/rules' | '@biscuittin/eslint-config/imports/stylistic' | '@biscuittin/eslint-config/javascript/setup' | '@biscuittin/eslint-config/javascript/commonjs' | '@biscuittin/eslint-config/javascript/module' | '@biscuittin/eslint-config/javascript/rules' | '@biscuittin/eslint-config/json/setup' | '@biscuittin/eslint-config/json/rules' | '@biscuittin/eslint-config/json/stylistic' | '@biscuittin/eslint-config/json/package-json' | '@biscuittin/eslint-config/json/tsconfig-json' | '@biscuittin/eslint-config/jsx/setup' | '@biscuittin/eslint-config/next-js/setup' | '@biscuittin/eslint-config/next-js/rules' | '@biscuittin/eslint-config/node-js/setup' | '@biscuittin/eslint-config/node-js/rules' | '@biscuittin/eslint-config/node-js/script' | '@biscuittin/eslint-config/node-js/commonjs' | '@biscuittin/eslint-config/node-js/module' | '@biscuittin/eslint-config/react/setup' | '@biscuittin/eslint-config/react/rules' | '@biscuittin/eslint-config/react/stylistic' | '@biscuittin/eslint-config/regexp/setup' | '@biscuittin/eslint-config/regexp/rules' | '@biscuittin/eslint-config/tailwindcss/setup' | '@biscuittin/eslint-config/tailwindcss/rules' | '@biscuittin/eslint-config/typescript/setup' | '@biscuittin/eslint-config/typescript/rules' | '@biscuittin/eslint-config/typescript/react-type-checked' | '@biscuittin/eslint-config/unicorn/setup/all-src' | '@biscuittin/eslint-config/unicorn/setup/src' | '@biscuittin/eslint-config/unicorn/rules/all-src' | '@biscuittin/eslint-config/unicorn/rules/src'