@biscuittin/eslint-config 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +95 -81
- package/dist/index.js +94 -79
- package/package.json +34 -23
- package/typegen.d.ts +1556 -598
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
153
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
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
|
-
*
|
|
158
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
183
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
198
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
373
|
-
* @see https://eslint-react.xyz/docs/rules/no-nested-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
/**
|
|
@@ -4300,6 +4350,10 @@ export interface RuleOptions {
|
|
|
4300
4350
|
* @see https://eslint.org/docs/rules/radix
|
|
4301
4351
|
*/
|
|
4302
4352
|
'radix'?: Linter.RuleEntry<Radix>
|
|
4353
|
+
/**
|
|
4354
|
+
* Surfaces diagnostics from React Forget
|
|
4355
|
+
*/
|
|
4356
|
+
'react-compiler/react-compiler'?: Linter.RuleEntry<ReactCompilerReactCompiler>
|
|
4303
4357
|
/**
|
|
4304
4358
|
* verifies the list of dependencies for Hooks like useEffect and similar
|
|
4305
4359
|
* @see https://github.com/facebook/react/issues/14920
|
|
@@ -4310,11 +4364,6 @@ export interface RuleOptions {
|
|
|
4310
4364
|
* @see https://reactjs.org/docs/hooks-rules.html
|
|
4311
4365
|
*/
|
|
4312
4366
|
'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
4367
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
4319
4368
|
/**
|
|
4320
4369
|
* disallow confusing quantifiers
|
|
@@ -4896,702 +4945,642 @@ export interface RuleOptions {
|
|
|
4896
4945
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
4897
4946
|
/**
|
|
4898
4947
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4948
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
|
|
4900
4949
|
*/
|
|
4901
4950
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
4902
4951
|
/**
|
|
4903
4952
|
* Enforce a specific parameter name in catch clauses.
|
|
4904
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4953
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
|
|
4905
4954
|
*/
|
|
4906
4955
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
4956
|
+
/**
|
|
4957
|
+
* Enforce consistent assertion style with `node:assert`.
|
|
4958
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
|
|
4959
|
+
*/
|
|
4960
|
+
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
4961
|
+
/**
|
|
4962
|
+
* Prefer passing `Date` directly to the constructor when cloning.
|
|
4963
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
|
|
4964
|
+
*/
|
|
4965
|
+
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
4907
4966
|
/**
|
|
4908
4967
|
* Use destructured variables over properties.
|
|
4909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4968
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
|
|
4910
4969
|
*/
|
|
4911
4970
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
4912
4971
|
/**
|
|
4913
4972
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4914
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4973
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4915
4974
|
*/
|
|
4916
4975
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
4917
4976
|
/**
|
|
4918
4977
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4978
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
|
|
4920
4979
|
*/
|
|
4921
4980
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
4922
4981
|
/**
|
|
4923
4982
|
* Move function definitions to the highest possible scope.
|
|
4924
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4983
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
|
|
4925
4984
|
*/
|
|
4926
4985
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
4927
4986
|
/**
|
|
4928
4987
|
* Enforce correct `Error` subclassing.
|
|
4929
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4988
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
|
|
4930
4989
|
*/
|
|
4931
4990
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
4932
4991
|
/**
|
|
4933
4992
|
* Enforce no spaces between braces.
|
|
4934
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4993
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
|
|
4935
4994
|
*/
|
|
4936
4995
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
4937
4996
|
/**
|
|
4938
4997
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4998
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
|
|
4940
4999
|
*/
|
|
4941
5000
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
4942
5001
|
/**
|
|
4943
5002
|
* Require escape sequences to use uppercase values.
|
|
4944
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5003
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
|
|
4945
5004
|
*/
|
|
4946
5005
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
4947
5006
|
/**
|
|
4948
5007
|
* Add expiration conditions to TODO comments.
|
|
4949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5008
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
|
|
4950
5009
|
*/
|
|
4951
5010
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
4952
5011
|
/**
|
|
4953
5012
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5013
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
|
|
4955
5014
|
*/
|
|
4956
5015
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
4957
5016
|
/**
|
|
4958
5017
|
* Enforce a case style for filenames.
|
|
4959
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5018
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
|
|
4960
5019
|
*/
|
|
4961
5020
|
'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
5021
|
/**
|
|
4968
5022
|
* Enforce specific import styles per module.
|
|
4969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5023
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
|
|
4970
5024
|
*/
|
|
4971
5025
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
4972
5026
|
/**
|
|
4973
5027
|
* 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/
|
|
5028
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
|
|
4975
5029
|
*/
|
|
4976
5030
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
4977
5031
|
/**
|
|
4978
5032
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4979
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5033
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4980
5034
|
*/
|
|
4981
5035
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
5036
|
+
/**
|
|
5037
|
+
* Disallow recursive access to `this` within getters and setters.
|
|
5038
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
|
|
5039
|
+
*/
|
|
5040
|
+
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
4982
5041
|
/**
|
|
4983
5042
|
* Disallow anonymous functions and classes as the default export.
|
|
4984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5043
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
|
|
4985
5044
|
*/
|
|
4986
5045
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
4987
5046
|
/**
|
|
4988
5047
|
* Prevent passing a function reference directly to iterator methods.
|
|
4989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
|
|
4990
5049
|
*/
|
|
4991
5050
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
4992
5051
|
/**
|
|
4993
5052
|
* Prefer `for…of` over the `forEach` method.
|
|
4994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
|
|
4995
5054
|
*/
|
|
4996
5055
|
'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
5056
|
/**
|
|
5003
5057
|
* Disallow using the `this` argument in array methods.
|
|
5004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
|
|
5005
5059
|
*/
|
|
5006
5060
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
5007
5061
|
/**
|
|
5008
5062
|
* Enforce combining multiple `Array#push()` into one call.
|
|
5009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
|
|
5010
5064
|
*/
|
|
5011
5065
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
5012
5066
|
/**
|
|
5013
5067
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
|
|
5015
5069
|
*/
|
|
5016
5070
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
5017
5071
|
/**
|
|
5018
5072
|
* Disallow member access from await expression.
|
|
5019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
|
|
5020
5074
|
*/
|
|
5021
5075
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
5022
5076
|
/**
|
|
5023
5077
|
* Disallow using `await` in `Promise` method parameters.
|
|
5024
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5025
5079
|
*/
|
|
5026
5080
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5027
5081
|
/**
|
|
5028
5082
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
|
|
5030
5084
|
*/
|
|
5031
5085
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
5032
5086
|
/**
|
|
5033
5087
|
* Do not use `document.cookie` directly.
|
|
5034
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
|
|
5035
5089
|
*/
|
|
5036
5090
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
5037
5091
|
/**
|
|
5038
5092
|
* Disallow empty files.
|
|
5039
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
|
|
5040
5094
|
*/
|
|
5041
5095
|
'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
5096
|
/**
|
|
5048
5097
|
* 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/
|
|
5098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
|
|
5050
5099
|
*/
|
|
5051
5100
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
5052
5101
|
/**
|
|
5053
5102
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
|
|
5055
5104
|
*/
|
|
5056
5105
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
5057
5106
|
/**
|
|
5058
|
-
*
|
|
5059
|
-
* @
|
|
5107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
5108
|
+
* @deprecated
|
|
5060
5109
|
*/
|
|
5061
5110
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
5111
|
+
/**
|
|
5112
|
+
* Disallow `instanceof` with built-in objects
|
|
5113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
|
|
5114
|
+
*/
|
|
5115
|
+
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
5062
5116
|
/**
|
|
5063
5117
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5064
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5065
5119
|
*/
|
|
5066
5120
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
5067
5121
|
/**
|
|
5068
5122
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5070
5124
|
*/
|
|
5071
5125
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
5072
5126
|
/**
|
|
5073
5127
|
* Disallow identifiers starting with `new` or `class`.
|
|
5074
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
|
|
5075
5129
|
*/
|
|
5076
5130
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
5077
5131
|
/**
|
|
5078
5132
|
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5079
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
|
|
5080
5134
|
*/
|
|
5081
5135
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
5082
5136
|
/**
|
|
5083
5137
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5084
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
|
|
5085
5139
|
*/
|
|
5086
5140
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
5087
5141
|
/**
|
|
5088
5142
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5143
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5090
5144
|
*/
|
|
5091
5145
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
5146
|
+
/**
|
|
5147
|
+
* Disallow named usage of default import and export.
|
|
5148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
|
|
5149
|
+
*/
|
|
5150
|
+
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
5092
5151
|
/**
|
|
5093
5152
|
* Disallow negated conditions.
|
|
5094
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
|
|
5095
5154
|
*/
|
|
5096
5155
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
5097
5156
|
/**
|
|
5098
5157
|
* Disallow negated expression in equality check.
|
|
5099
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5100
5159
|
*/
|
|
5101
5160
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
5102
5161
|
/**
|
|
5103
5162
|
* Disallow nested ternary expressions.
|
|
5104
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
|
|
5105
5164
|
*/
|
|
5106
5165
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
5107
5166
|
/**
|
|
5108
5167
|
* Disallow `new Array()`.
|
|
5109
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
|
|
5110
5169
|
*/
|
|
5111
5170
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
5112
5171
|
/**
|
|
5113
5172
|
* 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/
|
|
5173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
|
|
5115
5174
|
*/
|
|
5116
5175
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
5117
5176
|
/**
|
|
5118
5177
|
* Disallow the use of the `null` literal.
|
|
5119
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
|
|
5120
5179
|
*/
|
|
5121
5180
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
5122
5181
|
/**
|
|
5123
5182
|
* Disallow the use of objects as default parameters.
|
|
5124
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5125
5184
|
*/
|
|
5126
5185
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
5127
5186
|
/**
|
|
5128
5187
|
* Disallow `process.exit()`.
|
|
5129
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
|
|
5130
5189
|
*/
|
|
5131
5190
|
'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
5191
|
/**
|
|
5138
5192
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5139
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5140
5194
|
*/
|
|
5141
5195
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5142
5196
|
/**
|
|
5143
5197
|
* Disallow classes that only have static members.
|
|
5144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
|
|
5145
5199
|
*/
|
|
5146
5200
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
5147
5201
|
/**
|
|
5148
5202
|
* Disallow `then` property.
|
|
5149
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
|
|
5150
5204
|
*/
|
|
5151
5205
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
5152
5206
|
/**
|
|
5153
5207
|
* Disallow assigning `this` to a variable.
|
|
5154
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
|
|
5155
5209
|
*/
|
|
5156
5210
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
5157
5211
|
/**
|
|
5158
5212
|
* Disallow comparing `undefined` using `typeof`.
|
|
5159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
|
|
5160
5214
|
*/
|
|
5161
5215
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
5162
5216
|
/**
|
|
5163
5217
|
* Disallow awaiting non-promise values.
|
|
5164
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
|
|
5165
5219
|
*/
|
|
5166
5220
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
5167
5221
|
/**
|
|
5168
5222
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5169
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5170
5224
|
*/
|
|
5171
5225
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
5172
5226
|
/**
|
|
5173
5227
|
* Disallow unreadable array destructuring.
|
|
5174
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5175
5229
|
*/
|
|
5176
5230
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
5177
5231
|
/**
|
|
5178
5232
|
* Disallow unreadable IIFEs.
|
|
5179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
|
|
5180
5234
|
*/
|
|
5181
5235
|
'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
5236
|
/**
|
|
5188
5237
|
* Disallow unused object properties.
|
|
5189
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5238
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
|
|
5190
5239
|
*/
|
|
5191
5240
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
5192
5241
|
/**
|
|
5193
5242
|
* Disallow useless fallback when spreading in object literals.
|
|
5194
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5243
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5195
5244
|
*/
|
|
5196
5245
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
5197
5246
|
/**
|
|
5198
5247
|
* Disallow useless array length check.
|
|
5199
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5248
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
|
|
5200
5249
|
*/
|
|
5201
5250
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
5202
5251
|
/**
|
|
5203
5252
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5204
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5253
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5205
5254
|
*/
|
|
5206
5255
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
5207
5256
|
/**
|
|
5208
5257
|
* Disallow unnecessary spread.
|
|
5209
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5258
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
|
|
5210
5259
|
*/
|
|
5211
5260
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
5212
5261
|
/**
|
|
5213
5262
|
* Disallow useless case in switch statements.
|
|
5214
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5263
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
|
|
5215
5264
|
*/
|
|
5216
5265
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
5217
5266
|
/**
|
|
5218
5267
|
* Disallow useless `undefined`.
|
|
5219
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5268
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
|
|
5220
5269
|
*/
|
|
5221
5270
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
5222
5271
|
/**
|
|
5223
5272
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5224
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5273
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
|
|
5225
5274
|
*/
|
|
5226
5275
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
5227
5276
|
/**
|
|
5228
5277
|
* Enforce proper case for numeric literals.
|
|
5229
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
|
|
5230
5279
|
*/
|
|
5231
5280
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
5232
5281
|
/**
|
|
5233
5282
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5283
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
|
|
5235
5284
|
*/
|
|
5236
5285
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
5237
5286
|
/**
|
|
5238
5287
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5288
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
|
|
5240
5289
|
*/
|
|
5241
5290
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
5242
5291
|
/**
|
|
5243
5292
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5244
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5293
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
|
|
5245
5294
|
*/
|
|
5246
5295
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
5247
5296
|
/**
|
|
5248
5297
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5249
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
|
|
5250
5299
|
*/
|
|
5251
5300
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
5252
5301
|
/**
|
|
5253
5302
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5254
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
|
|
5255
5304
|
*/
|
|
5256
5305
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
5257
5306
|
/**
|
|
5258
5307
|
* 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/
|
|
5308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
|
|
5260
5309
|
*/
|
|
5261
5310
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
5262
5311
|
/**
|
|
5263
5312
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5264
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5313
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
|
|
5265
5314
|
*/
|
|
5266
5315
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
5267
5316
|
/**
|
|
5268
5317
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5269
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
|
|
5270
5319
|
*/
|
|
5271
5320
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
5272
5321
|
/**
|
|
5273
5322
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5274
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5323
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5275
5324
|
*/
|
|
5276
5325
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
5277
5326
|
/**
|
|
5278
5327
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5279
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
|
|
5280
5329
|
*/
|
|
5281
5330
|
'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
5331
|
/**
|
|
5288
5332
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5289
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
|
|
5290
5334
|
*/
|
|
5291
5335
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
5292
5336
|
/**
|
|
5293
5337
|
* Prefer default parameters over reassignment.
|
|
5294
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
|
|
5295
5339
|
*/
|
|
5296
5340
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
5297
5341
|
/**
|
|
5298
5342
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5299
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
|
|
5300
5344
|
*/
|
|
5301
5345
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
5302
5346
|
/**
|
|
5303
5347
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5304
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5305
5349
|
*/
|
|
5306
5350
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
5307
5351
|
/**
|
|
5308
5352
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5309
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5310
5354
|
*/
|
|
5311
5355
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
5312
5356
|
/**
|
|
5313
5357
|
* Prefer `.textContent` over `.innerText`.
|
|
5314
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5315
5359
|
*/
|
|
5316
5360
|
'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
5361
|
/**
|
|
5323
5362
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5324
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5363
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
|
|
5325
5364
|
*/
|
|
5326
5365
|
'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
5366
|
/**
|
|
5333
5367
|
* Prefer `export…from` when re-exporting.
|
|
5334
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5368
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
|
|
5335
5369
|
*/
|
|
5336
5370
|
'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
5371
|
/**
|
|
5343
5372
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5344
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5373
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
|
|
5345
5374
|
*/
|
|
5346
5375
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
5347
5376
|
/**
|
|
5348
5377
|
* 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/
|
|
5378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
|
|
5350
5379
|
*/
|
|
5351
5380
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
5352
5381
|
/**
|
|
5353
5382
|
* Prefer reading a JSON file as a buffer.
|
|
5354
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5355
5384
|
*/
|
|
5356
5385
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
5357
5386
|
/**
|
|
5358
5387
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5359
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5360
5389
|
*/
|
|
5361
5390
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
5362
5391
|
/**
|
|
5363
5392
|
* Prefer using a logical operator over a ternary.
|
|
5364
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5393
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5365
5394
|
*/
|
|
5366
5395
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
5367
5396
|
/**
|
|
5368
5397
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5369
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5398
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
|
|
5370
5399
|
*/
|
|
5371
5400
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
5372
5401
|
/**
|
|
5373
5402
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5374
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
|
|
5375
5404
|
*/
|
|
5376
5405
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
5377
5406
|
/**
|
|
5378
5407
|
* 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/
|
|
5408
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5380
5409
|
*/
|
|
5381
5410
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
5382
5411
|
/**
|
|
5383
5412
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5384
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5413
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5385
5414
|
*/
|
|
5386
5415
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
5387
5416
|
/**
|
|
5388
5417
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5389
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5418
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
|
|
5390
5419
|
*/
|
|
5391
5420
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
5392
5421
|
/**
|
|
5393
5422
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5394
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5423
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5395
5424
|
*/
|
|
5396
5425
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
5397
5426
|
/**
|
|
5398
5427
|
* Prefer negative index over `.length - index` when possible.
|
|
5399
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5428
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
|
|
5400
5429
|
*/
|
|
5401
5430
|
'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
5431
|
/**
|
|
5408
5432
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5409
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5433
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
|
|
5410
5434
|
*/
|
|
5411
5435
|
'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
5436
|
/**
|
|
5418
5437
|
* Prefer `Number` static properties over global ones.
|
|
5419
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5438
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
|
|
5420
5439
|
*/
|
|
5421
5440
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
5422
5441
|
/**
|
|
5423
5442
|
* 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/
|
|
5443
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
|
|
5425
5444
|
*/
|
|
5426
5445
|
'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
5446
|
/**
|
|
5433
5447
|
* Prefer omitting the `catch` binding parameter.
|
|
5434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5448
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5435
5449
|
*/
|
|
5436
5450
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
5437
5451
|
/**
|
|
5438
5452
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5453
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
|
|
5440
5454
|
*/
|
|
5441
5455
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
5442
5456
|
/**
|
|
5443
5457
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5458
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
|
|
5445
5459
|
*/
|
|
5446
5460
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
5447
5461
|
/**
|
|
5448
5462
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5463
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
|
|
5450
5464
|
*/
|
|
5451
5465
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
5452
5466
|
/**
|
|
5453
5467
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5468
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
|
|
5455
5469
|
*/
|
|
5456
5470
|
'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
5471
|
/**
|
|
5463
5472
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5473
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
|
|
5465
5474
|
*/
|
|
5466
5475
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
5467
5476
|
/**
|
|
5468
5477
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5478
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
|
|
5470
5479
|
*/
|
|
5471
5480
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
5472
5481
|
/**
|
|
5473
5482
|
* 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/
|
|
5483
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
|
|
5475
5484
|
*/
|
|
5476
5485
|
'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
5486
|
/**
|
|
5483
5487
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5488
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
|
|
5485
5489
|
*/
|
|
5486
5490
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
5487
5491
|
/**
|
|
5488
5492
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5493
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
|
|
5490
5494
|
*/
|
|
5491
5495
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
5492
5496
|
/**
|
|
5493
5497
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5498
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
|
|
5495
5499
|
*/
|
|
5496
5500
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
5497
5501
|
/**
|
|
5498
5502
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5503
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5500
5504
|
*/
|
|
5501
5505
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5502
5506
|
/**
|
|
5503
5507
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5508
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5505
5509
|
*/
|
|
5506
5510
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5507
5511
|
/**
|
|
5508
5512
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5513
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
|
|
5510
5514
|
*/
|
|
5511
5515
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
5512
5516
|
/**
|
|
5513
5517
|
* Prefer `switch` over multiple `else-if`.
|
|
5514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5518
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
|
|
5515
5519
|
*/
|
|
5516
5520
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
5517
5521
|
/**
|
|
5518
5522
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5523
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
|
|
5520
5524
|
*/
|
|
5521
5525
|
'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
5526
|
/**
|
|
5528
5527
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5528
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
|
|
5530
5529
|
*/
|
|
5531
5530
|
'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
5531
|
/**
|
|
5538
5532
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5533
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
|
|
5540
5534
|
*/
|
|
5541
5535
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
5542
5536
|
/**
|
|
5543
5537
|
* Prevent abbreviations.
|
|
5544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5538
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
|
|
5545
5539
|
*/
|
|
5546
5540
|
'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
5541
|
/**
|
|
5553
5542
|
* Enforce consistent relative URL style.
|
|
5554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5543
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
|
|
5555
5544
|
*/
|
|
5556
5545
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
5557
5546
|
/**
|
|
5558
5547
|
* Enforce using the separator argument with `Array#join()`.
|
|
5559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5548
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
|
|
5560
5549
|
*/
|
|
5561
5550
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
5562
5551
|
/**
|
|
5563
5552
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5553
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5565
5554
|
*/
|
|
5566
5555
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
5567
5556
|
/**
|
|
5568
5557
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5558
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
|
|
5570
5559
|
*/
|
|
5571
5560
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
5572
5561
|
/**
|
|
5573
5562
|
* Enforce better string content.
|
|
5574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5563
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
|
|
5575
5564
|
*/
|
|
5576
5565
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
5577
5566
|
/**
|
|
5578
5567
|
* Enforce consistent brace style for `case` clauses.
|
|
5579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5568
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
|
|
5580
5569
|
*/
|
|
5581
5570
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
5582
5571
|
/**
|
|
5583
5572
|
* Fix whitespace-insensitive template indentation.
|
|
5584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5573
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
|
|
5585
5574
|
*/
|
|
5586
5575
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
5587
5576
|
/**
|
|
5588
5577
|
* Enforce consistent case for text encoding identifiers.
|
|
5589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5578
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5590
5579
|
*/
|
|
5591
5580
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
5592
5581
|
/**
|
|
5593
5582
|
* Require `new` when creating an error.
|
|
5594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5583
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
|
|
5595
5584
|
*/
|
|
5596
5585
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
5597
5586
|
/**
|
|
@@ -5946,6 +5935,8 @@ type TypescriptEslintExplicitModuleBoundaryTypes = []|[{
|
|
|
5946
5935
|
|
|
5947
5936
|
allowHigherOrderFunctions?: boolean
|
|
5948
5937
|
|
|
5938
|
+
allowOverloadFunctions?: boolean
|
|
5939
|
+
|
|
5949
5940
|
allowTypedFunctionExpressions?: boolean
|
|
5950
5941
|
}]
|
|
5951
5942
|
// ----- @typescript-eslint/init-declarations -----
|
|
@@ -6612,11 +6603,13 @@ type TypescriptEslintNoUnnecessaryBooleanLiteralCompare = []|[{
|
|
|
6612
6603
|
allowComparingNullableBooleansToFalse?: boolean
|
|
6613
6604
|
|
|
6614
6605
|
allowComparingNullableBooleansToTrue?: boolean
|
|
6606
|
+
|
|
6607
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
6615
6608
|
}]
|
|
6616
6609
|
// ----- @typescript-eslint/no-unnecessary-condition -----
|
|
6617
6610
|
type TypescriptEslintNoUnnecessaryCondition = []|[{
|
|
6618
6611
|
|
|
6619
|
-
allowConstantLoopConditions?: boolean
|
|
6612
|
+
allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
|
|
6620
6613
|
|
|
6621
6614
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
6622
6615
|
|
|
@@ -6975,6 +6968,8 @@ type TypescriptEslintUnboundMethod = []|[{
|
|
|
6975
6968
|
type TypescriptEslintUnifiedSignatures = []|[{
|
|
6976
6969
|
|
|
6977
6970
|
ignoreDifferentlyNamedParameters?: boolean
|
|
6971
|
+
|
|
6972
|
+
ignoreOverloadsWithDifferentJSDoc?: boolean
|
|
6978
6973
|
}]
|
|
6979
6974
|
// ----- accessor-pairs -----
|
|
6980
6975
|
type AccessorPairs = []|[{
|
|
@@ -8159,7 +8154,7 @@ type IdMatch = []|[string]|[string, {
|
|
|
8159
8154
|
// ----- implicit-arrow-linebreak -----
|
|
8160
8155
|
type ImplicitArrowLinebreak = []|[("beside" | "below")]
|
|
8161
8156
|
// ----- import-x/consistent-type-specifier-style -----
|
|
8162
|
-
type ImportXConsistentTypeSpecifierStyle = []|[("prefer-
|
|
8157
|
+
type ImportXConsistentTypeSpecifierStyle = []|[("prefer-top-level" | "prefer-inline")]
|
|
8163
8158
|
// ----- import-x/dynamic-import-chunkname -----
|
|
8164
8159
|
type ImportXDynamicImportChunkname = []|[{
|
|
8165
8160
|
importFunctions?: string[]
|
|
@@ -8379,6 +8374,17 @@ type ImportXOrder = []|[{
|
|
|
8379
8374
|
position?: ("after" | "before")
|
|
8380
8375
|
}[]
|
|
8381
8376
|
"newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never")
|
|
8377
|
+
"newlines-between-types"?: ("ignore" | "always" | "always-and-inside-groups" | "never")
|
|
8378
|
+
consolidateIslands?: ("inside-groups" | "never")
|
|
8379
|
+
sortTypesGroup?: boolean
|
|
8380
|
+
named?: (boolean | {
|
|
8381
|
+
enabled?: boolean
|
|
8382
|
+
import?: boolean
|
|
8383
|
+
export?: boolean
|
|
8384
|
+
require?: boolean
|
|
8385
|
+
cjsExports?: boolean
|
|
8386
|
+
types?: ("mixed" | "types-first" | "types-last")
|
|
8387
|
+
})
|
|
8382
8388
|
alphabetize?: {
|
|
8383
8389
|
caseInsensitive?: boolean
|
|
8384
8390
|
order?: ("ignore" | "asc" | "desc")
|
|
@@ -10035,6 +10041,14 @@ type PaddingLineBetweenStatements = {
|
|
|
10035
10041
|
// ----- perfectionist/sort-array-includes -----
|
|
10036
10042
|
type PerfectionistSortArrayIncludes = {
|
|
10037
10043
|
|
|
10044
|
+
fallbackSort?: {
|
|
10045
|
+
|
|
10046
|
+
order?: ("asc" | "desc")
|
|
10047
|
+
|
|
10048
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10049
|
+
[k: string]: unknown | undefined
|
|
10050
|
+
}
|
|
10051
|
+
|
|
10038
10052
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10039
10053
|
|
|
10040
10054
|
ignoreCase?: boolean
|
|
@@ -10045,47 +10059,99 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10045
10059
|
|
|
10046
10060
|
order?: ("asc" | "desc")
|
|
10047
10061
|
|
|
10062
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10063
|
+
|
|
10048
10064
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10049
10065
|
|
|
10050
10066
|
customGroups?: ({
|
|
10051
10067
|
|
|
10052
|
-
|
|
10068
|
+
newlinesInside?: ("always" | "never")
|
|
10069
|
+
|
|
10070
|
+
fallbackSort?: {
|
|
10071
|
+
|
|
10072
|
+
order?: ("asc" | "desc")
|
|
10073
|
+
|
|
10074
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10075
|
+
[k: string]: unknown | undefined
|
|
10076
|
+
}
|
|
10053
10077
|
|
|
10054
|
-
|
|
10078
|
+
groupName?: string
|
|
10055
10079
|
|
|
10056
|
-
order?: ("
|
|
10080
|
+
order?: ("asc" | "desc")
|
|
10057
10081
|
|
|
10058
|
-
|
|
10082
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10059
10083
|
anyOf?: {
|
|
10060
10084
|
|
|
10061
10085
|
selector?: ("literal" | "spread")
|
|
10062
10086
|
|
|
10063
|
-
elementNamePattern?:
|
|
10087
|
+
elementNamePattern?: (({
|
|
10088
|
+
pattern?: string
|
|
10089
|
+
flags?: string
|
|
10090
|
+
} | string)[] | ({
|
|
10091
|
+
pattern?: string
|
|
10092
|
+
flags?: string
|
|
10093
|
+
} | string))
|
|
10064
10094
|
}[]
|
|
10065
10095
|
} | {
|
|
10066
10096
|
|
|
10067
|
-
|
|
10097
|
+
newlinesInside?: ("always" | "never")
|
|
10068
10098
|
|
|
10069
|
-
|
|
10099
|
+
fallbackSort?: {
|
|
10100
|
+
|
|
10101
|
+
order?: ("asc" | "desc")
|
|
10102
|
+
|
|
10103
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10104
|
+
[k: string]: unknown | undefined
|
|
10105
|
+
}
|
|
10070
10106
|
|
|
10071
|
-
|
|
10107
|
+
groupName?: string
|
|
10072
10108
|
|
|
10073
|
-
|
|
10109
|
+
order?: ("asc" | "desc")
|
|
10110
|
+
|
|
10111
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10074
10112
|
|
|
10075
10113
|
selector?: ("literal" | "spread")
|
|
10076
10114
|
|
|
10077
|
-
elementNamePattern?:
|
|
10115
|
+
elementNamePattern?: (({
|
|
10116
|
+
pattern?: string
|
|
10117
|
+
flags?: string
|
|
10118
|
+
} | string)[] | ({
|
|
10119
|
+
pattern?: string
|
|
10120
|
+
flags?: string
|
|
10121
|
+
} | string))
|
|
10078
10122
|
})[]
|
|
10079
10123
|
useConfigurationIf?: {
|
|
10080
|
-
|
|
10124
|
+
|
|
10125
|
+
allNamesMatchPattern?: (({
|
|
10126
|
+
pattern?: string
|
|
10127
|
+
flags?: string
|
|
10128
|
+
} | string)[] | ({
|
|
10129
|
+
pattern?: string
|
|
10130
|
+
flags?: string
|
|
10131
|
+
} | string))
|
|
10081
10132
|
}
|
|
10082
10133
|
|
|
10083
|
-
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
|
|
10134
|
+
partitionByComment?: (boolean | (({
|
|
10135
|
+
pattern?: string
|
|
10136
|
+
flags?: string
|
|
10137
|
+
} | string)[] | ({
|
|
10138
|
+
pattern?: string
|
|
10139
|
+
flags?: string
|
|
10140
|
+
} | string)) | {
|
|
10141
|
+
block?: (boolean | (({
|
|
10142
|
+
pattern?: string
|
|
10143
|
+
flags?: string
|
|
10144
|
+
} | string)[] | ({
|
|
10145
|
+
pattern?: string
|
|
10146
|
+
flags?: string
|
|
10147
|
+
} | string)))
|
|
10148
|
+
line?: (boolean | (({
|
|
10149
|
+
pattern?: string
|
|
10150
|
+
flags?: string
|
|
10151
|
+
} | string)[] | ({
|
|
10152
|
+
pattern?: string
|
|
10153
|
+
flags?: string
|
|
10154
|
+
} | string)))
|
|
10089
10155
|
})
|
|
10090
10156
|
|
|
10091
10157
|
partitionByNewLine?: boolean
|
|
@@ -10095,12 +10161,19 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10095
10161
|
groups?: (string | string[] | {
|
|
10096
10162
|
|
|
10097
10163
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10098
|
-
[k: string]: unknown | undefined
|
|
10099
10164
|
})[]
|
|
10100
10165
|
}[]
|
|
10101
10166
|
// ----- perfectionist/sort-classes -----
|
|
10102
10167
|
type PerfectionistSortClasses = []|[{
|
|
10103
10168
|
|
|
10169
|
+
fallbackSort?: {
|
|
10170
|
+
|
|
10171
|
+
order?: ("asc" | "desc")
|
|
10172
|
+
|
|
10173
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10174
|
+
[k: string]: unknown | undefined
|
|
10175
|
+
}
|
|
10176
|
+
|
|
10104
10177
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10105
10178
|
|
|
10106
10179
|
ignoreCase?: boolean
|
|
@@ -10111,71 +10184,153 @@ type PerfectionistSortClasses = []|[{
|
|
|
10111
10184
|
|
|
10112
10185
|
order?: ("asc" | "desc")
|
|
10113
10186
|
|
|
10114
|
-
|
|
10187
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10115
10188
|
|
|
10116
10189
|
customGroups?: ({
|
|
10117
10190
|
|
|
10118
|
-
|
|
10191
|
+
newlinesInside?: ("always" | "never")
|
|
10192
|
+
|
|
10193
|
+
fallbackSort?: {
|
|
10194
|
+
|
|
10195
|
+
order?: ("asc" | "desc")
|
|
10196
|
+
|
|
10197
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10198
|
+
[k: string]: unknown | undefined
|
|
10199
|
+
}
|
|
10119
10200
|
|
|
10120
|
-
|
|
10201
|
+
groupName?: string
|
|
10121
10202
|
|
|
10122
|
-
order?: ("
|
|
10203
|
+
order?: ("asc" | "desc")
|
|
10123
10204
|
|
|
10124
|
-
|
|
10205
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10125
10206
|
anyOf?: {
|
|
10126
10207
|
|
|
10127
|
-
decoratorNamePattern?: string
|
|
10128
|
-
|
|
10129
10208
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
10130
10209
|
|
|
10131
10210
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
10132
10211
|
|
|
10133
|
-
|
|
10212
|
+
decoratorNamePattern?: (({
|
|
10213
|
+
pattern?: string
|
|
10214
|
+
flags?: string
|
|
10215
|
+
} | string)[] | ({
|
|
10216
|
+
pattern?: string
|
|
10217
|
+
flags?: string
|
|
10218
|
+
} | string))
|
|
10219
|
+
|
|
10220
|
+
elementValuePattern?: (({
|
|
10221
|
+
pattern?: string
|
|
10222
|
+
flags?: string
|
|
10223
|
+
} | string)[] | ({
|
|
10224
|
+
pattern?: string
|
|
10225
|
+
flags?: string
|
|
10226
|
+
} | string))
|
|
10134
10227
|
|
|
10135
|
-
elementNamePattern?:
|
|
10228
|
+
elementNamePattern?: (({
|
|
10229
|
+
pattern?: string
|
|
10230
|
+
flags?: string
|
|
10231
|
+
} | string)[] | ({
|
|
10232
|
+
pattern?: string
|
|
10233
|
+
flags?: string
|
|
10234
|
+
} | string))
|
|
10136
10235
|
}[]
|
|
10137
10236
|
} | {
|
|
10138
10237
|
|
|
10139
|
-
|
|
10238
|
+
newlinesInside?: ("always" | "never")
|
|
10140
10239
|
|
|
10141
|
-
|
|
10240
|
+
fallbackSort?: {
|
|
10241
|
+
|
|
10242
|
+
order?: ("asc" | "desc")
|
|
10243
|
+
|
|
10244
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10245
|
+
[k: string]: unknown | undefined
|
|
10246
|
+
}
|
|
10142
10247
|
|
|
10143
|
-
|
|
10248
|
+
groupName?: string
|
|
10144
10249
|
|
|
10145
|
-
|
|
10250
|
+
order?: ("asc" | "desc")
|
|
10146
10251
|
|
|
10147
|
-
|
|
10252
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10148
10253
|
|
|
10149
10254
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
10150
10255
|
|
|
10151
10256
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
10152
10257
|
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10258
|
+
decoratorNamePattern?: (({
|
|
10259
|
+
pattern?: string
|
|
10260
|
+
flags?: string
|
|
10261
|
+
} | string)[] | ({
|
|
10262
|
+
pattern?: string
|
|
10263
|
+
flags?: string
|
|
10264
|
+
} | string))
|
|
10265
|
+
|
|
10266
|
+
elementValuePattern?: (({
|
|
10267
|
+
pattern?: string
|
|
10268
|
+
flags?: string
|
|
10269
|
+
} | string)[] | ({
|
|
10270
|
+
pattern?: string
|
|
10271
|
+
flags?: string
|
|
10272
|
+
} | string))
|
|
10273
|
+
|
|
10274
|
+
elementNamePattern?: (({
|
|
10275
|
+
pattern?: string
|
|
10276
|
+
flags?: string
|
|
10277
|
+
} | string)[] | ({
|
|
10278
|
+
pattern?: string
|
|
10279
|
+
flags?: string
|
|
10280
|
+
} | string))
|
|
10156
10281
|
})[]
|
|
10157
10282
|
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10283
|
+
ignoreCallbackDependenciesPatterns?: (({
|
|
10284
|
+
pattern?: string
|
|
10285
|
+
flags?: string
|
|
10286
|
+
} | string)[] | ({
|
|
10287
|
+
pattern?: string
|
|
10288
|
+
flags?: string
|
|
10289
|
+
} | string))
|
|
10290
|
+
|
|
10291
|
+
partitionByComment?: (boolean | (({
|
|
10292
|
+
pattern?: string
|
|
10293
|
+
flags?: string
|
|
10294
|
+
} | string)[] | ({
|
|
10295
|
+
pattern?: string
|
|
10296
|
+
flags?: string
|
|
10297
|
+
} | string)) | {
|
|
10298
|
+
block?: (boolean | (({
|
|
10299
|
+
pattern?: string
|
|
10300
|
+
flags?: string
|
|
10301
|
+
} | string)[] | ({
|
|
10302
|
+
pattern?: string
|
|
10303
|
+
flags?: string
|
|
10304
|
+
} | string)))
|
|
10305
|
+
line?: (boolean | (({
|
|
10306
|
+
pattern?: string
|
|
10307
|
+
flags?: string
|
|
10308
|
+
} | string)[] | ({
|
|
10309
|
+
pattern?: string
|
|
10310
|
+
flags?: string
|
|
10311
|
+
} | string)))
|
|
10162
10312
|
})
|
|
10163
10313
|
|
|
10164
10314
|
partitionByNewLine?: boolean
|
|
10165
10315
|
|
|
10166
10316
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10167
10317
|
|
|
10168
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10169
|
-
|
|
10170
10318
|
groups?: (string | string[] | {
|
|
10171
10319
|
|
|
10172
10320
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10173
|
-
[k: string]: unknown | undefined
|
|
10174
10321
|
})[]
|
|
10175
10322
|
}]
|
|
10176
10323
|
// ----- perfectionist/sort-decorators -----
|
|
10177
10324
|
type PerfectionistSortDecorators = []|[{
|
|
10178
10325
|
|
|
10326
|
+
fallbackSort?: {
|
|
10327
|
+
|
|
10328
|
+
order?: ("asc" | "desc")
|
|
10329
|
+
|
|
10330
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10331
|
+
[k: string]: unknown | undefined
|
|
10332
|
+
}
|
|
10333
|
+
|
|
10179
10334
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10180
10335
|
|
|
10181
10336
|
ignoreCase?: boolean
|
|
@@ -10186,6 +10341,8 @@ type PerfectionistSortDecorators = []|[{
|
|
|
10186
10341
|
|
|
10187
10342
|
order?: ("asc" | "desc")
|
|
10188
10343
|
|
|
10344
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10345
|
+
|
|
10189
10346
|
sortOnParameters?: boolean
|
|
10190
10347
|
|
|
10191
10348
|
sortOnProperties?: boolean
|
|
@@ -10196,27 +10353,49 @@ type PerfectionistSortDecorators = []|[{
|
|
|
10196
10353
|
|
|
10197
10354
|
sortOnClasses?: boolean
|
|
10198
10355
|
|
|
10199
|
-
partitionByComment?: (
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10356
|
+
partitionByComment?: (boolean | (({
|
|
10357
|
+
pattern?: string
|
|
10358
|
+
flags?: string
|
|
10359
|
+
} | string)[] | ({
|
|
10360
|
+
pattern?: string
|
|
10361
|
+
flags?: string
|
|
10362
|
+
} | string)) | {
|
|
10363
|
+
block?: (boolean | (({
|
|
10364
|
+
pattern?: string
|
|
10365
|
+
flags?: string
|
|
10366
|
+
} | string)[] | ({
|
|
10367
|
+
pattern?: string
|
|
10368
|
+
flags?: string
|
|
10369
|
+
} | string)))
|
|
10370
|
+
line?: (boolean | (({
|
|
10371
|
+
pattern?: string
|
|
10372
|
+
flags?: string
|
|
10373
|
+
} | string)[] | ({
|
|
10374
|
+
pattern?: string
|
|
10375
|
+
flags?: string
|
|
10376
|
+
} | string)))
|
|
10203
10377
|
})
|
|
10204
10378
|
|
|
10205
10379
|
customGroups?: {
|
|
10206
10380
|
[k: string]: (string | string[]) | undefined
|
|
10207
10381
|
}
|
|
10208
10382
|
|
|
10209
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10210
|
-
|
|
10211
10383
|
groups?: (string | string[] | {
|
|
10212
10384
|
|
|
10213
10385
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10214
|
-
[k: string]: unknown | undefined
|
|
10215
10386
|
})[]
|
|
10216
10387
|
}]
|
|
10217
10388
|
// ----- perfectionist/sort-enums -----
|
|
10218
10389
|
type PerfectionistSortEnums = []|[{
|
|
10219
10390
|
|
|
10391
|
+
fallbackSort?: {
|
|
10392
|
+
|
|
10393
|
+
order?: ("asc" | "desc")
|
|
10394
|
+
|
|
10395
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10396
|
+
[k: string]: unknown | undefined
|
|
10397
|
+
}
|
|
10398
|
+
|
|
10220
10399
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10221
10400
|
|
|
10222
10401
|
ignoreCase?: boolean
|
|
@@ -10227,23 +10406,126 @@ type PerfectionistSortEnums = []|[{
|
|
|
10227
10406
|
|
|
10228
10407
|
order?: ("asc" | "desc")
|
|
10229
10408
|
|
|
10409
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10410
|
+
|
|
10230
10411
|
forceNumericSort?: boolean
|
|
10412
|
+
customGroups?: ({
|
|
10413
|
+
[k: string]: (string | string[]) | undefined
|
|
10414
|
+
} | ({
|
|
10415
|
+
|
|
10416
|
+
newlinesInside?: ("always" | "never")
|
|
10417
|
+
|
|
10418
|
+
fallbackSort?: {
|
|
10419
|
+
|
|
10420
|
+
order?: ("asc" | "desc")
|
|
10421
|
+
|
|
10422
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10423
|
+
[k: string]: unknown | undefined
|
|
10424
|
+
}
|
|
10425
|
+
|
|
10426
|
+
groupName?: string
|
|
10427
|
+
|
|
10428
|
+
order?: ("asc" | "desc")
|
|
10429
|
+
|
|
10430
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10431
|
+
anyOf?: {
|
|
10432
|
+
|
|
10433
|
+
elementValuePattern?: (({
|
|
10434
|
+
pattern?: string
|
|
10435
|
+
flags?: string
|
|
10436
|
+
} | string)[] | ({
|
|
10437
|
+
pattern?: string
|
|
10438
|
+
flags?: string
|
|
10439
|
+
} | string))
|
|
10440
|
+
|
|
10441
|
+
elementNamePattern?: (({
|
|
10442
|
+
pattern?: string
|
|
10443
|
+
flags?: string
|
|
10444
|
+
} | string)[] | ({
|
|
10445
|
+
pattern?: string
|
|
10446
|
+
flags?: string
|
|
10447
|
+
} | string))
|
|
10448
|
+
}[]
|
|
10449
|
+
} | {
|
|
10450
|
+
|
|
10451
|
+
newlinesInside?: ("always" | "never")
|
|
10452
|
+
|
|
10453
|
+
fallbackSort?: {
|
|
10454
|
+
|
|
10455
|
+
order?: ("asc" | "desc")
|
|
10456
|
+
|
|
10457
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10458
|
+
[k: string]: unknown | undefined
|
|
10459
|
+
}
|
|
10460
|
+
|
|
10461
|
+
groupName?: string
|
|
10462
|
+
|
|
10463
|
+
order?: ("asc" | "desc")
|
|
10464
|
+
|
|
10465
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10466
|
+
|
|
10467
|
+
elementValuePattern?: (({
|
|
10468
|
+
pattern?: string
|
|
10469
|
+
flags?: string
|
|
10470
|
+
} | string)[] | ({
|
|
10471
|
+
pattern?: string
|
|
10472
|
+
flags?: string
|
|
10473
|
+
} | string))
|
|
10474
|
+
|
|
10475
|
+
elementNamePattern?: (({
|
|
10476
|
+
pattern?: string
|
|
10477
|
+
flags?: string
|
|
10478
|
+
} | string)[] | ({
|
|
10479
|
+
pattern?: string
|
|
10480
|
+
flags?: string
|
|
10481
|
+
} | string))
|
|
10482
|
+
})[])
|
|
10231
10483
|
|
|
10232
10484
|
sortByValue?: boolean
|
|
10233
10485
|
|
|
10234
|
-
partitionByComment?: (
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10486
|
+
partitionByComment?: (boolean | (({
|
|
10487
|
+
pattern?: string
|
|
10488
|
+
flags?: string
|
|
10489
|
+
} | string)[] | ({
|
|
10490
|
+
pattern?: string
|
|
10491
|
+
flags?: string
|
|
10492
|
+
} | string)) | {
|
|
10493
|
+
block?: (boolean | (({
|
|
10494
|
+
pattern?: string
|
|
10495
|
+
flags?: string
|
|
10496
|
+
} | string)[] | ({
|
|
10497
|
+
pattern?: string
|
|
10498
|
+
flags?: string
|
|
10499
|
+
} | string)))
|
|
10500
|
+
line?: (boolean | (({
|
|
10501
|
+
pattern?: string
|
|
10502
|
+
flags?: string
|
|
10503
|
+
} | string)[] | ({
|
|
10504
|
+
pattern?: string
|
|
10505
|
+
flags?: string
|
|
10506
|
+
} | string)))
|
|
10238
10507
|
})
|
|
10239
10508
|
|
|
10240
10509
|
partitionByNewLine?: boolean
|
|
10241
10510
|
|
|
10242
|
-
|
|
10511
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10512
|
+
|
|
10513
|
+
groups?: (string | string[] | {
|
|
10514
|
+
|
|
10515
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10516
|
+
})[]
|
|
10243
10517
|
}]
|
|
10244
10518
|
// ----- perfectionist/sort-exports -----
|
|
10245
10519
|
type PerfectionistSortExports = []|[{
|
|
10246
10520
|
|
|
10521
|
+
fallbackSort?: {
|
|
10522
|
+
|
|
10523
|
+
order?: ("asc" | "desc")
|
|
10524
|
+
|
|
10525
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10526
|
+
[k: string]: unknown | undefined
|
|
10527
|
+
}
|
|
10528
|
+
|
|
10247
10529
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10248
10530
|
|
|
10249
10531
|
ignoreCase?: boolean
|
|
@@ -10254,21 +10536,46 @@ type PerfectionistSortExports = []|[{
|
|
|
10254
10536
|
|
|
10255
10537
|
order?: ("asc" | "desc")
|
|
10256
10538
|
|
|
10539
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10540
|
+
|
|
10257
10541
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10258
10542
|
|
|
10259
|
-
partitionByComment?: (
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10543
|
+
partitionByComment?: (boolean | (({
|
|
10544
|
+
pattern?: string
|
|
10545
|
+
flags?: string
|
|
10546
|
+
} | string)[] | ({
|
|
10547
|
+
pattern?: string
|
|
10548
|
+
flags?: string
|
|
10549
|
+
} | string)) | {
|
|
10550
|
+
block?: (boolean | (({
|
|
10551
|
+
pattern?: string
|
|
10552
|
+
flags?: string
|
|
10553
|
+
} | string)[] | ({
|
|
10554
|
+
pattern?: string
|
|
10555
|
+
flags?: string
|
|
10556
|
+
} | string)))
|
|
10557
|
+
line?: (boolean | (({
|
|
10558
|
+
pattern?: string
|
|
10559
|
+
flags?: string
|
|
10560
|
+
} | string)[] | ({
|
|
10561
|
+
pattern?: string
|
|
10562
|
+
flags?: string
|
|
10563
|
+
} | string)))
|
|
10263
10564
|
})
|
|
10264
10565
|
|
|
10265
10566
|
partitionByNewLine?: boolean
|
|
10266
|
-
|
|
10267
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10268
10567
|
}]
|
|
10269
10568
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
10270
10569
|
type PerfectionistSortHeritageClauses = []|[{
|
|
10271
10570
|
|
|
10571
|
+
fallbackSort?: {
|
|
10572
|
+
|
|
10573
|
+
order?: ("asc" | "desc")
|
|
10574
|
+
|
|
10575
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10576
|
+
[k: string]: unknown | undefined
|
|
10577
|
+
}
|
|
10578
|
+
|
|
10272
10579
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10273
10580
|
|
|
10274
10581
|
ignoreCase?: boolean
|
|
@@ -10279,22 +10586,29 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
10279
10586
|
|
|
10280
10587
|
order?: ("asc" | "desc")
|
|
10281
10588
|
|
|
10589
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10590
|
+
|
|
10282
10591
|
customGroups?: {
|
|
10283
10592
|
[k: string]: (string | string[]) | undefined
|
|
10284
10593
|
}
|
|
10285
10594
|
|
|
10286
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10287
|
-
|
|
10288
10595
|
groups?: (string | string[] | {
|
|
10289
10596
|
|
|
10290
10597
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10291
|
-
[k: string]: unknown | undefined
|
|
10292
10598
|
})[]
|
|
10293
10599
|
}]
|
|
10294
10600
|
// ----- perfectionist/sort-imports -----
|
|
10295
10601
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
10296
10602
|
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
10297
10603
|
|
|
10604
|
+
fallbackSort?: {
|
|
10605
|
+
|
|
10606
|
+
order?: ("asc" | "desc")
|
|
10607
|
+
|
|
10608
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10609
|
+
[k: string]: unknown | undefined
|
|
10610
|
+
}
|
|
10611
|
+
|
|
10298
10612
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10299
10613
|
|
|
10300
10614
|
ignoreCase?: boolean
|
|
@@ -10305,6 +10619,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
10305
10619
|
|
|
10306
10620
|
order?: ("asc" | "desc")
|
|
10307
10621
|
|
|
10622
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10623
|
+
|
|
10308
10624
|
customGroups?: {
|
|
10309
10625
|
|
|
10310
10626
|
value?: {
|
|
@@ -10316,8 +10632,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
10316
10632
|
}
|
|
10317
10633
|
}
|
|
10318
10634
|
|
|
10319
|
-
internalPattern?: string[]
|
|
10320
|
-
|
|
10321
10635
|
maxLineLength?: number
|
|
10322
10636
|
|
|
10323
10637
|
sortSideEffects?: boolean
|
|
@@ -10326,22 +10640,44 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
10326
10640
|
|
|
10327
10641
|
tsconfigRootDir?: string
|
|
10328
10642
|
|
|
10329
|
-
partitionByComment?: (
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10643
|
+
partitionByComment?: (boolean | (({
|
|
10644
|
+
pattern?: string
|
|
10645
|
+
flags?: string
|
|
10646
|
+
} | string)[] | ({
|
|
10647
|
+
pattern?: string
|
|
10648
|
+
flags?: string
|
|
10649
|
+
} | string)) | {
|
|
10650
|
+
block?: (boolean | (({
|
|
10651
|
+
pattern?: string
|
|
10652
|
+
flags?: string
|
|
10653
|
+
} | string)[] | ({
|
|
10654
|
+
pattern?: string
|
|
10655
|
+
flags?: string
|
|
10656
|
+
} | string)))
|
|
10657
|
+
line?: (boolean | (({
|
|
10658
|
+
pattern?: string
|
|
10659
|
+
flags?: string
|
|
10660
|
+
} | string)[] | ({
|
|
10661
|
+
pattern?: string
|
|
10662
|
+
flags?: string
|
|
10663
|
+
} | string)))
|
|
10333
10664
|
})
|
|
10334
10665
|
|
|
10335
10666
|
partitionByNewLine?: boolean
|
|
10336
10667
|
|
|
10337
10668
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10338
10669
|
|
|
10339
|
-
|
|
10670
|
+
internalPattern?: (({
|
|
10671
|
+
pattern?: string
|
|
10672
|
+
flags?: string
|
|
10673
|
+
} | string)[] | ({
|
|
10674
|
+
pattern?: string
|
|
10675
|
+
flags?: string
|
|
10676
|
+
} | string))
|
|
10340
10677
|
|
|
10341
10678
|
groups?: (string | string[] | {
|
|
10342
10679
|
|
|
10343
10680
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10344
|
-
[k: string]: unknown | undefined
|
|
10345
10681
|
})[]
|
|
10346
10682
|
})
|
|
10347
10683
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
@@ -10354,6 +10690,14 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
10354
10690
|
// ----- perfectionist/sort-interfaces -----
|
|
10355
10691
|
type PerfectionistSortInterfaces = {
|
|
10356
10692
|
|
|
10693
|
+
fallbackSort?: {
|
|
10694
|
+
|
|
10695
|
+
order?: ("asc" | "desc")
|
|
10696
|
+
|
|
10697
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10698
|
+
[k: string]: unknown | undefined
|
|
10699
|
+
}
|
|
10700
|
+
|
|
10357
10701
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10358
10702
|
|
|
10359
10703
|
ignoreCase?: boolean
|
|
@@ -10364,70 +10708,163 @@ type PerfectionistSortInterfaces = {
|
|
|
10364
10708
|
|
|
10365
10709
|
order?: ("asc" | "desc")
|
|
10366
10710
|
|
|
10367
|
-
|
|
10368
|
-
useConfigurationIf?: {
|
|
10369
|
-
allNamesMatchPattern?: string
|
|
10370
|
-
declarationMatchesPattern?: string
|
|
10371
|
-
}
|
|
10711
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10372
10712
|
customGroups?: ({
|
|
10373
10713
|
[k: string]: (string | string[]) | undefined
|
|
10374
10714
|
} | ({
|
|
10375
10715
|
|
|
10376
|
-
|
|
10716
|
+
newlinesInside?: ("always" | "never")
|
|
10377
10717
|
|
|
10378
|
-
|
|
10718
|
+
fallbackSort?: {
|
|
10719
|
+
|
|
10720
|
+
order?: ("asc" | "desc")
|
|
10721
|
+
|
|
10722
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10723
|
+
sortBy?: ("name" | "value")
|
|
10724
|
+
[k: string]: unknown | undefined
|
|
10725
|
+
}
|
|
10379
10726
|
|
|
10380
|
-
|
|
10727
|
+
groupName?: string
|
|
10381
10728
|
|
|
10382
|
-
|
|
10729
|
+
order?: ("asc" | "desc")
|
|
10730
|
+
|
|
10731
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10383
10732
|
anyOf?: {
|
|
10384
10733
|
|
|
10385
10734
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10386
10735
|
|
|
10387
10736
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10388
10737
|
|
|
10389
|
-
|
|
10738
|
+
elementValuePattern?: (({
|
|
10739
|
+
pattern?: string
|
|
10740
|
+
flags?: string
|
|
10741
|
+
} | string)[] | ({
|
|
10742
|
+
pattern?: string
|
|
10743
|
+
flags?: string
|
|
10744
|
+
} | string))
|
|
10745
|
+
|
|
10746
|
+
elementNamePattern?: (({
|
|
10747
|
+
pattern?: string
|
|
10748
|
+
flags?: string
|
|
10749
|
+
} | string)[] | ({
|
|
10750
|
+
pattern?: string
|
|
10751
|
+
flags?: string
|
|
10752
|
+
} | string))
|
|
10753
|
+
sortBy?: ("name" | "value")
|
|
10390
10754
|
}[]
|
|
10391
10755
|
} | {
|
|
10392
10756
|
|
|
10393
|
-
|
|
10757
|
+
newlinesInside?: ("always" | "never")
|
|
10758
|
+
|
|
10759
|
+
fallbackSort?: {
|
|
10760
|
+
|
|
10761
|
+
order?: ("asc" | "desc")
|
|
10762
|
+
|
|
10763
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10764
|
+
sortBy?: ("name" | "value")
|
|
10765
|
+
[k: string]: unknown | undefined
|
|
10766
|
+
}
|
|
10394
10767
|
|
|
10395
|
-
|
|
10768
|
+
groupName?: string
|
|
10396
10769
|
|
|
10397
|
-
order?: ("
|
|
10770
|
+
order?: ("asc" | "desc")
|
|
10398
10771
|
|
|
10399
|
-
|
|
10772
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10400
10773
|
|
|
10401
10774
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10402
10775
|
|
|
10403
10776
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10404
10777
|
|
|
10405
|
-
|
|
10778
|
+
elementValuePattern?: (({
|
|
10779
|
+
pattern?: string
|
|
10780
|
+
flags?: string
|
|
10781
|
+
} | string)[] | ({
|
|
10782
|
+
pattern?: string
|
|
10783
|
+
flags?: string
|
|
10784
|
+
} | string))
|
|
10785
|
+
|
|
10786
|
+
elementNamePattern?: (({
|
|
10787
|
+
pattern?: string
|
|
10788
|
+
flags?: string
|
|
10789
|
+
} | string)[] | ({
|
|
10790
|
+
pattern?: string
|
|
10791
|
+
flags?: string
|
|
10792
|
+
} | string))
|
|
10793
|
+
sortBy?: ("name" | "value")
|
|
10406
10794
|
})[])
|
|
10795
|
+
useConfigurationIf?: {
|
|
10796
|
+
|
|
10797
|
+
allNamesMatchPattern?: (({
|
|
10798
|
+
pattern?: string
|
|
10799
|
+
flags?: string
|
|
10800
|
+
} | string)[] | ({
|
|
10801
|
+
pattern?: string
|
|
10802
|
+
flags?: string
|
|
10803
|
+
} | string))
|
|
10804
|
+
|
|
10805
|
+
declarationMatchesPattern?: (({
|
|
10806
|
+
pattern?: string
|
|
10807
|
+
flags?: string
|
|
10808
|
+
} | string)[] | ({
|
|
10809
|
+
pattern?: string
|
|
10810
|
+
flags?: string
|
|
10811
|
+
} | string))
|
|
10812
|
+
}
|
|
10407
10813
|
|
|
10408
10814
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
10409
10815
|
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
|
|
10415
|
-
|
|
10816
|
+
partitionByComment?: (boolean | (({
|
|
10817
|
+
pattern?: string
|
|
10818
|
+
flags?: string
|
|
10819
|
+
} | string)[] | ({
|
|
10820
|
+
pattern?: string
|
|
10821
|
+
flags?: string
|
|
10822
|
+
} | string)) | {
|
|
10823
|
+
block?: (boolean | (({
|
|
10824
|
+
pattern?: string
|
|
10825
|
+
flags?: string
|
|
10826
|
+
} | string)[] | ({
|
|
10827
|
+
pattern?: string
|
|
10828
|
+
flags?: string
|
|
10829
|
+
} | string)))
|
|
10830
|
+
line?: (boolean | (({
|
|
10831
|
+
pattern?: string
|
|
10832
|
+
flags?: string
|
|
10833
|
+
} | string)[] | ({
|
|
10834
|
+
pattern?: string
|
|
10835
|
+
flags?: string
|
|
10836
|
+
} | string)))
|
|
10416
10837
|
})
|
|
10417
10838
|
|
|
10418
10839
|
partitionByNewLine?: boolean
|
|
10419
10840
|
|
|
10420
10841
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10421
10842
|
|
|
10843
|
+
ignorePattern?: (({
|
|
10844
|
+
pattern?: string
|
|
10845
|
+
flags?: string
|
|
10846
|
+
} | string)[] | ({
|
|
10847
|
+
pattern?: string
|
|
10848
|
+
flags?: string
|
|
10849
|
+
} | string))
|
|
10850
|
+
sortBy?: ("name" | "value")
|
|
10851
|
+
|
|
10422
10852
|
groups?: (string | string[] | {
|
|
10423
10853
|
|
|
10424
10854
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10425
|
-
[k: string]: unknown | undefined
|
|
10426
10855
|
})[]
|
|
10427
10856
|
}[]
|
|
10428
10857
|
// ----- perfectionist/sort-intersection-types -----
|
|
10429
10858
|
type PerfectionistSortIntersectionTypes = []|[{
|
|
10430
10859
|
|
|
10860
|
+
fallbackSort?: {
|
|
10861
|
+
|
|
10862
|
+
order?: ("asc" | "desc")
|
|
10863
|
+
|
|
10864
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10865
|
+
[k: string]: unknown | undefined
|
|
10866
|
+
}
|
|
10867
|
+
|
|
10431
10868
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10432
10869
|
|
|
10433
10870
|
ignoreCase?: boolean
|
|
@@ -10438,26 +10875,50 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
10438
10875
|
|
|
10439
10876
|
order?: ("asc" | "desc")
|
|
10440
10877
|
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10878
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10879
|
+
|
|
10880
|
+
partitionByComment?: (boolean | (({
|
|
10881
|
+
pattern?: string
|
|
10882
|
+
flags?: string
|
|
10883
|
+
} | string)[] | ({
|
|
10884
|
+
pattern?: string
|
|
10885
|
+
flags?: string
|
|
10886
|
+
} | string)) | {
|
|
10887
|
+
block?: (boolean | (({
|
|
10888
|
+
pattern?: string
|
|
10889
|
+
flags?: string
|
|
10890
|
+
} | string)[] | ({
|
|
10891
|
+
pattern?: string
|
|
10892
|
+
flags?: string
|
|
10893
|
+
} | string)))
|
|
10894
|
+
line?: (boolean | (({
|
|
10895
|
+
pattern?: string
|
|
10896
|
+
flags?: string
|
|
10897
|
+
} | string)[] | ({
|
|
10898
|
+
pattern?: string
|
|
10899
|
+
flags?: string
|
|
10900
|
+
} | string)))
|
|
10445
10901
|
})
|
|
10446
10902
|
|
|
10447
10903
|
partitionByNewLine?: boolean
|
|
10448
10904
|
|
|
10449
10905
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10450
10906
|
|
|
10451
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10452
|
-
|
|
10453
10907
|
groups?: (string | string[] | {
|
|
10454
10908
|
|
|
10455
10909
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10456
|
-
[k: string]: unknown | undefined
|
|
10457
10910
|
})[]
|
|
10458
10911
|
}]
|
|
10459
10912
|
// ----- perfectionist/sort-jsx-props -----
|
|
10460
|
-
type PerfectionistSortJsxProps =
|
|
10913
|
+
type PerfectionistSortJsxProps = {
|
|
10914
|
+
|
|
10915
|
+
fallbackSort?: {
|
|
10916
|
+
|
|
10917
|
+
order?: ("asc" | "desc")
|
|
10918
|
+
|
|
10919
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10920
|
+
[k: string]: unknown | undefined
|
|
10921
|
+
}
|
|
10461
10922
|
|
|
10462
10923
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10463
10924
|
|
|
@@ -10469,7 +10930,25 @@ type PerfectionistSortJsxProps = []|[{
|
|
|
10469
10930
|
|
|
10470
10931
|
order?: ("asc" | "desc")
|
|
10471
10932
|
|
|
10472
|
-
|
|
10933
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10934
|
+
useConfigurationIf?: {
|
|
10935
|
+
|
|
10936
|
+
allNamesMatchPattern?: (({
|
|
10937
|
+
pattern?: string
|
|
10938
|
+
flags?: string
|
|
10939
|
+
} | string)[] | ({
|
|
10940
|
+
pattern?: string
|
|
10941
|
+
flags?: string
|
|
10942
|
+
} | string))
|
|
10943
|
+
|
|
10944
|
+
tagMatchesPattern?: (({
|
|
10945
|
+
pattern?: string
|
|
10946
|
+
flags?: string
|
|
10947
|
+
} | string)[] | ({
|
|
10948
|
+
pattern?: string
|
|
10949
|
+
flags?: string
|
|
10950
|
+
} | string))
|
|
10951
|
+
}
|
|
10473
10952
|
|
|
10474
10953
|
partitionByNewLine?: boolean
|
|
10475
10954
|
|
|
@@ -10479,17 +10958,30 @@ type PerfectionistSortJsxProps = []|[{
|
|
|
10479
10958
|
[k: string]: (string | string[]) | undefined
|
|
10480
10959
|
}
|
|
10481
10960
|
|
|
10482
|
-
|
|
10961
|
+
ignorePattern?: (({
|
|
10962
|
+
pattern?: string
|
|
10963
|
+
flags?: string
|
|
10964
|
+
} | string)[] | ({
|
|
10965
|
+
pattern?: string
|
|
10966
|
+
flags?: string
|
|
10967
|
+
} | string))
|
|
10483
10968
|
|
|
10484
10969
|
groups?: (string | string[] | {
|
|
10485
10970
|
|
|
10486
10971
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10487
|
-
[k: string]: unknown | undefined
|
|
10488
10972
|
})[]
|
|
10489
|
-
}]
|
|
10973
|
+
}[]
|
|
10490
10974
|
// ----- perfectionist/sort-maps -----
|
|
10491
10975
|
type PerfectionistSortMaps = {
|
|
10492
10976
|
|
|
10977
|
+
fallbackSort?: {
|
|
10978
|
+
|
|
10979
|
+
order?: ("asc" | "desc")
|
|
10980
|
+
|
|
10981
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10982
|
+
[k: string]: unknown | undefined
|
|
10983
|
+
}
|
|
10984
|
+
|
|
10493
10985
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10494
10986
|
|
|
10495
10987
|
ignoreCase?: boolean
|
|
@@ -10500,56 +10992,115 @@ type PerfectionistSortMaps = {
|
|
|
10500
10992
|
|
|
10501
10993
|
order?: ("asc" | "desc")
|
|
10502
10994
|
|
|
10995
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10996
|
+
|
|
10503
10997
|
customGroups?: ({
|
|
10504
10998
|
|
|
10505
|
-
|
|
10999
|
+
newlinesInside?: ("always" | "never")
|
|
11000
|
+
|
|
11001
|
+
fallbackSort?: {
|
|
11002
|
+
|
|
11003
|
+
order?: ("asc" | "desc")
|
|
11004
|
+
|
|
11005
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11006
|
+
[k: string]: unknown | undefined
|
|
11007
|
+
}
|
|
10506
11008
|
|
|
10507
|
-
|
|
11009
|
+
groupName?: string
|
|
10508
11010
|
|
|
10509
|
-
order?: ("
|
|
11011
|
+
order?: ("asc" | "desc")
|
|
10510
11012
|
|
|
10511
|
-
|
|
11013
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10512
11014
|
anyOf?: {
|
|
10513
11015
|
|
|
10514
|
-
elementNamePattern?:
|
|
11016
|
+
elementNamePattern?: (({
|
|
11017
|
+
pattern?: string
|
|
11018
|
+
flags?: string
|
|
11019
|
+
} | string)[] | ({
|
|
11020
|
+
pattern?: string
|
|
11021
|
+
flags?: string
|
|
11022
|
+
} | string))
|
|
10515
11023
|
}[]
|
|
10516
11024
|
} | {
|
|
10517
11025
|
|
|
10518
|
-
|
|
11026
|
+
newlinesInside?: ("always" | "never")
|
|
10519
11027
|
|
|
10520
|
-
|
|
11028
|
+
fallbackSort?: {
|
|
11029
|
+
|
|
11030
|
+
order?: ("asc" | "desc")
|
|
11031
|
+
|
|
11032
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11033
|
+
[k: string]: unknown | undefined
|
|
11034
|
+
}
|
|
10521
11035
|
|
|
10522
|
-
|
|
11036
|
+
groupName?: string
|
|
10523
11037
|
|
|
10524
|
-
|
|
11038
|
+
order?: ("asc" | "desc")
|
|
11039
|
+
|
|
11040
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10525
11041
|
|
|
10526
|
-
elementNamePattern?:
|
|
11042
|
+
elementNamePattern?: (({
|
|
11043
|
+
pattern?: string
|
|
11044
|
+
flags?: string
|
|
11045
|
+
} | string)[] | ({
|
|
11046
|
+
pattern?: string
|
|
11047
|
+
flags?: string
|
|
11048
|
+
} | string))
|
|
10527
11049
|
})[]
|
|
10528
11050
|
useConfigurationIf?: {
|
|
10529
|
-
|
|
11051
|
+
|
|
11052
|
+
allNamesMatchPattern?: (({
|
|
11053
|
+
pattern?: string
|
|
11054
|
+
flags?: string
|
|
11055
|
+
} | string)[] | ({
|
|
11056
|
+
pattern?: string
|
|
11057
|
+
flags?: string
|
|
11058
|
+
} | string))
|
|
10530
11059
|
}
|
|
10531
11060
|
|
|
10532
|
-
partitionByComment?: (
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
11061
|
+
partitionByComment?: (boolean | (({
|
|
11062
|
+
pattern?: string
|
|
11063
|
+
flags?: string
|
|
11064
|
+
} | string)[] | ({
|
|
11065
|
+
pattern?: string
|
|
11066
|
+
flags?: string
|
|
11067
|
+
} | string)) | {
|
|
11068
|
+
block?: (boolean | (({
|
|
11069
|
+
pattern?: string
|
|
11070
|
+
flags?: string
|
|
11071
|
+
} | string)[] | ({
|
|
11072
|
+
pattern?: string
|
|
11073
|
+
flags?: string
|
|
11074
|
+
} | string)))
|
|
11075
|
+
line?: (boolean | (({
|
|
11076
|
+
pattern?: string
|
|
11077
|
+
flags?: string
|
|
11078
|
+
} | string)[] | ({
|
|
11079
|
+
pattern?: string
|
|
11080
|
+
flags?: string
|
|
11081
|
+
} | string)))
|
|
10536
11082
|
})
|
|
10537
11083
|
|
|
10538
11084
|
partitionByNewLine?: boolean
|
|
10539
11085
|
|
|
10540
11086
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10541
11087
|
|
|
10542
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10543
|
-
|
|
10544
11088
|
groups?: (string | string[] | {
|
|
10545
11089
|
|
|
10546
11090
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10547
|
-
[k: string]: unknown | undefined
|
|
10548
11091
|
})[]
|
|
10549
11092
|
}[]
|
|
10550
11093
|
// ----- perfectionist/sort-modules -----
|
|
10551
11094
|
type PerfectionistSortModules = []|[{
|
|
10552
11095
|
|
|
11096
|
+
fallbackSort?: {
|
|
11097
|
+
|
|
11098
|
+
order?: ("asc" | "desc")
|
|
11099
|
+
|
|
11100
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11101
|
+
[k: string]: unknown | undefined
|
|
11102
|
+
}
|
|
11103
|
+
|
|
10553
11104
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10554
11105
|
|
|
10555
11106
|
ignoreCase?: boolean
|
|
@@ -10560,65 +11111,129 @@ type PerfectionistSortModules = []|[{
|
|
|
10560
11111
|
|
|
10561
11112
|
order?: ("asc" | "desc")
|
|
10562
11113
|
|
|
11114
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11115
|
+
|
|
10563
11116
|
customGroups?: ({
|
|
10564
11117
|
|
|
10565
|
-
|
|
11118
|
+
newlinesInside?: ("always" | "never")
|
|
10566
11119
|
|
|
10567
|
-
|
|
11120
|
+
fallbackSort?: {
|
|
11121
|
+
|
|
11122
|
+
order?: ("asc" | "desc")
|
|
11123
|
+
|
|
11124
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11125
|
+
[k: string]: unknown | undefined
|
|
11126
|
+
}
|
|
11127
|
+
|
|
11128
|
+
groupName?: string
|
|
10568
11129
|
|
|
10569
|
-
order?: ("
|
|
11130
|
+
order?: ("asc" | "desc")
|
|
10570
11131
|
|
|
10571
|
-
|
|
11132
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10572
11133
|
anyOf?: {
|
|
10573
11134
|
|
|
10574
|
-
decoratorNamePattern?: string
|
|
10575
|
-
|
|
10576
11135
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
10577
11136
|
|
|
10578
11137
|
selector?: ("enum" | "function" | "interface" | "type" | "class")
|
|
10579
11138
|
|
|
10580
|
-
|
|
11139
|
+
decoratorNamePattern?: (({
|
|
11140
|
+
pattern?: string
|
|
11141
|
+
flags?: string
|
|
11142
|
+
} | string)[] | ({
|
|
11143
|
+
pattern?: string
|
|
11144
|
+
flags?: string
|
|
11145
|
+
} | string))
|
|
11146
|
+
|
|
11147
|
+
elementNamePattern?: (({
|
|
11148
|
+
pattern?: string
|
|
11149
|
+
flags?: string
|
|
11150
|
+
} | string)[] | ({
|
|
11151
|
+
pattern?: string
|
|
11152
|
+
flags?: string
|
|
11153
|
+
} | string))
|
|
10581
11154
|
}[]
|
|
10582
11155
|
} | {
|
|
10583
11156
|
|
|
10584
|
-
|
|
11157
|
+
newlinesInside?: ("always" | "never")
|
|
10585
11158
|
|
|
10586
|
-
|
|
11159
|
+
fallbackSort?: {
|
|
11160
|
+
|
|
11161
|
+
order?: ("asc" | "desc")
|
|
11162
|
+
|
|
11163
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11164
|
+
[k: string]: unknown | undefined
|
|
11165
|
+
}
|
|
10587
11166
|
|
|
10588
|
-
|
|
11167
|
+
groupName?: string
|
|
10589
11168
|
|
|
10590
|
-
|
|
11169
|
+
order?: ("asc" | "desc")
|
|
10591
11170
|
|
|
10592
|
-
|
|
11171
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10593
11172
|
|
|
10594
11173
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
10595
11174
|
|
|
10596
11175
|
selector?: ("enum" | "function" | "interface" | "type" | "class")
|
|
10597
11176
|
|
|
10598
|
-
|
|
11177
|
+
decoratorNamePattern?: (({
|
|
11178
|
+
pattern?: string
|
|
11179
|
+
flags?: string
|
|
11180
|
+
} | string)[] | ({
|
|
11181
|
+
pattern?: string
|
|
11182
|
+
flags?: string
|
|
11183
|
+
} | string))
|
|
11184
|
+
|
|
11185
|
+
elementNamePattern?: (({
|
|
11186
|
+
pattern?: string
|
|
11187
|
+
flags?: string
|
|
11188
|
+
} | string)[] | ({
|
|
11189
|
+
pattern?: string
|
|
11190
|
+
flags?: string
|
|
11191
|
+
} | string))
|
|
10599
11192
|
})[]
|
|
10600
11193
|
|
|
10601
|
-
partitionByComment?: (
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
11194
|
+
partitionByComment?: (boolean | (({
|
|
11195
|
+
pattern?: string
|
|
11196
|
+
flags?: string
|
|
11197
|
+
} | string)[] | ({
|
|
11198
|
+
pattern?: string
|
|
11199
|
+
flags?: string
|
|
11200
|
+
} | string)) | {
|
|
11201
|
+
block?: (boolean | (({
|
|
11202
|
+
pattern?: string
|
|
11203
|
+
flags?: string
|
|
11204
|
+
} | string)[] | ({
|
|
11205
|
+
pattern?: string
|
|
11206
|
+
flags?: string
|
|
11207
|
+
} | string)))
|
|
11208
|
+
line?: (boolean | (({
|
|
11209
|
+
pattern?: string
|
|
11210
|
+
flags?: string
|
|
11211
|
+
} | string)[] | ({
|
|
11212
|
+
pattern?: string
|
|
11213
|
+
flags?: string
|
|
11214
|
+
} | string)))
|
|
10605
11215
|
})
|
|
10606
11216
|
|
|
10607
11217
|
partitionByNewLine?: boolean
|
|
10608
11218
|
|
|
10609
11219
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10610
11220
|
|
|
10611
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10612
|
-
|
|
10613
11221
|
groups?: (string | string[] | {
|
|
10614
11222
|
|
|
10615
11223
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10616
|
-
[k: string]: unknown | undefined
|
|
10617
11224
|
})[]
|
|
10618
11225
|
}]
|
|
10619
11226
|
// ----- perfectionist/sort-named-exports -----
|
|
10620
11227
|
type PerfectionistSortNamedExports = []|[{
|
|
10621
11228
|
|
|
11229
|
+
fallbackSort?: {
|
|
11230
|
+
|
|
11231
|
+
order?: ("asc" | "desc")
|
|
11232
|
+
|
|
11233
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11234
|
+
[k: string]: unknown | undefined
|
|
11235
|
+
}
|
|
11236
|
+
|
|
10622
11237
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10623
11238
|
|
|
10624
11239
|
ignoreCase?: boolean
|
|
@@ -10629,21 +11244,48 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
10629
11244
|
|
|
10630
11245
|
order?: ("asc" | "desc")
|
|
10631
11246
|
|
|
11247
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11248
|
+
|
|
10632
11249
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10633
11250
|
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
11251
|
+
ignoreAlias?: boolean
|
|
11252
|
+
|
|
11253
|
+
partitionByComment?: (boolean | (({
|
|
11254
|
+
pattern?: string
|
|
11255
|
+
flags?: string
|
|
11256
|
+
} | string)[] | ({
|
|
11257
|
+
pattern?: string
|
|
11258
|
+
flags?: string
|
|
11259
|
+
} | string)) | {
|
|
11260
|
+
block?: (boolean | (({
|
|
11261
|
+
pattern?: string
|
|
11262
|
+
flags?: string
|
|
11263
|
+
} | string)[] | ({
|
|
11264
|
+
pattern?: string
|
|
11265
|
+
flags?: string
|
|
11266
|
+
} | string)))
|
|
11267
|
+
line?: (boolean | (({
|
|
11268
|
+
pattern?: string
|
|
11269
|
+
flags?: string
|
|
11270
|
+
} | string)[] | ({
|
|
11271
|
+
pattern?: string
|
|
11272
|
+
flags?: string
|
|
11273
|
+
} | string)))
|
|
10638
11274
|
})
|
|
10639
11275
|
|
|
10640
11276
|
partitionByNewLine?: boolean
|
|
10641
|
-
|
|
10642
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10643
11277
|
}]
|
|
10644
11278
|
// ----- perfectionist/sort-named-imports -----
|
|
10645
11279
|
type PerfectionistSortNamedImports = []|[{
|
|
10646
11280
|
|
|
11281
|
+
fallbackSort?: {
|
|
11282
|
+
|
|
11283
|
+
order?: ("asc" | "desc")
|
|
11284
|
+
|
|
11285
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11286
|
+
[k: string]: unknown | undefined
|
|
11287
|
+
}
|
|
11288
|
+
|
|
10647
11289
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10648
11290
|
|
|
10649
11291
|
ignoreCase?: boolean
|
|
@@ -10654,23 +11296,48 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
10654
11296
|
|
|
10655
11297
|
order?: ("asc" | "desc")
|
|
10656
11298
|
|
|
11299
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11300
|
+
|
|
10657
11301
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10658
11302
|
|
|
10659
11303
|
ignoreAlias?: boolean
|
|
10660
11304
|
|
|
10661
|
-
partitionByComment?: (
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
11305
|
+
partitionByComment?: (boolean | (({
|
|
11306
|
+
pattern?: string
|
|
11307
|
+
flags?: string
|
|
11308
|
+
} | string)[] | ({
|
|
11309
|
+
pattern?: string
|
|
11310
|
+
flags?: string
|
|
11311
|
+
} | string)) | {
|
|
11312
|
+
block?: (boolean | (({
|
|
11313
|
+
pattern?: string
|
|
11314
|
+
flags?: string
|
|
11315
|
+
} | string)[] | ({
|
|
11316
|
+
pattern?: string
|
|
11317
|
+
flags?: string
|
|
11318
|
+
} | string)))
|
|
11319
|
+
line?: (boolean | (({
|
|
11320
|
+
pattern?: string
|
|
11321
|
+
flags?: string
|
|
11322
|
+
} | string)[] | ({
|
|
11323
|
+
pattern?: string
|
|
11324
|
+
flags?: string
|
|
11325
|
+
} | string)))
|
|
10665
11326
|
})
|
|
10666
11327
|
|
|
10667
11328
|
partitionByNewLine?: boolean
|
|
10668
|
-
|
|
10669
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10670
11329
|
}]
|
|
10671
11330
|
// ----- perfectionist/sort-object-types -----
|
|
10672
11331
|
type PerfectionistSortObjectTypes = {
|
|
10673
11332
|
|
|
11333
|
+
fallbackSort?: {
|
|
11334
|
+
|
|
11335
|
+
order?: ("asc" | "desc")
|
|
11336
|
+
|
|
11337
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11338
|
+
[k: string]: unknown | undefined
|
|
11339
|
+
}
|
|
11340
|
+
|
|
10674
11341
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10675
11342
|
|
|
10676
11343
|
ignoreCase?: boolean
|
|
@@ -10681,70 +11348,163 @@ type PerfectionistSortObjectTypes = {
|
|
|
10681
11348
|
|
|
10682
11349
|
order?: ("asc" | "desc")
|
|
10683
11350
|
|
|
10684
|
-
|
|
10685
|
-
useConfigurationIf?: {
|
|
10686
|
-
allNamesMatchPattern?: string
|
|
10687
|
-
declarationMatchesPattern?: string
|
|
10688
|
-
}
|
|
11351
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10689
11352
|
customGroups?: ({
|
|
10690
11353
|
[k: string]: (string | string[]) | undefined
|
|
10691
11354
|
} | ({
|
|
10692
11355
|
|
|
10693
|
-
|
|
11356
|
+
newlinesInside?: ("always" | "never")
|
|
11357
|
+
|
|
11358
|
+
fallbackSort?: {
|
|
11359
|
+
|
|
11360
|
+
order?: ("asc" | "desc")
|
|
11361
|
+
|
|
11362
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11363
|
+
sortBy?: ("name" | "value")
|
|
11364
|
+
[k: string]: unknown | undefined
|
|
11365
|
+
}
|
|
10694
11366
|
|
|
10695
|
-
|
|
11367
|
+
groupName?: string
|
|
10696
11368
|
|
|
10697
|
-
order?: ("
|
|
11369
|
+
order?: ("asc" | "desc")
|
|
10698
11370
|
|
|
10699
|
-
|
|
11371
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10700
11372
|
anyOf?: {
|
|
10701
11373
|
|
|
10702
11374
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10703
11375
|
|
|
10704
11376
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10705
11377
|
|
|
10706
|
-
|
|
11378
|
+
elementValuePattern?: (({
|
|
11379
|
+
pattern?: string
|
|
11380
|
+
flags?: string
|
|
11381
|
+
} | string)[] | ({
|
|
11382
|
+
pattern?: string
|
|
11383
|
+
flags?: string
|
|
11384
|
+
} | string))
|
|
11385
|
+
|
|
11386
|
+
elementNamePattern?: (({
|
|
11387
|
+
pattern?: string
|
|
11388
|
+
flags?: string
|
|
11389
|
+
} | string)[] | ({
|
|
11390
|
+
pattern?: string
|
|
11391
|
+
flags?: string
|
|
11392
|
+
} | string))
|
|
11393
|
+
sortBy?: ("name" | "value")
|
|
10707
11394
|
}[]
|
|
10708
11395
|
} | {
|
|
10709
11396
|
|
|
10710
|
-
|
|
11397
|
+
newlinesInside?: ("always" | "never")
|
|
10711
11398
|
|
|
10712
|
-
|
|
11399
|
+
fallbackSort?: {
|
|
11400
|
+
|
|
11401
|
+
order?: ("asc" | "desc")
|
|
11402
|
+
|
|
11403
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11404
|
+
sortBy?: ("name" | "value")
|
|
11405
|
+
[k: string]: unknown | undefined
|
|
11406
|
+
}
|
|
11407
|
+
|
|
11408
|
+
groupName?: string
|
|
10713
11409
|
|
|
10714
|
-
order?: ("
|
|
11410
|
+
order?: ("asc" | "desc")
|
|
10715
11411
|
|
|
10716
|
-
|
|
11412
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10717
11413
|
|
|
10718
11414
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10719
11415
|
|
|
10720
11416
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
10721
11417
|
|
|
10722
|
-
|
|
11418
|
+
elementValuePattern?: (({
|
|
11419
|
+
pattern?: string
|
|
11420
|
+
flags?: string
|
|
11421
|
+
} | string)[] | ({
|
|
11422
|
+
pattern?: string
|
|
11423
|
+
flags?: string
|
|
11424
|
+
} | string))
|
|
11425
|
+
|
|
11426
|
+
elementNamePattern?: (({
|
|
11427
|
+
pattern?: string
|
|
11428
|
+
flags?: string
|
|
11429
|
+
} | string)[] | ({
|
|
11430
|
+
pattern?: string
|
|
11431
|
+
flags?: string
|
|
11432
|
+
} | string))
|
|
11433
|
+
sortBy?: ("name" | "value")
|
|
10723
11434
|
})[])
|
|
11435
|
+
useConfigurationIf?: {
|
|
11436
|
+
|
|
11437
|
+
allNamesMatchPattern?: (({
|
|
11438
|
+
pattern?: string
|
|
11439
|
+
flags?: string
|
|
11440
|
+
} | string)[] | ({
|
|
11441
|
+
pattern?: string
|
|
11442
|
+
flags?: string
|
|
11443
|
+
} | string))
|
|
11444
|
+
|
|
11445
|
+
declarationMatchesPattern?: (({
|
|
11446
|
+
pattern?: string
|
|
11447
|
+
flags?: string
|
|
11448
|
+
} | string)[] | ({
|
|
11449
|
+
pattern?: string
|
|
11450
|
+
flags?: string
|
|
11451
|
+
} | string))
|
|
11452
|
+
}
|
|
10724
11453
|
|
|
10725
11454
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
10726
11455
|
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10732
|
-
|
|
11456
|
+
partitionByComment?: (boolean | (({
|
|
11457
|
+
pattern?: string
|
|
11458
|
+
flags?: string
|
|
11459
|
+
} | string)[] | ({
|
|
11460
|
+
pattern?: string
|
|
11461
|
+
flags?: string
|
|
11462
|
+
} | string)) | {
|
|
11463
|
+
block?: (boolean | (({
|
|
11464
|
+
pattern?: string
|
|
11465
|
+
flags?: string
|
|
11466
|
+
} | string)[] | ({
|
|
11467
|
+
pattern?: string
|
|
11468
|
+
flags?: string
|
|
11469
|
+
} | string)))
|
|
11470
|
+
line?: (boolean | (({
|
|
11471
|
+
pattern?: string
|
|
11472
|
+
flags?: string
|
|
11473
|
+
} | string)[] | ({
|
|
11474
|
+
pattern?: string
|
|
11475
|
+
flags?: string
|
|
11476
|
+
} | string)))
|
|
10733
11477
|
})
|
|
10734
11478
|
|
|
10735
11479
|
partitionByNewLine?: boolean
|
|
10736
11480
|
|
|
10737
11481
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10738
11482
|
|
|
11483
|
+
ignorePattern?: (({
|
|
11484
|
+
pattern?: string
|
|
11485
|
+
flags?: string
|
|
11486
|
+
} | string)[] | ({
|
|
11487
|
+
pattern?: string
|
|
11488
|
+
flags?: string
|
|
11489
|
+
} | string))
|
|
11490
|
+
sortBy?: ("name" | "value")
|
|
11491
|
+
|
|
10739
11492
|
groups?: (string | string[] | {
|
|
10740
11493
|
|
|
10741
11494
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10742
|
-
[k: string]: unknown | undefined
|
|
10743
11495
|
})[]
|
|
10744
11496
|
}[]
|
|
10745
11497
|
// ----- perfectionist/sort-objects -----
|
|
10746
11498
|
type PerfectionistSortObjects = {
|
|
10747
11499
|
|
|
11500
|
+
fallbackSort?: {
|
|
11501
|
+
|
|
11502
|
+
order?: ("asc" | "desc")
|
|
11503
|
+
|
|
11504
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11505
|
+
[k: string]: unknown | undefined
|
|
11506
|
+
}
|
|
11507
|
+
|
|
10748
11508
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10749
11509
|
|
|
10750
11510
|
ignoreCase?: boolean
|
|
@@ -10755,55 +11515,109 @@ type PerfectionistSortObjects = {
|
|
|
10755
11515
|
|
|
10756
11516
|
order?: ("asc" | "desc")
|
|
10757
11517
|
|
|
11518
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11519
|
+
|
|
10758
11520
|
destructuredObjects?: (boolean | {
|
|
10759
11521
|
|
|
10760
11522
|
groups?: boolean
|
|
10761
11523
|
})
|
|
10762
|
-
|
|
10763
|
-
ignorePattern?: string[]
|
|
10764
|
-
useConfigurationIf?: {
|
|
10765
|
-
allNamesMatchPattern?: string
|
|
10766
|
-
callingFunctionNamePattern?: string
|
|
10767
|
-
}
|
|
10768
11524
|
customGroups?: ({
|
|
10769
11525
|
[k: string]: (string | string[]) | undefined
|
|
10770
11526
|
} | ({
|
|
10771
11527
|
|
|
10772
|
-
|
|
11528
|
+
newlinesInside?: ("always" | "never")
|
|
11529
|
+
|
|
11530
|
+
fallbackSort?: {
|
|
11531
|
+
|
|
11532
|
+
order?: ("asc" | "desc")
|
|
11533
|
+
|
|
11534
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11535
|
+
[k: string]: unknown | undefined
|
|
11536
|
+
}
|
|
10773
11537
|
|
|
10774
|
-
|
|
11538
|
+
groupName?: string
|
|
10775
11539
|
|
|
10776
|
-
order?: ("
|
|
11540
|
+
order?: ("asc" | "desc")
|
|
10777
11541
|
|
|
10778
|
-
|
|
11542
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10779
11543
|
anyOf?: {
|
|
10780
11544
|
|
|
10781
11545
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10782
11546
|
|
|
10783
11547
|
selector?: ("member" | "method" | "multiline" | "property")
|
|
10784
11548
|
|
|
10785
|
-
elementValuePattern?:
|
|
11549
|
+
elementValuePattern?: (({
|
|
11550
|
+
pattern?: string
|
|
11551
|
+
flags?: string
|
|
11552
|
+
} | string)[] | ({
|
|
11553
|
+
pattern?: string
|
|
11554
|
+
flags?: string
|
|
11555
|
+
} | string))
|
|
10786
11556
|
|
|
10787
|
-
elementNamePattern?:
|
|
11557
|
+
elementNamePattern?: (({
|
|
11558
|
+
pattern?: string
|
|
11559
|
+
flags?: string
|
|
11560
|
+
} | string)[] | ({
|
|
11561
|
+
pattern?: string
|
|
11562
|
+
flags?: string
|
|
11563
|
+
} | string))
|
|
10788
11564
|
}[]
|
|
10789
11565
|
} | {
|
|
10790
11566
|
|
|
10791
|
-
|
|
11567
|
+
newlinesInside?: ("always" | "never")
|
|
10792
11568
|
|
|
10793
|
-
|
|
11569
|
+
fallbackSort?: {
|
|
11570
|
+
|
|
11571
|
+
order?: ("asc" | "desc")
|
|
11572
|
+
|
|
11573
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11574
|
+
[k: string]: unknown | undefined
|
|
11575
|
+
}
|
|
10794
11576
|
|
|
10795
|
-
|
|
11577
|
+
groupName?: string
|
|
10796
11578
|
|
|
10797
|
-
|
|
11579
|
+
order?: ("asc" | "desc")
|
|
11580
|
+
|
|
11581
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10798
11582
|
|
|
10799
11583
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10800
11584
|
|
|
10801
11585
|
selector?: ("member" | "method" | "multiline" | "property")
|
|
10802
11586
|
|
|
10803
|
-
elementValuePattern?:
|
|
10804
|
-
|
|
10805
|
-
|
|
11587
|
+
elementValuePattern?: (({
|
|
11588
|
+
pattern?: string
|
|
11589
|
+
flags?: string
|
|
11590
|
+
} | string)[] | ({
|
|
11591
|
+
pattern?: string
|
|
11592
|
+
flags?: string
|
|
11593
|
+
} | string))
|
|
11594
|
+
|
|
11595
|
+
elementNamePattern?: (({
|
|
11596
|
+
pattern?: string
|
|
11597
|
+
flags?: string
|
|
11598
|
+
} | string)[] | ({
|
|
11599
|
+
pattern?: string
|
|
11600
|
+
flags?: string
|
|
11601
|
+
} | string))
|
|
10806
11602
|
})[])
|
|
11603
|
+
useConfigurationIf?: {
|
|
11604
|
+
|
|
11605
|
+
allNamesMatchPattern?: (({
|
|
11606
|
+
pattern?: string
|
|
11607
|
+
flags?: string
|
|
11608
|
+
} | string)[] | ({
|
|
11609
|
+
pattern?: string
|
|
11610
|
+
flags?: string
|
|
11611
|
+
} | string))
|
|
11612
|
+
|
|
11613
|
+
callingFunctionNamePattern?: (({
|
|
11614
|
+
pattern?: string
|
|
11615
|
+
flags?: string
|
|
11616
|
+
} | string)[] | ({
|
|
11617
|
+
pattern?: string
|
|
11618
|
+
flags?: string
|
|
11619
|
+
} | string))
|
|
11620
|
+
}
|
|
10807
11621
|
|
|
10808
11622
|
destructureOnly?: boolean
|
|
10809
11623
|
|
|
@@ -10811,27 +11625,57 @@ type PerfectionistSortObjects = {
|
|
|
10811
11625
|
|
|
10812
11626
|
styledComponents?: boolean
|
|
10813
11627
|
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
11628
|
+
partitionByComment?: (boolean | (({
|
|
11629
|
+
pattern?: string
|
|
11630
|
+
flags?: string
|
|
11631
|
+
} | string)[] | ({
|
|
11632
|
+
pattern?: string
|
|
11633
|
+
flags?: string
|
|
11634
|
+
} | string)) | {
|
|
11635
|
+
block?: (boolean | (({
|
|
11636
|
+
pattern?: string
|
|
11637
|
+
flags?: string
|
|
11638
|
+
} | string)[] | ({
|
|
11639
|
+
pattern?: string
|
|
11640
|
+
flags?: string
|
|
11641
|
+
} | string)))
|
|
11642
|
+
line?: (boolean | (({
|
|
11643
|
+
pattern?: string
|
|
11644
|
+
flags?: string
|
|
11645
|
+
} | string)[] | ({
|
|
11646
|
+
pattern?: string
|
|
11647
|
+
flags?: string
|
|
11648
|
+
} | string)))
|
|
10820
11649
|
})
|
|
10821
11650
|
|
|
10822
11651
|
partitionByNewLine?: boolean
|
|
10823
11652
|
|
|
10824
11653
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10825
11654
|
|
|
11655
|
+
ignorePattern?: (({
|
|
11656
|
+
pattern?: string
|
|
11657
|
+
flags?: string
|
|
11658
|
+
} | string)[] | ({
|
|
11659
|
+
pattern?: string
|
|
11660
|
+
flags?: string
|
|
11661
|
+
} | string))
|
|
11662
|
+
|
|
10826
11663
|
groups?: (string | string[] | {
|
|
10827
11664
|
|
|
10828
11665
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10829
|
-
[k: string]: unknown | undefined
|
|
10830
11666
|
})[]
|
|
10831
11667
|
}[]
|
|
10832
11668
|
// ----- perfectionist/sort-sets -----
|
|
10833
11669
|
type PerfectionistSortSets = {
|
|
10834
11670
|
|
|
11671
|
+
fallbackSort?: {
|
|
11672
|
+
|
|
11673
|
+
order?: ("asc" | "desc")
|
|
11674
|
+
|
|
11675
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11676
|
+
[k: string]: unknown | undefined
|
|
11677
|
+
}
|
|
11678
|
+
|
|
10835
11679
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10836
11680
|
|
|
10837
11681
|
ignoreCase?: boolean
|
|
@@ -10842,47 +11686,99 @@ type PerfectionistSortSets = {
|
|
|
10842
11686
|
|
|
10843
11687
|
order?: ("asc" | "desc")
|
|
10844
11688
|
|
|
11689
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11690
|
+
|
|
10845
11691
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10846
11692
|
|
|
10847
11693
|
customGroups?: ({
|
|
10848
11694
|
|
|
10849
|
-
|
|
11695
|
+
newlinesInside?: ("always" | "never")
|
|
10850
11696
|
|
|
10851
|
-
|
|
11697
|
+
fallbackSort?: {
|
|
11698
|
+
|
|
11699
|
+
order?: ("asc" | "desc")
|
|
11700
|
+
|
|
11701
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11702
|
+
[k: string]: unknown | undefined
|
|
11703
|
+
}
|
|
10852
11704
|
|
|
10853
|
-
|
|
11705
|
+
groupName?: string
|
|
10854
11706
|
|
|
10855
|
-
|
|
11707
|
+
order?: ("asc" | "desc")
|
|
11708
|
+
|
|
11709
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10856
11710
|
anyOf?: {
|
|
10857
11711
|
|
|
10858
11712
|
selector?: ("literal" | "spread")
|
|
10859
11713
|
|
|
10860
|
-
elementNamePattern?:
|
|
11714
|
+
elementNamePattern?: (({
|
|
11715
|
+
pattern?: string
|
|
11716
|
+
flags?: string
|
|
11717
|
+
} | string)[] | ({
|
|
11718
|
+
pattern?: string
|
|
11719
|
+
flags?: string
|
|
11720
|
+
} | string))
|
|
10861
11721
|
}[]
|
|
10862
11722
|
} | {
|
|
10863
11723
|
|
|
10864
|
-
|
|
11724
|
+
newlinesInside?: ("always" | "never")
|
|
10865
11725
|
|
|
10866
|
-
|
|
11726
|
+
fallbackSort?: {
|
|
11727
|
+
|
|
11728
|
+
order?: ("asc" | "desc")
|
|
11729
|
+
|
|
11730
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11731
|
+
[k: string]: unknown | undefined
|
|
11732
|
+
}
|
|
11733
|
+
|
|
11734
|
+
groupName?: string
|
|
10867
11735
|
|
|
10868
|
-
order?: ("
|
|
11736
|
+
order?: ("asc" | "desc")
|
|
10869
11737
|
|
|
10870
|
-
|
|
11738
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10871
11739
|
|
|
10872
11740
|
selector?: ("literal" | "spread")
|
|
10873
11741
|
|
|
10874
|
-
elementNamePattern?:
|
|
11742
|
+
elementNamePattern?: (({
|
|
11743
|
+
pattern?: string
|
|
11744
|
+
flags?: string
|
|
11745
|
+
} | string)[] | ({
|
|
11746
|
+
pattern?: string
|
|
11747
|
+
flags?: string
|
|
11748
|
+
} | string))
|
|
10875
11749
|
})[]
|
|
10876
11750
|
useConfigurationIf?: {
|
|
10877
|
-
|
|
11751
|
+
|
|
11752
|
+
allNamesMatchPattern?: (({
|
|
11753
|
+
pattern?: string
|
|
11754
|
+
flags?: string
|
|
11755
|
+
} | string)[] | ({
|
|
11756
|
+
pattern?: string
|
|
11757
|
+
flags?: string
|
|
11758
|
+
} | string))
|
|
10878
11759
|
}
|
|
10879
11760
|
|
|
10880
|
-
|
|
10881
|
-
|
|
10882
|
-
|
|
10883
|
-
|
|
10884
|
-
|
|
10885
|
-
|
|
11761
|
+
partitionByComment?: (boolean | (({
|
|
11762
|
+
pattern?: string
|
|
11763
|
+
flags?: string
|
|
11764
|
+
} | string)[] | ({
|
|
11765
|
+
pattern?: string
|
|
11766
|
+
flags?: string
|
|
11767
|
+
} | string)) | {
|
|
11768
|
+
block?: (boolean | (({
|
|
11769
|
+
pattern?: string
|
|
11770
|
+
flags?: string
|
|
11771
|
+
} | string)[] | ({
|
|
11772
|
+
pattern?: string
|
|
11773
|
+
flags?: string
|
|
11774
|
+
} | string)))
|
|
11775
|
+
line?: (boolean | (({
|
|
11776
|
+
pattern?: string
|
|
11777
|
+
flags?: string
|
|
11778
|
+
} | string)[] | ({
|
|
11779
|
+
pattern?: string
|
|
11780
|
+
flags?: string
|
|
11781
|
+
} | string)))
|
|
10886
11782
|
})
|
|
10887
11783
|
|
|
10888
11784
|
partitionByNewLine?: boolean
|
|
@@ -10892,12 +11788,19 @@ type PerfectionistSortSets = {
|
|
|
10892
11788
|
groups?: (string | string[] | {
|
|
10893
11789
|
|
|
10894
11790
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10895
|
-
[k: string]: unknown | undefined
|
|
10896
11791
|
})[]
|
|
10897
11792
|
}[]
|
|
10898
11793
|
// ----- perfectionist/sort-switch-case -----
|
|
10899
11794
|
type PerfectionistSortSwitchCase = []|[{
|
|
10900
11795
|
|
|
11796
|
+
fallbackSort?: {
|
|
11797
|
+
|
|
11798
|
+
order?: ("asc" | "desc")
|
|
11799
|
+
|
|
11800
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11801
|
+
[k: string]: unknown | undefined
|
|
11802
|
+
}
|
|
11803
|
+
|
|
10901
11804
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10902
11805
|
|
|
10903
11806
|
ignoreCase?: boolean
|
|
@@ -10908,11 +11811,19 @@ type PerfectionistSortSwitchCase = []|[{
|
|
|
10908
11811
|
|
|
10909
11812
|
order?: ("asc" | "desc")
|
|
10910
11813
|
|
|
10911
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
11814
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10912
11815
|
}]
|
|
10913
11816
|
// ----- perfectionist/sort-union-types -----
|
|
10914
11817
|
type PerfectionistSortUnionTypes = []|[{
|
|
10915
11818
|
|
|
11819
|
+
fallbackSort?: {
|
|
11820
|
+
|
|
11821
|
+
order?: ("asc" | "desc")
|
|
11822
|
+
|
|
11823
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11824
|
+
[k: string]: unknown | undefined
|
|
11825
|
+
}
|
|
11826
|
+
|
|
10916
11827
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10917
11828
|
|
|
10918
11829
|
ignoreCase?: boolean
|
|
@@ -10923,27 +11834,51 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
10923
11834
|
|
|
10924
11835
|
order?: ("asc" | "desc")
|
|
10925
11836
|
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
11837
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11838
|
+
|
|
11839
|
+
partitionByComment?: (boolean | (({
|
|
11840
|
+
pattern?: string
|
|
11841
|
+
flags?: string
|
|
11842
|
+
} | string)[] | ({
|
|
11843
|
+
pattern?: string
|
|
11844
|
+
flags?: string
|
|
11845
|
+
} | string)) | {
|
|
11846
|
+
block?: (boolean | (({
|
|
11847
|
+
pattern?: string
|
|
11848
|
+
flags?: string
|
|
11849
|
+
} | string)[] | ({
|
|
11850
|
+
pattern?: string
|
|
11851
|
+
flags?: string
|
|
11852
|
+
} | string)))
|
|
11853
|
+
line?: (boolean | (({
|
|
11854
|
+
pattern?: string
|
|
11855
|
+
flags?: string
|
|
11856
|
+
} | string)[] | ({
|
|
11857
|
+
pattern?: string
|
|
11858
|
+
flags?: string
|
|
11859
|
+
} | string)))
|
|
10930
11860
|
})
|
|
10931
11861
|
|
|
10932
11862
|
partitionByNewLine?: boolean
|
|
10933
11863
|
|
|
10934
11864
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10935
11865
|
|
|
10936
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10937
|
-
|
|
10938
11866
|
groups?: (string | string[] | {
|
|
10939
11867
|
|
|
10940
11868
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10941
|
-
[k: string]: unknown | undefined
|
|
10942
11869
|
})[]
|
|
10943
11870
|
}]
|
|
10944
11871
|
// ----- perfectionist/sort-variable-declarations -----
|
|
10945
11872
|
type PerfectionistSortVariableDeclarations = []|[{
|
|
10946
11873
|
|
|
11874
|
+
fallbackSort?: {
|
|
11875
|
+
|
|
11876
|
+
order?: ("asc" | "desc")
|
|
11877
|
+
|
|
11878
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11879
|
+
[k: string]: unknown | undefined
|
|
11880
|
+
}
|
|
11881
|
+
|
|
10947
11882
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10948
11883
|
|
|
10949
11884
|
ignoreCase?: boolean
|
|
@@ -10954,15 +11889,32 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
10954
11889
|
|
|
10955
11890
|
order?: ("asc" | "desc")
|
|
10956
11891
|
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
|
|
11892
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11893
|
+
|
|
11894
|
+
partitionByComment?: (boolean | (({
|
|
11895
|
+
pattern?: string
|
|
11896
|
+
flags?: string
|
|
11897
|
+
} | string)[] | ({
|
|
11898
|
+
pattern?: string
|
|
11899
|
+
flags?: string
|
|
11900
|
+
} | string)) | {
|
|
11901
|
+
block?: (boolean | (({
|
|
11902
|
+
pattern?: string
|
|
11903
|
+
flags?: string
|
|
11904
|
+
} | string)[] | ({
|
|
11905
|
+
pattern?: string
|
|
11906
|
+
flags?: string
|
|
11907
|
+
} | string)))
|
|
11908
|
+
line?: (boolean | (({
|
|
11909
|
+
pattern?: string
|
|
11910
|
+
flags?: string
|
|
11911
|
+
} | string)[] | ({
|
|
11912
|
+
pattern?: string
|
|
11913
|
+
flags?: string
|
|
11914
|
+
} | string)))
|
|
10961
11915
|
})
|
|
10962
11916
|
|
|
10963
11917
|
partitionByNewLine?: boolean
|
|
10964
|
-
|
|
10965
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10966
11918
|
}]
|
|
10967
11919
|
// ----- prefer-arrow-callback -----
|
|
10968
11920
|
type PreferArrowCallback = []|[{
|
|
@@ -11027,16 +11979,15 @@ type Quotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "b
|
|
|
11027
11979
|
})]
|
|
11028
11980
|
// ----- radix -----
|
|
11029
11981
|
type Radix = []|[("always" | "as-needed")]
|
|
11982
|
+
// ----- react-compiler/react-compiler -----
|
|
11983
|
+
type ReactCompilerReactCompiler = []|[{
|
|
11984
|
+
[k: string]: unknown | undefined
|
|
11985
|
+
}]
|
|
11030
11986
|
// ----- react-hooks/exhaustive-deps -----
|
|
11031
11987
|
type ReactHooksExhaustiveDeps = []|[{
|
|
11032
11988
|
additionalHooks?: string
|
|
11033
11989
|
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean
|
|
11034
11990
|
}]
|
|
11035
|
-
// ----- react-prefer-function-component/react-prefer-function-component -----
|
|
11036
|
-
type ReactPreferFunctionComponentReactPreferFunctionComponent = []|[{
|
|
11037
|
-
allowComponentDidCatch?: boolean
|
|
11038
|
-
allowJsxUtilityClass?: boolean
|
|
11039
|
-
}]
|
|
11040
11991
|
// ----- react-refresh/only-export-components -----
|
|
11041
11992
|
type ReactRefreshOnlyExportComponents = []|[{
|
|
11042
11993
|
allowExportNames?: string[]
|
|
@@ -11410,6 +12361,13 @@ type UnicornNoArrayPushPush = []|[{
|
|
|
11410
12361
|
type UnicornNoArrayReduce = []|[{
|
|
11411
12362
|
allowSimpleOperations?: boolean
|
|
11412
12363
|
}]
|
|
12364
|
+
// ----- unicorn/no-instanceof-builtins -----
|
|
12365
|
+
type UnicornNoInstanceofBuiltins = []|[{
|
|
12366
|
+
useErrorIsError?: boolean
|
|
12367
|
+
strategy?: ("loose" | "strict")
|
|
12368
|
+
include?: string[]
|
|
12369
|
+
exclude?: string[]
|
|
12370
|
+
}]
|
|
11413
12371
|
// ----- unicorn/no-keyword-prefix -----
|
|
11414
12372
|
type UnicornNoKeywordPrefix = []|[{
|
|
11415
12373
|
|
|
@@ -11614,4 +12572,4 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
11614
12572
|
onlyEquality?: boolean
|
|
11615
12573
|
}]
|
|
11616
12574
|
// 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'
|
|
12575
|
+
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'
|