@yunarch/config-web 0.5.7 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli/openapi-sync/openapi-sync-lint-msw-handlers.cli.js +2 -2
- package/dist/config.biome.json +1 -0
- package/dist/{eslint.config.d.ts → config.eslint.d.ts} +987 -288
- package/dist/config.eslint.js +1 -0
- package/dist/config.oxlint.json +1 -0
- package/dist/config.prettier.d.ts +5 -0
- package/dist/{prettier.config.js → config.prettier.js} +1 -1
- package/package.json +48 -48
- package/dist/biome.config.json +0 -1
- package/dist/eslint.config.js +0 -1
- package/dist/oxlint.config.json +0 -1
- /package/dist/{ts/tsconfig-base.json → config.tsconfig-base.json} +0 -0
|
@@ -8,21 +8,6 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
interface RuleOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Enforces explicit boolean values for boolean attributes.
|
|
13
|
-
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
|
|
14
|
-
*/
|
|
15
|
-
'@eslint-react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
16
|
-
/**
|
|
17
|
-
* Enforces explicit `<Fragment>` components instead of the shorthand `<>` or `</>` syntax.
|
|
18
|
-
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
|
|
19
|
-
*/
|
|
20
|
-
'@eslint-react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
21
|
-
/**
|
|
22
|
-
* Disallow `children` in void DOM elements.
|
|
23
|
-
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
24
|
-
*/
|
|
25
|
-
'@eslint-react/dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
|
|
26
11
|
/**
|
|
27
12
|
* Disallow `dangerouslySetInnerHTML`.
|
|
28
13
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
@@ -54,7 +39,7 @@ interface RuleOptions {
|
|
|
54
39
|
*/
|
|
55
40
|
'@eslint-react/dom/no-missing-button-type'?: Linter.RuleEntry<[]>
|
|
56
41
|
/**
|
|
57
|
-
* Enforces explicit `sandbox`
|
|
42
|
+
* Enforces explicit `sandbox` prop for `iframe` elements.
|
|
58
43
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
59
44
|
*/
|
|
60
45
|
'@eslint-react/dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
@@ -78,6 +63,11 @@ interface RuleOptions {
|
|
|
78
63
|
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
79
64
|
*/
|
|
80
65
|
'@eslint-react/dom/no-script-url'?: Linter.RuleEntry<[]>
|
|
66
|
+
/**
|
|
67
|
+
* Disallows the use of string style prop.
|
|
68
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-string-style-prop
|
|
69
|
+
*/
|
|
70
|
+
'@eslint-react/dom/no-string-style-prop'?: Linter.RuleEntry<[]>
|
|
81
71
|
/**
|
|
82
72
|
* Disallow unknown `DOM` property.
|
|
83
73
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
|
|
@@ -104,70 +94,30 @@ interface RuleOptions {
|
|
|
104
94
|
*/
|
|
105
95
|
'@eslint-react/dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
|
|
106
96
|
/**
|
|
107
|
-
*
|
|
108
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
109
|
-
*/
|
|
110
|
-
'@eslint-react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
111
|
-
/**
|
|
112
|
-
* Enforces that a function with the `use` prefix should use at least one Hook inside of it.
|
|
113
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
114
|
-
*/
|
|
115
|
-
'@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
|
|
116
|
-
/**
|
|
117
|
-
* Disallow unnecessary usage of `useCallback`.
|
|
118
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
|
|
119
|
-
*/
|
|
120
|
-
'@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
121
|
-
/**
|
|
122
|
-
* Disallow unnecessary usage of `useMemo`.
|
|
123
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
|
|
97
|
+
* Enforces React Dom is imported via a namespace import.
|
|
98
|
+
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
124
99
|
*/
|
|
125
|
-
'@eslint-react/
|
|
100
|
+
'@eslint-react/dom/prefer-namespace-import'?: Linter.RuleEntry<[]>
|
|
126
101
|
/**
|
|
127
102
|
* Disallow direct calls to the `set` function of `useState` in `useEffect`.
|
|
128
103
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
129
104
|
*/
|
|
130
105
|
'@eslint-react/hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
131
106
|
/**
|
|
132
|
-
*
|
|
133
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
134
|
-
*/
|
|
135
|
-
'@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
136
|
-
/**
|
|
137
|
-
* Enforces that a function with the `use` prefix should use at least one Hook inside of it.
|
|
138
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
139
|
-
*/
|
|
140
|
-
'@eslint-react/hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
|
|
141
|
-
/**
|
|
142
|
-
* Disallow unnecessary usage of `useCallback`.
|
|
143
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
|
|
144
|
-
*/
|
|
145
|
-
'@eslint-react/hooks-extra/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>
|
|
146
|
-
/**
|
|
147
|
-
* Disallow unnecessary usage of `useMemo`.
|
|
148
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
|
|
149
|
-
*/
|
|
150
|
-
'@eslint-react/hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
|
|
151
|
-
/**
|
|
152
|
-
* Enforces that a function with the `use` prefix should use at least one Hook inside of it.
|
|
153
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
154
|
-
*/
|
|
155
|
-
'@eslint-react/hooks-extra/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>
|
|
156
|
-
/**
|
|
157
|
-
* Enforces that a function with the `use` prefix should use at least one Hook inside of it.
|
|
158
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
|
|
107
|
+
* Prevents dollar signs from being inserted as text nodes before expressions.
|
|
108
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
159
109
|
*/
|
|
160
|
-
'@eslint-react/
|
|
110
|
+
'@eslint-react/jsx-dollar'?: Linter.RuleEntry<[]>
|
|
161
111
|
/**
|
|
162
|
-
* Enforces
|
|
163
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
164
|
-
*/
|
|
165
|
-
'@eslint-react/hooks-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
|
|
166
|
-
/**
|
|
167
|
-
* Enforces that the 'key' attribute is placed before the spread attribute in JSX elements.
|
|
112
|
+
* Enforces that the 'key' prop is placed before the spread prop in JSX elements.
|
|
168
113
|
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
169
114
|
*/
|
|
170
115
|
'@eslint-react/jsx-key-before-spread'?: Linter.RuleEntry<[]>
|
|
116
|
+
/**
|
|
117
|
+
* Prevents comments from being inserted as text nodes.
|
|
118
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
|
|
119
|
+
*/
|
|
120
|
+
'@eslint-react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>
|
|
171
121
|
/**
|
|
172
122
|
* Disallow duplicate props in JSX elements.
|
|
173
123
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
@@ -183,6 +133,16 @@ interface RuleOptions {
|
|
|
183
133
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
184
134
|
*/
|
|
185
135
|
'@eslint-react/jsx-no-undef'?: Linter.RuleEntry<[]>
|
|
136
|
+
/**
|
|
137
|
+
* Enforces shorthand syntax for boolean attributes.
|
|
138
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
139
|
+
*/
|
|
140
|
+
'@eslint-react/jsx-shorthand-boolean'?: Linter.RuleEntry<EslintReactJsxShorthandBoolean>
|
|
141
|
+
/**
|
|
142
|
+
* Enforces shorthand syntax for fragments.
|
|
143
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
144
|
+
*/
|
|
145
|
+
'@eslint-react/jsx-shorthand-fragment'?: Linter.RuleEntry<EslintReactJsxShorthandFragment>
|
|
186
146
|
/**
|
|
187
147
|
* Marks React variables as used when JSX is used.
|
|
188
148
|
* @see https://eslint-react.xyz/docs/rules/jsx-uses-react
|
|
@@ -268,21 +228,6 @@ interface RuleOptions {
|
|
|
268
228
|
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
269
229
|
*/
|
|
270
230
|
'@eslint-react/no-clone-element'?: Linter.RuleEntry<[]>
|
|
271
|
-
/**
|
|
272
|
-
* Prevents comments from being inserted as text nodes.
|
|
273
|
-
* @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
|
|
274
|
-
*/
|
|
275
|
-
'@eslint-react/no-comment-textnodes'?: Linter.RuleEntry<[]>
|
|
276
|
-
/**
|
|
277
|
-
* Disallow complex conditional rendering in JSX expressions.
|
|
278
|
-
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
279
|
-
*/
|
|
280
|
-
'@eslint-react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
281
|
-
/**
|
|
282
|
-
* Disallow complex conditional rendering in JSX expressions.
|
|
283
|
-
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
284
|
-
*/
|
|
285
|
-
'@eslint-react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
286
231
|
/**
|
|
287
232
|
* Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.
|
|
288
233
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
@@ -318,16 +263,16 @@ interface RuleOptions {
|
|
|
318
263
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
319
264
|
*/
|
|
320
265
|
'@eslint-react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
|
|
321
|
-
/**
|
|
322
|
-
* Disallow duplicate props in JSX elements.
|
|
323
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
324
|
-
*/
|
|
325
|
-
'@eslint-react/no-duplicate-jsx-props'?: Linter.RuleEntry<[]>
|
|
326
266
|
/**
|
|
327
267
|
* Disallow duplicate `key` on elements in the same array or a list of `children`.
|
|
328
268
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
329
269
|
*/
|
|
330
270
|
'@eslint-react/no-duplicate-key'?: Linter.RuleEntry<[]>
|
|
271
|
+
/**
|
|
272
|
+
* Disallow certain props on components.
|
|
273
|
+
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
274
|
+
*/
|
|
275
|
+
'@eslint-react/no-forbidden-props'?: Linter.RuleEntry<EslintReactNoForbiddenProps>
|
|
331
276
|
/**
|
|
332
277
|
* Replaces usages of `forwardRef` with passing `ref` as a prop.
|
|
333
278
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
@@ -368,14 +313,9 @@ interface RuleOptions {
|
|
|
368
313
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
369
314
|
*/
|
|
370
315
|
'@eslint-react/no-nested-component-definitions'?: Linter.RuleEntry<[]>
|
|
371
|
-
/**
|
|
372
|
-
* Disallow nesting component definitions inside other components.
|
|
373
|
-
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
374
|
-
*/
|
|
375
|
-
'@eslint-react/no-nested-components'?: Linter.RuleEntry<[]>
|
|
376
316
|
/**
|
|
377
317
|
* Disallow nesting lazy component declarations inside other components.
|
|
378
|
-
* @see https://eslint-react.xyz/docs/rules/no-nested-component-
|
|
318
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
379
319
|
*/
|
|
380
320
|
'@eslint-react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>
|
|
381
321
|
/**
|
|
@@ -399,7 +339,7 @@ interface RuleOptions {
|
|
|
399
339
|
*/
|
|
400
340
|
'@eslint-react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
|
401
341
|
/**
|
|
402
|
-
*
|
|
342
|
+
* Disallow calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.
|
|
403
343
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
404
344
|
*/
|
|
405
345
|
'@eslint-react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
|
|
@@ -408,6 +348,26 @@ interface RuleOptions {
|
|
|
408
348
|
* @see https://eslint-react.xyz/docs/rules/no-string-refs
|
|
409
349
|
*/
|
|
410
350
|
'@eslint-react/no-string-refs'?: Linter.RuleEntry<[]>
|
|
351
|
+
/**
|
|
352
|
+
* Prevents the use of unnecessary `key` props on JSX elements when rendering lists.
|
|
353
|
+
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
|
|
354
|
+
*/
|
|
355
|
+
'@eslint-react/no-unnecessary-key'?: Linter.RuleEntry<[]>
|
|
356
|
+
/**
|
|
357
|
+
* Disallow unnecessary usage of `useCallback`.
|
|
358
|
+
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
|
|
359
|
+
*/
|
|
360
|
+
'@eslint-react/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>
|
|
361
|
+
/**
|
|
362
|
+
* Disallow unnecessary usage of `useMemo`.
|
|
363
|
+
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-memo
|
|
364
|
+
*/
|
|
365
|
+
'@eslint-react/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
|
|
366
|
+
/**
|
|
367
|
+
* Enforces that a function with the `use` prefix should use at least one Hook inside of it.
|
|
368
|
+
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
|
|
369
|
+
*/
|
|
370
|
+
'@eslint-react/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>
|
|
411
371
|
/**
|
|
412
372
|
* Warns the usage of `UNSAFE_componentWillMount` in class components.
|
|
413
373
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
@@ -438,6 +398,11 @@ interface RuleOptions {
|
|
|
438
398
|
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
439
399
|
*/
|
|
440
400
|
'@eslint-react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
|
|
401
|
+
/**
|
|
402
|
+
* Warns component props that are defined but never used.
|
|
403
|
+
* @see https://eslint-react.xyz/docs/rules/no-unused-props
|
|
404
|
+
*/
|
|
405
|
+
'@eslint-react/no-unused-props'?: Linter.RuleEntry<[]>
|
|
441
406
|
/**
|
|
442
407
|
* Warns unused class component state.
|
|
443
408
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
@@ -465,29 +430,19 @@ interface RuleOptions {
|
|
|
465
430
|
'@eslint-react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
|
|
466
431
|
/**
|
|
467
432
|
* Enforces React is imported via a namespace import.
|
|
468
|
-
* @see https://eslint-react.xyz/docs/rules/prefer-
|
|
433
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-namespace-import
|
|
469
434
|
*/
|
|
470
|
-
'@eslint-react/prefer-
|
|
435
|
+
'@eslint-react/prefer-namespace-import'?: Linter.RuleEntry<[]>
|
|
471
436
|
/**
|
|
472
437
|
* Enforces read-only props in components.
|
|
473
438
|
* @see https://eslint-react.xyz/docs/rules/prefer-read-only-props
|
|
474
439
|
*/
|
|
475
440
|
'@eslint-react/prefer-read-only-props'?: Linter.RuleEntry<[]>
|
|
476
441
|
/**
|
|
477
|
-
* Enforces
|
|
478
|
-
* @see https://eslint-react.xyz/docs/rules/prefer-
|
|
479
|
-
*/
|
|
480
|
-
'@eslint-react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
481
|
-
/**
|
|
482
|
-
* Enforces shorthand syntax for fragments.
|
|
483
|
-
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
|
|
484
|
-
*/
|
|
485
|
-
'@eslint-react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
486
|
-
/**
|
|
487
|
-
* Marks variables used in JSX elements as used.
|
|
488
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
|
|
442
|
+
* Enforces function calls made inside `useState` to be wrapped in an `initializer function`.
|
|
443
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-use-state-lazy-initialization
|
|
489
444
|
*/
|
|
490
|
-
'@eslint-react/use-
|
|
445
|
+
'@eslint-react/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
|
|
491
446
|
/**
|
|
492
447
|
* Prevents leaked `addEventListener` in a component or custom Hook.
|
|
493
448
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
|
|
@@ -970,7 +925,7 @@ interface RuleOptions {
|
|
|
970
925
|
* Disallow member access on a value with type `any`
|
|
971
926
|
* @see https://typescript-eslint.io/rules/no-unsafe-member-access
|
|
972
927
|
*/
|
|
973
|
-
'@typescript-eslint/no-unsafe-member-access'?: Linter.RuleEntry<
|
|
928
|
+
'@typescript-eslint/no-unsafe-member-access'?: Linter.RuleEntry<TypescriptEslintNoUnsafeMemberAccess>
|
|
974
929
|
/**
|
|
975
930
|
* Disallow returning a value with type `any` from a function
|
|
976
931
|
* @see https://typescript-eslint.io/rules/no-unsafe-return
|
|
@@ -1739,9 +1694,9 @@ interface RuleOptions {
|
|
|
1739
1694
|
* Reports invalid alignment of JSDoc block asterisks.
|
|
1740
1695
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-alignment.md#repos-sticky-header
|
|
1741
1696
|
*/
|
|
1742
|
-
'jsdoc/check-alignment'?: Linter.RuleEntry<
|
|
1697
|
+
'jsdoc/check-alignment'?: Linter.RuleEntry<JsdocCheckAlignment>
|
|
1743
1698
|
/**
|
|
1744
|
-
*
|
|
1699
|
+
* @deprecated - Use `getJsdocProcessorPlugin` processor; ensures that (JavaScript) samples within `@example` tags adhere to ESLint rules.
|
|
1745
1700
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-examples.md#repos-sticky-header
|
|
1746
1701
|
*/
|
|
1747
1702
|
'jsdoc/check-examples'?: Linter.RuleEntry<JsdocCheckExamples>
|
|
@@ -1756,7 +1711,7 @@ interface RuleOptions {
|
|
|
1756
1711
|
*/
|
|
1757
1712
|
'jsdoc/check-line-alignment'?: Linter.RuleEntry<JsdocCheckLineAlignment>
|
|
1758
1713
|
/**
|
|
1759
|
-
*
|
|
1714
|
+
* Checks for dupe `@param` names, that nested param names have roots, and that parameter names in function declarations match JSDoc param names.
|
|
1760
1715
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-param-names.md#repos-sticky-header
|
|
1761
1716
|
*/
|
|
1762
1717
|
'jsdoc/check-param-names'?: Linter.RuleEntry<JsdocCheckParamNames>
|
|
@@ -1781,7 +1736,7 @@ interface RuleOptions {
|
|
|
1781
1736
|
*/
|
|
1782
1737
|
'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
|
|
1783
1738
|
/**
|
|
1784
|
-
* Reports invalid
|
|
1739
|
+
* Reports types deemed invalid (customizable and with defaults, for preventing and/or recommending replacements).
|
|
1785
1740
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-types.md#repos-sticky-header
|
|
1786
1741
|
*/
|
|
1787
1742
|
'jsdoc/check-types'?: Linter.RuleEntry<JsdocCheckTypes>
|
|
@@ -1796,12 +1751,17 @@ interface RuleOptions {
|
|
|
1796
1751
|
*/
|
|
1797
1752
|
'jsdoc/convert-to-jsdoc-comments'?: Linter.RuleEntry<JsdocConvertToJsdocComments>
|
|
1798
1753
|
/**
|
|
1799
|
-
*
|
|
1754
|
+
* Checks tags that are expected to be empty (e.g., `@abstract` or `@async`), reporting if they have content
|
|
1800
1755
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/empty-tags.md#repos-sticky-header
|
|
1801
1756
|
*/
|
|
1802
1757
|
'jsdoc/empty-tags'?: Linter.RuleEntry<JsdocEmptyTags>
|
|
1803
1758
|
/**
|
|
1804
|
-
* Reports
|
|
1759
|
+
* Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).
|
|
1760
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/escape-inline-tags.md#repos-sticky-header
|
|
1761
|
+
*/
|
|
1762
|
+
'jsdoc/escape-inline-tags'?: Linter.RuleEntry<JsdocEscapeInlineTags>
|
|
1763
|
+
/**
|
|
1764
|
+
* Prohibits use of `@implements` on non-constructor functions (to enforce the tag only being used on classes/constructors).
|
|
1805
1765
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/implements-on-classes.md#repos-sticky-header
|
|
1806
1766
|
*/
|
|
1807
1767
|
'jsdoc/implements-on-classes'?: Linter.RuleEntry<JsdocImplementsOnClasses>
|
|
@@ -1831,17 +1791,17 @@ interface RuleOptions {
|
|
|
1831
1791
|
*/
|
|
1832
1792
|
'jsdoc/match-name'?: Linter.RuleEntry<JsdocMatchName>
|
|
1833
1793
|
/**
|
|
1834
|
-
* Controls how and whether
|
|
1794
|
+
* Controls how and whether JSDoc blocks can be expressed as single or multiple line blocks.
|
|
1835
1795
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/multiline-blocks.md#repos-sticky-header
|
|
1836
1796
|
*/
|
|
1837
1797
|
'jsdoc/multiline-blocks'?: Linter.RuleEntry<JsdocMultilineBlocks>
|
|
1838
1798
|
/**
|
|
1839
|
-
* This rule checks for multi-line-style comments which fail to meet the criteria of a
|
|
1799
|
+
* This rule checks for multi-line-style comments which fail to meet the criteria of a JSDoc block.
|
|
1840
1800
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-bad-blocks.md#repos-sticky-header
|
|
1841
1801
|
*/
|
|
1842
1802
|
'jsdoc/no-bad-blocks'?: Linter.RuleEntry<JsdocNoBadBlocks>
|
|
1843
1803
|
/**
|
|
1844
|
-
*
|
|
1804
|
+
* If tags are present, this rule will prevent empty lines in the block description. If no tags are present, this rule will prevent extra empty lines in the block description.
|
|
1845
1805
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-blank-block-descriptions.md#repos-sticky-header
|
|
1846
1806
|
*/
|
|
1847
1807
|
'jsdoc/no-blank-block-descriptions'?: Linter.RuleEntry<[]>
|
|
@@ -1871,22 +1831,37 @@ interface RuleOptions {
|
|
|
1871
1831
|
*/
|
|
1872
1832
|
'jsdoc/no-restricted-syntax'?: Linter.RuleEntry<JsdocNoRestrictedSyntax>
|
|
1873
1833
|
/**
|
|
1874
|
-
* This rule reports types being used on `@param` or `@returns
|
|
1834
|
+
* This rule reports types being used on `@param` or `@returns` (redundant with TypeScript).
|
|
1875
1835
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-types.md#repos-sticky-header
|
|
1876
1836
|
*/
|
|
1877
1837
|
'jsdoc/no-types'?: Linter.RuleEntry<JsdocNoTypes>
|
|
1878
1838
|
/**
|
|
1879
|
-
*
|
|
1839
|
+
* Besides some expected built-in types, prohibits any types not specified as globals or within `@typedef`.
|
|
1880
1840
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
|
|
1881
1841
|
*/
|
|
1882
1842
|
'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>
|
|
1843
|
+
/**
|
|
1844
|
+
* Prefer `@import` tags to inline `import()` statements.
|
|
1845
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/prefer-import-tag.md#repos-sticky-header
|
|
1846
|
+
*/
|
|
1847
|
+
'jsdoc/prefer-import-tag'?: Linter.RuleEntry<JsdocPreferImportTag>
|
|
1848
|
+
/**
|
|
1849
|
+
* Reports use of `any` or `*` type
|
|
1850
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/reject-any-type.md#repos-sticky-header
|
|
1851
|
+
*/
|
|
1852
|
+
'jsdoc/reject-any-type'?: Linter.RuleEntry<[]>
|
|
1853
|
+
/**
|
|
1854
|
+
* Reports use of `Function` type
|
|
1855
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/reject-function-type.md#repos-sticky-header
|
|
1856
|
+
*/
|
|
1857
|
+
'jsdoc/reject-function-type'?: Linter.RuleEntry<[]>
|
|
1883
1858
|
/**
|
|
1884
1859
|
* Requires that each JSDoc line starts with an `*`.
|
|
1885
1860
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-asterisk-prefix.md#repos-sticky-header
|
|
1886
1861
|
*/
|
|
1887
1862
|
'jsdoc/require-asterisk-prefix'?: Linter.RuleEntry<JsdocRequireAsteriskPrefix>
|
|
1888
1863
|
/**
|
|
1889
|
-
* Requires that all functions have a description.
|
|
1864
|
+
* Requires that all functions (and potentially other contexts) have a description.
|
|
1890
1865
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-description.md#repos-sticky-header
|
|
1891
1866
|
*/
|
|
1892
1867
|
'jsdoc/require-description'?: Linter.RuleEntry<JsdocRequireDescription>
|
|
@@ -1896,7 +1871,7 @@ interface RuleOptions {
|
|
|
1896
1871
|
*/
|
|
1897
1872
|
'jsdoc/require-description-complete-sentence'?: Linter.RuleEntry<JsdocRequireDescriptionCompleteSentence>
|
|
1898
1873
|
/**
|
|
1899
|
-
* Requires that all functions have examples.
|
|
1874
|
+
* Requires that all functions (and potentially other contexts) have examples.
|
|
1900
1875
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-example.md#repos-sticky-header
|
|
1901
1876
|
*/
|
|
1902
1877
|
'jsdoc/require-example'?: Linter.RuleEntry<JsdocRequireExample>
|
|
@@ -1906,17 +1881,27 @@ interface RuleOptions {
|
|
|
1906
1881
|
*/
|
|
1907
1882
|
'jsdoc/require-file-overview'?: Linter.RuleEntry<JsdocRequireFileOverview>
|
|
1908
1883
|
/**
|
|
1909
|
-
* Requires a hyphen before the `@param` description.
|
|
1884
|
+
* Requires a hyphen before the `@param` description (and optionally before `@property` descriptions).
|
|
1910
1885
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-hyphen-before-param-description.md#repos-sticky-header
|
|
1911
1886
|
*/
|
|
1912
1887
|
'jsdoc/require-hyphen-before-param-description'?: Linter.RuleEntry<JsdocRequireHyphenBeforeParamDescription>
|
|
1913
1888
|
/**
|
|
1914
|
-
*
|
|
1889
|
+
* Checks for presence of JSDoc comments, on functions and potentially other contexts (optionally limited to exports).
|
|
1915
1890
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-jsdoc.md#repos-sticky-header
|
|
1916
1891
|
*/
|
|
1917
1892
|
'jsdoc/require-jsdoc'?: Linter.RuleEntry<JsdocRequireJsdoc>
|
|
1918
1893
|
/**
|
|
1919
|
-
* Requires
|
|
1894
|
+
* Requires a description for `@next` tags
|
|
1895
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-next-description.md#repos-sticky-header
|
|
1896
|
+
*/
|
|
1897
|
+
'jsdoc/require-next-description'?: Linter.RuleEntry<[]>
|
|
1898
|
+
/**
|
|
1899
|
+
* Requires a type for `@next` tags
|
|
1900
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-next-type.md#repos-sticky-header
|
|
1901
|
+
*/
|
|
1902
|
+
'jsdoc/require-next-type'?: Linter.RuleEntry<[]>
|
|
1903
|
+
/**
|
|
1904
|
+
* Requires that all function parameters are documented with a `@param` tag.
|
|
1920
1905
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param.md#repos-sticky-header
|
|
1921
1906
|
*/
|
|
1922
1907
|
'jsdoc/require-param'?: Linter.RuleEntry<JsdocRequireParam>
|
|
@@ -1926,12 +1911,12 @@ interface RuleOptions {
|
|
|
1926
1911
|
*/
|
|
1927
1912
|
'jsdoc/require-param-description'?: Linter.RuleEntry<JsdocRequireParamDescription>
|
|
1928
1913
|
/**
|
|
1929
|
-
* Requires that all
|
|
1914
|
+
* Requires that all `@param` tags have names.
|
|
1930
1915
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-name.md#repos-sticky-header
|
|
1931
1916
|
*/
|
|
1932
1917
|
'jsdoc/require-param-name'?: Linter.RuleEntry<JsdocRequireParamName>
|
|
1933
1918
|
/**
|
|
1934
|
-
* Requires that each `@param` tag has a
|
|
1919
|
+
* Requires that each `@param` tag has a type value (in curly brackets).
|
|
1935
1920
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-type.md#repos-sticky-header
|
|
1936
1921
|
*/
|
|
1937
1922
|
'jsdoc/require-param-type'?: Linter.RuleEntry<JsdocRequireParamType>
|
|
@@ -1946,62 +1931,92 @@ interface RuleOptions {
|
|
|
1946
1931
|
*/
|
|
1947
1932
|
'jsdoc/require-property-description'?: Linter.RuleEntry<[]>
|
|
1948
1933
|
/**
|
|
1949
|
-
* Requires that all
|
|
1934
|
+
* Requires that all `@property` tags have names.
|
|
1950
1935
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-name.md#repos-sticky-header
|
|
1951
1936
|
*/
|
|
1952
1937
|
'jsdoc/require-property-name'?: Linter.RuleEntry<[]>
|
|
1953
1938
|
/**
|
|
1954
|
-
* Requires that each `@property` tag has a
|
|
1939
|
+
* Requires that each `@property` tag has a type value (in curly brackets).
|
|
1955
1940
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
|
|
1956
1941
|
*/
|
|
1957
1942
|
'jsdoc/require-property-type'?: Linter.RuleEntry<[]>
|
|
1958
1943
|
/**
|
|
1959
|
-
* Requires that returns are documented
|
|
1944
|
+
* Requires that returns are documented with `@returns`.
|
|
1960
1945
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
1961
1946
|
*/
|
|
1962
1947
|
'jsdoc/require-returns'?: Linter.RuleEntry<JsdocRequireReturns>
|
|
1963
1948
|
/**
|
|
1964
|
-
* Requires a return statement in function body if a `@returns` tag is specified in
|
|
1949
|
+
* Requires a return statement in function body if a `@returns` tag is specified in JSDoc comment(and reports if multiple `@returns` tags are present).
|
|
1965
1950
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-check.md#repos-sticky-header
|
|
1966
1951
|
*/
|
|
1967
1952
|
'jsdoc/require-returns-check'?: Linter.RuleEntry<JsdocRequireReturnsCheck>
|
|
1968
1953
|
/**
|
|
1969
|
-
* Requires that the `@returns` tag has a `description` value.
|
|
1954
|
+
* Requires that the `@returns` tag has a `description` value (not including `void`/`undefined` type returns).
|
|
1970
1955
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-description.md#repos-sticky-header
|
|
1971
1956
|
*/
|
|
1972
1957
|
'jsdoc/require-returns-description'?: Linter.RuleEntry<JsdocRequireReturnsDescription>
|
|
1973
1958
|
/**
|
|
1974
|
-
* Requires that `@returns` tag has
|
|
1959
|
+
* Requires that `@returns` tag has type value (in curly brackets).
|
|
1975
1960
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-type.md#repos-sticky-header
|
|
1976
1961
|
*/
|
|
1977
1962
|
'jsdoc/require-returns-type'?: Linter.RuleEntry<JsdocRequireReturnsType>
|
|
1978
1963
|
/**
|
|
1979
|
-
* Requires
|
|
1964
|
+
* Requires tags be present, optionally for specific contexts
|
|
1965
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-tags.md#repos-sticky-header
|
|
1966
|
+
*/
|
|
1967
|
+
'jsdoc/require-tags'?: Linter.RuleEntry<JsdocRequireTags>
|
|
1968
|
+
/**
|
|
1969
|
+
* Requires `@template` tags be present when type parameters are used.
|
|
1980
1970
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
1981
1971
|
*/
|
|
1982
1972
|
'jsdoc/require-template'?: Linter.RuleEntry<JsdocRequireTemplate>
|
|
1983
1973
|
/**
|
|
1984
|
-
* Requires
|
|
1974
|
+
* Requires a description for `@template` tags
|
|
1975
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template-description.md#repos-sticky-header
|
|
1976
|
+
*/
|
|
1977
|
+
'jsdoc/require-template-description'?: Linter.RuleEntry<[]>
|
|
1978
|
+
/**
|
|
1979
|
+
* Requires that throw statements are documented with `@throws` tags.
|
|
1985
1980
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws.md#repos-sticky-header
|
|
1986
1981
|
*/
|
|
1987
1982
|
'jsdoc/require-throws'?: Linter.RuleEntry<JsdocRequireThrows>
|
|
1988
1983
|
/**
|
|
1989
|
-
* Requires
|
|
1984
|
+
* Requires a description for `@throws` tags
|
|
1985
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws-description.md#repos-sticky-header
|
|
1986
|
+
*/
|
|
1987
|
+
'jsdoc/require-throws-description'?: Linter.RuleEntry<[]>
|
|
1988
|
+
/**
|
|
1989
|
+
* Requires a type for `@throws` tags
|
|
1990
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws-type.md#repos-sticky-header
|
|
1991
|
+
*/
|
|
1992
|
+
'jsdoc/require-throws-type'?: Linter.RuleEntry<[]>
|
|
1993
|
+
/**
|
|
1994
|
+
* Requires yields are documented with `@yields` tags.
|
|
1990
1995
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields.md#repos-sticky-header
|
|
1991
1996
|
*/
|
|
1992
1997
|
'jsdoc/require-yields'?: Linter.RuleEntry<JsdocRequireYields>
|
|
1993
1998
|
/**
|
|
1994
|
-
*
|
|
1999
|
+
* Ensures that if a `@yields` is present that a `yield` (or `yield` with a value) is present in the function body (or that if a `@next` is present that there is a yield with a return value present).
|
|
1995
2000
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields-check.md#repos-sticky-header
|
|
1996
2001
|
*/
|
|
1997
2002
|
'jsdoc/require-yields-check'?: Linter.RuleEntry<JsdocRequireYieldsCheck>
|
|
1998
2003
|
/**
|
|
1999
|
-
*
|
|
2004
|
+
* Requires a description for `@yields` tags
|
|
2005
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields-description.md#repos-sticky-header
|
|
2006
|
+
*/
|
|
2007
|
+
'jsdoc/require-yields-description'?: Linter.RuleEntry<[]>
|
|
2008
|
+
/**
|
|
2009
|
+
* Requires a type for `@yields` tags
|
|
2010
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields-type.md#repos-sticky-header
|
|
2011
|
+
*/
|
|
2012
|
+
'jsdoc/require-yields-type'?: Linter.RuleEntry<[]>
|
|
2013
|
+
/**
|
|
2014
|
+
* Sorts tags by a specified sequence according to tag name, optionally adding line breaks between tag groups.
|
|
2000
2015
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/sort-tags.md#repos-sticky-header
|
|
2001
2016
|
*/
|
|
2002
2017
|
'jsdoc/sort-tags'?: Linter.RuleEntry<JsdocSortTags>
|
|
2003
2018
|
/**
|
|
2004
|
-
* Enforces lines (or no lines) between tags.
|
|
2019
|
+
* Enforces lines (or no lines) before, after, or between tags.
|
|
2005
2020
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/tag-lines.md#repos-sticky-header
|
|
2006
2021
|
*/
|
|
2007
2022
|
'jsdoc/tag-lines'?: Linter.RuleEntry<JsdocTagLines>
|
|
@@ -2011,7 +2026,32 @@ interface RuleOptions {
|
|
|
2011
2026
|
*/
|
|
2012
2027
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>
|
|
2013
2028
|
/**
|
|
2014
|
-
*
|
|
2029
|
+
* Prefers either function properties or method signatures
|
|
2030
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
|
|
2031
|
+
*/
|
|
2032
|
+
'jsdoc/ts-method-signature-style'?: Linter.RuleEntry<JsdocTsMethodSignatureStyle>
|
|
2033
|
+
/**
|
|
2034
|
+
* Warns against use of the empty object type
|
|
2035
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-empty-object-type.md#repos-sticky-header
|
|
2036
|
+
*/
|
|
2037
|
+
'jsdoc/ts-no-empty-object-type'?: Linter.RuleEntry<[]>
|
|
2038
|
+
/**
|
|
2039
|
+
* Catches unnecessary template expressions such as string expressions within a template literal.
|
|
2040
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-unnecessary-template-expression.md#repos-sticky-header
|
|
2041
|
+
*/
|
|
2042
|
+
'jsdoc/ts-no-unnecessary-template-expression'?: Linter.RuleEntry<JsdocTsNoUnnecessaryTemplateExpression>
|
|
2043
|
+
/**
|
|
2044
|
+
* Prefers function types over call signatures when there are no other properties.
|
|
2045
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-prefer-function-type.md#repos-sticky-header
|
|
2046
|
+
*/
|
|
2047
|
+
'jsdoc/ts-prefer-function-type'?: Linter.RuleEntry<JsdocTsPreferFunctionType>
|
|
2048
|
+
/**
|
|
2049
|
+
* Formats JSDoc type values.
|
|
2050
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/type-formatting.md#repos-sticky-header
|
|
2051
|
+
*/
|
|
2052
|
+
'jsdoc/type-formatting'?: Linter.RuleEntry<JsdocTypeFormatting>
|
|
2053
|
+
/**
|
|
2054
|
+
* Requires all types/namepaths to be valid JSDoc, Closure compiler, or TypeScript types (configurable in settings).
|
|
2015
2055
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/valid-types.md#repos-sticky-header
|
|
2016
2056
|
*/
|
|
2017
2057
|
'jsdoc/valid-types'?: Linter.RuleEntry<JsdocValidTypes>
|
|
@@ -3196,6 +3236,11 @@ interface RuleOptions {
|
|
|
3196
3236
|
* @see https://eslint.org/docs/latest/rules/prefer-template
|
|
3197
3237
|
*/
|
|
3198
3238
|
'prefer-template'?: Linter.RuleEntry<[]>
|
|
3239
|
+
/**
|
|
3240
|
+
* Disallow losing originally caught error when re-throwing custom errors
|
|
3241
|
+
* @see https://eslint.org/docs/latest/rules/preserve-caught-error
|
|
3242
|
+
*/
|
|
3243
|
+
'preserve-caught-error'?: Linter.RuleEntry<PreserveCaughtError>
|
|
3199
3244
|
/**
|
|
3200
3245
|
* Require quotes around object literal property names
|
|
3201
3246
|
* @see https://eslint.org/docs/latest/rules/quote-props
|
|
@@ -3213,16 +3258,124 @@ interface RuleOptions {
|
|
|
3213
3258
|
* @see https://eslint.org/docs/latest/rules/radix
|
|
3214
3259
|
*/
|
|
3215
3260
|
'radix'?: Linter.RuleEntry<Radix>
|
|
3261
|
+
/**
|
|
3262
|
+
* Verifies that automatic effect dependencies are compiled if opted-in
|
|
3263
|
+
*/
|
|
3264
|
+
'react-hooks/automatic-effect-dependencies'?: Linter.RuleEntry<ReactHooksAutomaticEffectDependencies>
|
|
3265
|
+
/**
|
|
3266
|
+
* Validates against calling capitalized functions/methods instead of using JSX
|
|
3267
|
+
*/
|
|
3268
|
+
'react-hooks/capitalized-calls'?: Linter.RuleEntry<ReactHooksCapitalizedCalls>
|
|
3269
|
+
/**
|
|
3270
|
+
* Validates against higher order functions defining nested components or hooks. Components and hooks should be defined at the module level
|
|
3271
|
+
*/
|
|
3272
|
+
'react-hooks/component-hook-factories'?: Linter.RuleEntry<ReactHooksComponentHookFactories>
|
|
3273
|
+
/**
|
|
3274
|
+
* Validates the compiler configuration options
|
|
3275
|
+
*/
|
|
3276
|
+
'react-hooks/config'?: Linter.RuleEntry<ReactHooksConfig>
|
|
3277
|
+
/**
|
|
3278
|
+
* Validates usage of error boundaries instead of try/catch for errors in child components
|
|
3279
|
+
*/
|
|
3280
|
+
'react-hooks/error-boundaries'?: Linter.RuleEntry<ReactHooksErrorBoundaries>
|
|
3216
3281
|
/**
|
|
3217
3282
|
* verifies the list of dependencies for Hooks like useEffect and similar
|
|
3218
3283
|
* @see https://github.com/facebook/react/issues/14920
|
|
3219
3284
|
*/
|
|
3220
3285
|
'react-hooks/exhaustive-deps'?: Linter.RuleEntry<ReactHooksExhaustiveDeps>
|
|
3286
|
+
/**
|
|
3287
|
+
* Validates usage of fbt
|
|
3288
|
+
*/
|
|
3289
|
+
'react-hooks/fbt'?: Linter.RuleEntry<ReactHooksFbt>
|
|
3290
|
+
/**
|
|
3291
|
+
* Validates usage of `fire`
|
|
3292
|
+
*/
|
|
3293
|
+
'react-hooks/fire'?: Linter.RuleEntry<ReactHooksFire>
|
|
3294
|
+
/**
|
|
3295
|
+
* Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)
|
|
3296
|
+
*/
|
|
3297
|
+
'react-hooks/gating'?: Linter.RuleEntry<ReactHooksGating>
|
|
3298
|
+
/**
|
|
3299
|
+
* Validates against assignment/mutation of globals during render, part of ensuring that [side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
|
|
3300
|
+
*/
|
|
3301
|
+
'react-hooks/globals'?: Linter.RuleEntry<ReactHooksGlobals>
|
|
3302
|
+
/**
|
|
3303
|
+
* Validates the rules of hooks
|
|
3304
|
+
*/
|
|
3305
|
+
'react-hooks/hooks'?: Linter.RuleEntry<ReactHooksHooks>
|
|
3306
|
+
/**
|
|
3307
|
+
* Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)
|
|
3308
|
+
*/
|
|
3309
|
+
'react-hooks/immutability'?: Linter.RuleEntry<ReactHooksImmutability>
|
|
3310
|
+
/**
|
|
3311
|
+
* Validates against usage of libraries which are incompatible with memoization (manual or automatic)
|
|
3312
|
+
*/
|
|
3313
|
+
'react-hooks/incompatible-library'?: Linter.RuleEntry<ReactHooksIncompatibleLibrary>
|
|
3314
|
+
/**
|
|
3315
|
+
* Internal invariants
|
|
3316
|
+
*/
|
|
3317
|
+
'react-hooks/invariant'?: Linter.RuleEntry<ReactHooksInvariant>
|
|
3318
|
+
/**
|
|
3319
|
+
* Validates that effect dependencies are memoized
|
|
3320
|
+
*/
|
|
3321
|
+
'react-hooks/memoized-effect-dependencies'?: Linter.RuleEntry<ReactHooksMemoizedEffectDependencies>
|
|
3322
|
+
/**
|
|
3323
|
+
* Validates against deriving values from state in an effect
|
|
3324
|
+
*/
|
|
3325
|
+
'react-hooks/no-deriving-state-in-effects'?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects>
|
|
3326
|
+
/**
|
|
3327
|
+
* Validates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference [matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)
|
|
3328
|
+
*/
|
|
3329
|
+
'react-hooks/preserve-manual-memoization'?: Linter.RuleEntry<ReactHooksPreserveManualMemoization>
|
|
3330
|
+
/**
|
|
3331
|
+
* Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions
|
|
3332
|
+
*/
|
|
3333
|
+
'react-hooks/purity'?: Linter.RuleEntry<ReactHooksPurity>
|
|
3334
|
+
/**
|
|
3335
|
+
* Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)
|
|
3336
|
+
*/
|
|
3337
|
+
'react-hooks/refs'?: Linter.RuleEntry<ReactHooksRefs>
|
|
3338
|
+
/**
|
|
3339
|
+
* Validates against suppression of other rules
|
|
3340
|
+
*/
|
|
3341
|
+
'react-hooks/rule-suppression'?: Linter.RuleEntry<ReactHooksRuleSuppression>
|
|
3221
3342
|
/**
|
|
3222
3343
|
* enforces the Rules of Hooks
|
|
3223
|
-
* @see https://
|
|
3344
|
+
* @see https://react.dev/reference/rules/rules-of-hooks
|
|
3345
|
+
*/
|
|
3346
|
+
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<ReactHooksRulesOfHooks>
|
|
3347
|
+
/**
|
|
3348
|
+
* Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance
|
|
3349
|
+
*/
|
|
3350
|
+
'react-hooks/set-state-in-effect'?: Linter.RuleEntry<ReactHooksSetStateInEffect>
|
|
3351
|
+
/**
|
|
3352
|
+
* Validates against setting state during render, which can trigger additional renders and potential infinite render loops
|
|
3353
|
+
*/
|
|
3354
|
+
'react-hooks/set-state-in-render'?: Linter.RuleEntry<ReactHooksSetStateInRender>
|
|
3355
|
+
/**
|
|
3356
|
+
* Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
|
|
3357
|
+
*/
|
|
3358
|
+
'react-hooks/static-components'?: Linter.RuleEntry<ReactHooksStaticComponents>
|
|
3359
|
+
/**
|
|
3360
|
+
* Validates against invalid syntax
|
|
3361
|
+
*/
|
|
3362
|
+
'react-hooks/syntax'?: Linter.RuleEntry<ReactHooksSyntax>
|
|
3363
|
+
/**
|
|
3364
|
+
* Unimplemented features
|
|
3365
|
+
*/
|
|
3366
|
+
'react-hooks/todo'?: Linter.RuleEntry<ReactHooksTodo>
|
|
3367
|
+
/**
|
|
3368
|
+
* Validates against syntax that we do not plan to support in React Compiler
|
|
3369
|
+
*/
|
|
3370
|
+
'react-hooks/unsupported-syntax'?: Linter.RuleEntry<ReactHooksUnsupportedSyntax>
|
|
3371
|
+
/**
|
|
3372
|
+
* Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
3224
3373
|
*/
|
|
3225
|
-
'react-hooks/
|
|
3374
|
+
'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>
|
|
3375
|
+
/**
|
|
3376
|
+
* Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
3377
|
+
*/
|
|
3378
|
+
'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>
|
|
3226
3379
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
3227
3380
|
/**
|
|
3228
3381
|
* Disallow assignments that can lead to race conditions due to usage of `await` or `yield`
|
|
@@ -3354,690 +3507,725 @@ interface RuleOptions {
|
|
|
3354
3507
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
3355
3508
|
/**
|
|
3356
3509
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
3357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3510
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
3358
3511
|
*/
|
|
3359
3512
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
3360
3513
|
/**
|
|
3361
3514
|
* Enforce a specific parameter name in catch clauses.
|
|
3362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
3363
3516
|
*/
|
|
3364
3517
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
3365
3518
|
/**
|
|
3366
3519
|
* Enforce consistent assertion style with `node:assert`.
|
|
3367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3520
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
3368
3521
|
*/
|
|
3369
3522
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
3370
3523
|
/**
|
|
3371
3524
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
3372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3525
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
3373
3526
|
*/
|
|
3374
3527
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
3375
3528
|
/**
|
|
3376
3529
|
* Use destructured variables over properties.
|
|
3377
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
3378
3531
|
*/
|
|
3379
3532
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
3380
3533
|
/**
|
|
3381
3534
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
3382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3535
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
3383
3536
|
*/
|
|
3384
3537
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
3385
3538
|
/**
|
|
3386
3539
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
3387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
3388
3541
|
*/
|
|
3389
3542
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
3390
3543
|
/**
|
|
3391
3544
|
* Move function definitions to the highest possible scope.
|
|
3392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
3393
3546
|
*/
|
|
3394
3547
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
3395
3548
|
/**
|
|
3396
3549
|
* Enforce correct `Error` subclassing.
|
|
3397
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3550
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
3398
3551
|
*/
|
|
3399
3552
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
3400
3553
|
/**
|
|
3401
3554
|
* Enforce no spaces between braces.
|
|
3402
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
3403
3556
|
*/
|
|
3404
3557
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
3405
3558
|
/**
|
|
3406
3559
|
* Enforce passing a `message` value when creating a built-in error.
|
|
3407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
3408
3561
|
*/
|
|
3409
3562
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
3410
3563
|
/**
|
|
3411
3564
|
* Require escape sequences to use uppercase or lowercase values.
|
|
3412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
3413
3566
|
*/
|
|
3414
3567
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
|
|
3415
3568
|
/**
|
|
3416
3569
|
* Add expiration conditions to TODO comments.
|
|
3417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
3418
3571
|
*/
|
|
3419
3572
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
3420
3573
|
/**
|
|
3421
3574
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
3422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
3423
3576
|
*/
|
|
3424
3577
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
3425
3578
|
/**
|
|
3426
3579
|
* Enforce a case style for filenames.
|
|
3427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
3428
3581
|
*/
|
|
3429
3582
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
3430
3583
|
/**
|
|
3431
3584
|
* Enforce specific import styles per module.
|
|
3432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3585
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
3433
3586
|
*/
|
|
3434
3587
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
3435
3588
|
/**
|
|
3436
3589
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
3437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
3438
3591
|
*/
|
|
3439
3592
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
3440
3593
|
/**
|
|
3441
3594
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
3442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3595
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
3443
3596
|
*/
|
|
3444
3597
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
3445
3598
|
/**
|
|
3446
3599
|
* Disallow recursive access to `this` within getters and setters.
|
|
3447
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
3448
3601
|
*/
|
|
3449
3602
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
3450
3603
|
/**
|
|
3451
3604
|
* Disallow anonymous functions and classes as the default export.
|
|
3452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
3453
3606
|
*/
|
|
3454
3607
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
3455
3608
|
/**
|
|
3456
3609
|
* Prevent passing a function reference directly to iterator methods.
|
|
3457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
3458
3611
|
*/
|
|
3459
3612
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
3460
3613
|
/**
|
|
3461
3614
|
* Prefer `for…of` over the `forEach` method.
|
|
3462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
3463
3616
|
*/
|
|
3464
3617
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
3465
3618
|
/**
|
|
3466
3619
|
* Disallow using the `this` argument in array methods.
|
|
3467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3620
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
3468
3621
|
*/
|
|
3469
3622
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
3470
3623
|
/**
|
|
3471
3624
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
3472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3625
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
3473
3626
|
* @deprecated
|
|
3474
3627
|
*/
|
|
3475
3628
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
|
|
3476
3629
|
/**
|
|
3477
3630
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
3478
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
3479
3632
|
*/
|
|
3480
3633
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
3481
3634
|
/**
|
|
3482
3635
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
3483
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
3484
3637
|
*/
|
|
3485
3638
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
|
|
3639
|
+
/**
|
|
3640
|
+
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
3641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
3642
|
+
*/
|
|
3643
|
+
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
|
|
3486
3644
|
/**
|
|
3487
3645
|
* Disallow member access from await expression.
|
|
3488
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
3489
3647
|
*/
|
|
3490
3648
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
3491
3649
|
/**
|
|
3492
3650
|
* Disallow using `await` in `Promise` method parameters.
|
|
3493
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
3494
3652
|
*/
|
|
3495
3653
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
3496
3654
|
/**
|
|
3497
3655
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
3498
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
3499
3657
|
*/
|
|
3500
3658
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
3501
3659
|
/**
|
|
3502
3660
|
* Do not use `document.cookie` directly.
|
|
3503
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
3504
3662
|
*/
|
|
3505
3663
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
3506
3664
|
/**
|
|
3507
3665
|
* Disallow empty files.
|
|
3508
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
3509
3667
|
*/
|
|
3510
3668
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
3511
3669
|
/**
|
|
3512
3670
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
3513
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
3514
3672
|
*/
|
|
3515
3673
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
3516
3674
|
/**
|
|
3517
3675
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
3518
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
3519
3677
|
*/
|
|
3520
3678
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
3679
|
+
/**
|
|
3680
|
+
* Disallow immediate mutation after variable assignment.
|
|
3681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
3682
|
+
*/
|
|
3683
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
|
|
3521
3684
|
/**
|
|
3522
3685
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
3523
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3686
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
3524
3687
|
* @deprecated
|
|
3525
3688
|
*/
|
|
3526
3689
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
3527
3690
|
/**
|
|
3528
3691
|
* Disallow `instanceof` with built-in objects
|
|
3529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3692
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
3530
3693
|
*/
|
|
3531
3694
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
3532
3695
|
/**
|
|
3533
3696
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
3534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
3535
3698
|
*/
|
|
3536
3699
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
3537
3700
|
/**
|
|
3538
3701
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
3539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
3540
3703
|
*/
|
|
3541
3704
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
3542
3705
|
/**
|
|
3543
3706
|
* Disallow identifiers starting with `new` or `class`.
|
|
3544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3707
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
3545
3708
|
*/
|
|
3546
3709
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
3547
3710
|
/**
|
|
3548
3711
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
3549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3712
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
3550
3713
|
* @deprecated
|
|
3551
3714
|
*/
|
|
3552
3715
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
3553
3716
|
/**
|
|
3554
3717
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
3555
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3718
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
3556
3719
|
*/
|
|
3557
3720
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
3558
3721
|
/**
|
|
3559
3722
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
3560
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3723
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
3561
3724
|
*/
|
|
3562
3725
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
3563
3726
|
/**
|
|
3564
3727
|
* Disallow named usage of default import and export.
|
|
3565
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3728
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
3566
3729
|
*/
|
|
3567
3730
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
3568
3731
|
/**
|
|
3569
3732
|
* Disallow negated conditions.
|
|
3570
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3733
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
3571
3734
|
*/
|
|
3572
3735
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
3573
3736
|
/**
|
|
3574
3737
|
* Disallow negated expression in equality check.
|
|
3575
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3738
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
3576
3739
|
*/
|
|
3577
3740
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
3578
3741
|
/**
|
|
3579
3742
|
* Disallow nested ternary expressions.
|
|
3580
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
3581
3744
|
*/
|
|
3582
3745
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
3583
3746
|
/**
|
|
3584
3747
|
* Disallow `new Array()`.
|
|
3585
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
3586
3749
|
*/
|
|
3587
3750
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
3588
3751
|
/**
|
|
3589
3752
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
3590
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
3591
3754
|
*/
|
|
3592
3755
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
3593
3756
|
/**
|
|
3594
3757
|
* Disallow the use of the `null` literal.
|
|
3595
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3758
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
3596
3759
|
*/
|
|
3597
3760
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
3598
3761
|
/**
|
|
3599
3762
|
* Disallow the use of objects as default parameters.
|
|
3600
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
3601
3764
|
*/
|
|
3602
3765
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
3603
3766
|
/**
|
|
3604
3767
|
* Disallow `process.exit()`.
|
|
3605
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
3606
3769
|
*/
|
|
3607
3770
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
3608
3771
|
/**
|
|
3609
3772
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
3610
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
3611
3774
|
*/
|
|
3612
3775
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
3613
3776
|
/**
|
|
3614
3777
|
* Disallow classes that only have static members.
|
|
3615
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3778
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
3616
3779
|
*/
|
|
3617
3780
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
3618
3781
|
/**
|
|
3619
3782
|
* Disallow `then` property.
|
|
3620
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3783
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
3621
3784
|
*/
|
|
3622
3785
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
3623
3786
|
/**
|
|
3624
3787
|
* Disallow assigning `this` to a variable.
|
|
3625
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3788
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
3626
3789
|
*/
|
|
3627
3790
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
3628
3791
|
/**
|
|
3629
3792
|
* Disallow comparing `undefined` using `typeof`.
|
|
3630
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3793
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
3631
3794
|
*/
|
|
3632
3795
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
3633
3796
|
/**
|
|
3634
3797
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
3635
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3798
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
3636
3799
|
*/
|
|
3637
3800
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
3638
3801
|
/**
|
|
3639
3802
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
3640
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3803
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
3641
3804
|
*/
|
|
3642
3805
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
|
|
3643
3806
|
/**
|
|
3644
3807
|
* Disallow awaiting non-promise values.
|
|
3645
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3808
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
3646
3809
|
*/
|
|
3647
3810
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
3648
3811
|
/**
|
|
3649
3812
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
3650
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3813
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
3651
3814
|
*/
|
|
3652
3815
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
3653
3816
|
/**
|
|
3654
3817
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
3655
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
3656
3819
|
*/
|
|
3657
3820
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
|
|
3658
3821
|
/**
|
|
3659
3822
|
* Disallow unreadable array destructuring.
|
|
3660
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3823
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
3661
3824
|
*/
|
|
3662
3825
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
3663
3826
|
/**
|
|
3664
3827
|
* Disallow unreadable IIFEs.
|
|
3665
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
3666
3829
|
*/
|
|
3667
3830
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
3668
3831
|
/**
|
|
3669
3832
|
* Disallow unused object properties.
|
|
3670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
3671
3834
|
*/
|
|
3672
3835
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
3836
|
+
/**
|
|
3837
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
3838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
3839
|
+
*/
|
|
3840
|
+
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
|
|
3673
3841
|
/**
|
|
3674
3842
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
3675
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
3676
3844
|
*/
|
|
3677
3845
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
|
|
3678
3846
|
/**
|
|
3679
3847
|
* Disallow useless fallback when spreading in object literals.
|
|
3680
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
3681
3849
|
*/
|
|
3682
3850
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
3683
3851
|
/**
|
|
3684
3852
|
* Disallow useless array length check.
|
|
3685
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
3686
3854
|
*/
|
|
3687
3855
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
3688
3856
|
/**
|
|
3689
3857
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
3690
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
3691
3859
|
*/
|
|
3692
3860
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
3693
3861
|
/**
|
|
3694
3862
|
* Disallow unnecessary spread.
|
|
3695
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
3696
3864
|
*/
|
|
3697
3865
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
3698
3866
|
/**
|
|
3699
3867
|
* Disallow useless case in switch statements.
|
|
3700
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3868
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
3701
3869
|
*/
|
|
3702
3870
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
3703
3871
|
/**
|
|
3704
3872
|
* Disallow useless `undefined`.
|
|
3705
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3873
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
3706
3874
|
*/
|
|
3707
3875
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
3708
3876
|
/**
|
|
3709
3877
|
* Disallow number literals with zero fractions or dangling dots.
|
|
3710
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
3711
3879
|
*/
|
|
3712
3880
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
3713
3881
|
/**
|
|
3714
3882
|
* Enforce proper case for numeric literals.
|
|
3715
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3883
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
3716
3884
|
*/
|
|
3717
3885
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
|
|
3718
3886
|
/**
|
|
3719
3887
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
3720
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
3721
3889
|
*/
|
|
3722
3890
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
3723
3891
|
/**
|
|
3724
3892
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
3725
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3893
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
3726
3894
|
*/
|
|
3727
3895
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
3728
3896
|
/**
|
|
3729
3897
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
3730
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3898
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
3731
3899
|
*/
|
|
3732
3900
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
3733
3901
|
/**
|
|
3734
3902
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
3735
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3903
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
3736
3904
|
*/
|
|
3737
3905
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
3738
3906
|
/**
|
|
3739
3907
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
3740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3908
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
3741
3909
|
*/
|
|
3742
3910
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
3743
3911
|
/**
|
|
3744
3912
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
3745
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3913
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
3746
3914
|
*/
|
|
3747
3915
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
3748
3916
|
/**
|
|
3749
3917
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
3750
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3918
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
3751
3919
|
*/
|
|
3752
3920
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
3753
3921
|
/**
|
|
3754
3922
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
3755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3923
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
3756
3924
|
*/
|
|
3757
3925
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
3926
|
+
/**
|
|
3927
|
+
* Prefer `BigInt` literals over the constructor.
|
|
3928
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
3929
|
+
*/
|
|
3930
|
+
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
|
|
3758
3931
|
/**
|
|
3759
3932
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
3760
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3933
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
3761
3934
|
*/
|
|
3762
3935
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
3763
3936
|
/**
|
|
3764
3937
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
3765
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3938
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
3766
3939
|
*/
|
|
3767
3940
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
|
|
3941
|
+
/**
|
|
3942
|
+
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
3943
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
3944
|
+
*/
|
|
3945
|
+
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
|
|
3768
3946
|
/**
|
|
3769
3947
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
3770
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3948
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
3771
3949
|
*/
|
|
3772
3950
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
3773
3951
|
/**
|
|
3774
3952
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
3775
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3953
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
3776
3954
|
*/
|
|
3777
3955
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
3778
3956
|
/**
|
|
3779
3957
|
* Prefer default parameters over reassignment.
|
|
3780
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3958
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
3781
3959
|
*/
|
|
3782
3960
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
3783
3961
|
/**
|
|
3784
3962
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
3785
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3963
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
3786
3964
|
*/
|
|
3787
3965
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
3788
3966
|
/**
|
|
3789
3967
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
3790
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3968
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
3791
3969
|
*/
|
|
3792
3970
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
3793
3971
|
/**
|
|
3794
3972
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
3795
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3973
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
3796
3974
|
*/
|
|
3797
3975
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
3798
3976
|
/**
|
|
3799
3977
|
* Prefer `.textContent` over `.innerText`.
|
|
3800
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3978
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
3801
3979
|
*/
|
|
3802
3980
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
3803
3981
|
/**
|
|
3804
3982
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
3805
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3983
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
3806
3984
|
*/
|
|
3807
3985
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
3808
3986
|
/**
|
|
3809
3987
|
* Prefer `export…from` when re-exporting.
|
|
3810
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3988
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
3811
3989
|
*/
|
|
3812
3990
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
3813
3991
|
/**
|
|
3814
3992
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
3815
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3993
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
3816
3994
|
*/
|
|
3817
3995
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
3818
3996
|
/**
|
|
3819
3997
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
3820
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3998
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
3821
3999
|
*/
|
|
3822
4000
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
|
|
3823
4001
|
/**
|
|
3824
4002
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
3825
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4003
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
3826
4004
|
*/
|
|
3827
4005
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
3828
4006
|
/**
|
|
3829
4007
|
* Prefer reading a JSON file as a buffer.
|
|
3830
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4008
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
3831
4009
|
*/
|
|
3832
4010
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
3833
4011
|
/**
|
|
3834
4012
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
3835
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4013
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
3836
4014
|
*/
|
|
3837
4015
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
3838
4016
|
/**
|
|
3839
4017
|
* Prefer using a logical operator over a ternary.
|
|
3840
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4018
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
3841
4019
|
*/
|
|
3842
4020
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
3843
4021
|
/**
|
|
3844
4022
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
3845
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4023
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
3846
4024
|
*/
|
|
3847
4025
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
3848
4026
|
/**
|
|
3849
4027
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
3850
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4028
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
3851
4029
|
*/
|
|
3852
4030
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
3853
4031
|
/**
|
|
3854
4032
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
3855
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4033
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
3856
4034
|
*/
|
|
3857
4035
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
3858
4036
|
/**
|
|
3859
4037
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
3860
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4038
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
3861
4039
|
*/
|
|
3862
4040
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
3863
4041
|
/**
|
|
3864
4042
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
3865
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4043
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
3866
4044
|
*/
|
|
3867
4045
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
3868
4046
|
/**
|
|
3869
4047
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
3870
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
3871
4049
|
*/
|
|
3872
4050
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
3873
4051
|
/**
|
|
3874
4052
|
* Prefer negative index over `.length - index` when possible.
|
|
3875
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
3876
4054
|
*/
|
|
3877
4055
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
3878
4056
|
/**
|
|
3879
4057
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
3880
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
3881
4059
|
*/
|
|
3882
4060
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
3883
4061
|
/**
|
|
3884
4062
|
* Prefer `Number` static properties over global ones.
|
|
3885
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
3886
4064
|
*/
|
|
3887
4065
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
3888
4066
|
/**
|
|
3889
4067
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
3890
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
3891
4069
|
*/
|
|
3892
4070
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
3893
4071
|
/**
|
|
3894
4072
|
* Prefer omitting the `catch` binding parameter.
|
|
3895
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
3896
4074
|
*/
|
|
3897
4075
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
3898
4076
|
/**
|
|
3899
4077
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
3900
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
3901
4079
|
*/
|
|
3902
4080
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
3903
4081
|
/**
|
|
3904
4082
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
3905
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
3906
4084
|
*/
|
|
3907
4085
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
3908
4086
|
/**
|
|
3909
4087
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
3910
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
3911
4089
|
*/
|
|
3912
4090
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
3913
4091
|
/**
|
|
3914
4092
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
3915
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
3916
4094
|
*/
|
|
3917
4095
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
4096
|
+
/**
|
|
4097
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
4098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
4099
|
+
*/
|
|
4100
|
+
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
|
|
3918
4101
|
/**
|
|
3919
4102
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
3920
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
3921
4104
|
*/
|
|
3922
4105
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
3923
4106
|
/**
|
|
3924
4107
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
3925
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
3926
4109
|
*/
|
|
3927
4110
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
3928
4111
|
/**
|
|
3929
4112
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
3930
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
3931
4114
|
*/
|
|
3932
4115
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
|
|
3933
4116
|
/**
|
|
3934
4117
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
3935
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
3936
4119
|
*/
|
|
3937
4120
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
3938
4121
|
/**
|
|
3939
4122
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
3940
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
3941
4124
|
*/
|
|
3942
4125
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
3943
4126
|
/**
|
|
3944
4127
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
3945
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
3946
4129
|
*/
|
|
3947
4130
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
3948
4131
|
/**
|
|
3949
4132
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
3950
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
3951
4134
|
*/
|
|
3952
4135
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
3953
4136
|
/**
|
|
3954
4137
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
3955
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
3956
4139
|
*/
|
|
3957
4140
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
3958
4141
|
/**
|
|
3959
4142
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
3960
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4143
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
3961
4144
|
*/
|
|
3962
4145
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
3963
4146
|
/**
|
|
3964
4147
|
* Prefer using `structuredClone` to create a deep clone.
|
|
3965
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
3966
4149
|
*/
|
|
3967
4150
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
3968
4151
|
/**
|
|
3969
4152
|
* Prefer `switch` over multiple `else-if`.
|
|
3970
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
3971
4154
|
*/
|
|
3972
4155
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
3973
4156
|
/**
|
|
3974
4157
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
3975
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
3976
4159
|
*/
|
|
3977
4160
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
3978
4161
|
/**
|
|
3979
4162
|
* Prefer top-level await over top-level promises and async function calls.
|
|
3980
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
3981
4164
|
*/
|
|
3982
4165
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
3983
4166
|
/**
|
|
3984
4167
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
3985
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
3986
4169
|
*/
|
|
3987
4170
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
3988
4171
|
/**
|
|
3989
4172
|
* Prevent abbreviations.
|
|
3990
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
3991
4174
|
*/
|
|
3992
4175
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
3993
4176
|
/**
|
|
3994
4177
|
* Enforce consistent relative URL style.
|
|
3995
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
3996
4179
|
*/
|
|
3997
4180
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
3998
4181
|
/**
|
|
3999
4182
|
* Enforce using the separator argument with `Array#join()`.
|
|
4000
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
4001
4184
|
*/
|
|
4002
4185
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
4186
|
+
/**
|
|
4187
|
+
* Require non-empty module attributes for imports and exports
|
|
4188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
4189
|
+
*/
|
|
4190
|
+
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
|
|
4003
4191
|
/**
|
|
4004
4192
|
* Require non-empty specifier list in import and export statements.
|
|
4005
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
4006
4194
|
*/
|
|
4007
4195
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
|
|
4008
4196
|
/**
|
|
4009
4197
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
4010
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
4011
4199
|
*/
|
|
4012
4200
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
4013
4201
|
/**
|
|
4014
4202
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
4015
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
4016
4204
|
*/
|
|
4017
4205
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
4018
4206
|
/**
|
|
4019
4207
|
* Enforce better string content.
|
|
4020
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
4021
4209
|
*/
|
|
4022
4210
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
4023
4211
|
/**
|
|
4024
4212
|
* Enforce consistent brace style for `case` clauses.
|
|
4025
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
4026
4214
|
*/
|
|
4027
4215
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
4028
4216
|
/**
|
|
4029
4217
|
* Fix whitespace-insensitive template indentation.
|
|
4030
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
4031
4219
|
*/
|
|
4032
4220
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
4033
4221
|
/**
|
|
4034
4222
|
* Enforce consistent case for text encoding identifiers.
|
|
4035
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
4036
4224
|
*/
|
|
4037
|
-
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<
|
|
4225
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
|
|
4038
4226
|
/**
|
|
4039
4227
|
* Require `new` when creating an error.
|
|
4040
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
4041
4229
|
*/
|
|
4042
4230
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
4043
4231
|
/**
|
|
@@ -4066,7 +4254,7 @@ interface RuleOptions {
|
|
|
4066
4254
|
*/
|
|
4067
4255
|
'vars-on-top'?: Linter.RuleEntry<[]>
|
|
4068
4256
|
/**
|
|
4069
|
-
* require
|
|
4257
|
+
* require test file pattern
|
|
4070
4258
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
4071
4259
|
*/
|
|
4072
4260
|
'vitest/consistent-test-filename'?: Linter.RuleEntry<VitestConsistentTestFilename>
|
|
@@ -4085,6 +4273,11 @@ interface RuleOptions {
|
|
|
4085
4273
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
4086
4274
|
*/
|
|
4087
4275
|
'vitest/expect-expect'?: Linter.RuleEntry<VitestExpectExpect>
|
|
4276
|
+
/**
|
|
4277
|
+
* enforce hoisted APIs to be on top of the file
|
|
4278
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/hoisted-apis-on-top.md
|
|
4279
|
+
*/
|
|
4280
|
+
'vitest/hoisted-apis-on-top'?: Linter.RuleEntry<[]>
|
|
4088
4281
|
/**
|
|
4089
4282
|
* enforce a maximum number of expect per test
|
|
4090
4283
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
@@ -4241,6 +4434,11 @@ interface RuleOptions {
|
|
|
4241
4434
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
4242
4435
|
*/
|
|
4243
4436
|
'vitest/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
4437
|
+
/**
|
|
4438
|
+
* Prefer `toHaveBeenCalledExactlyOnceWith` over `toHaveBeenCalledOnce` and `toHaveBeenCalledWith`
|
|
4439
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-exactly-once-with.md
|
|
4440
|
+
*/
|
|
4441
|
+
'vitest/prefer-called-exactly-once-with'?: Linter.RuleEntry<[]>
|
|
4244
4442
|
/**
|
|
4245
4443
|
* enforce using `toBeCalledOnce()` or `toHaveBeenCalledOnce()`
|
|
4246
4444
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-once.md
|
|
@@ -4286,6 +4484,11 @@ interface RuleOptions {
|
|
|
4286
4484
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
|
|
4287
4485
|
*/
|
|
4288
4486
|
'vitest/prefer-expect-resolves'?: Linter.RuleEntry<[]>
|
|
4487
|
+
/**
|
|
4488
|
+
* enforce using `expectTypeOf` instead of `expect(typeof ...)`
|
|
4489
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-type-of.md
|
|
4490
|
+
*/
|
|
4491
|
+
'vitest/prefer-expect-type-of'?: Linter.RuleEntry<[]>
|
|
4289
4492
|
/**
|
|
4290
4493
|
* enforce having hooks in consistent order
|
|
4291
4494
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
|
|
@@ -4296,6 +4499,11 @@ interface RuleOptions {
|
|
|
4296
4499
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
4297
4500
|
*/
|
|
4298
4501
|
'vitest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
|
|
4502
|
+
/**
|
|
4503
|
+
* prefer dynamic import in mock
|
|
4504
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
4505
|
+
*/
|
|
4506
|
+
'vitest/prefer-import-in-mock'?: Linter.RuleEntry<[]>
|
|
4299
4507
|
/**
|
|
4300
4508
|
* enforce importing Vitest globals
|
|
4301
4509
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -4371,6 +4579,11 @@ interface RuleOptions {
|
|
|
4371
4579
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
4372
4580
|
*/
|
|
4373
4581
|
'vitest/prefer-vi-mocked'?: Linter.RuleEntry<[]>
|
|
4582
|
+
/**
|
|
4583
|
+
* ensure that every `expect.poll` call is awaited
|
|
4584
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
|
|
4585
|
+
*/
|
|
4586
|
+
'vitest/require-awaited-expect-poll'?: Linter.RuleEntry<[]>
|
|
4374
4587
|
/**
|
|
4375
4588
|
* require setup and teardown to be within a hook
|
|
4376
4589
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -4452,11 +4665,13 @@ type EslintReactDomNoUnknownProperty = []|[{
|
|
|
4452
4665
|
ignore?: string[]
|
|
4453
4666
|
requireDataLowercase?: boolean
|
|
4454
4667
|
}]
|
|
4668
|
+
// ----- @eslint-react/jsx-shorthand-boolean -----
|
|
4669
|
+
type EslintReactJsxShorthandBoolean = []|[(-1 | 1)]
|
|
4670
|
+
// ----- @eslint-react/jsx-shorthand-fragment -----
|
|
4671
|
+
type EslintReactJsxShorthandFragment = []|[(-1 | 1)]
|
|
4455
4672
|
// ----- @eslint-react/naming-convention/component-name -----
|
|
4456
4673
|
type EslintReactNamingConventionComponentName = []|[(("PascalCase" | "CONSTANT_CASE") | {
|
|
4457
4674
|
allowAllCaps?: boolean
|
|
4458
|
-
allowLeadingUnderscore?: boolean
|
|
4459
|
-
allowNamespace?: boolean
|
|
4460
4675
|
excepts?: string[]
|
|
4461
4676
|
rule?: ("PascalCase" | "CONSTANT_CASE")
|
|
4462
4677
|
})]
|
|
@@ -4472,6 +4687,16 @@ type EslintReactNamingConventionFilenameExtension = []|[(("always" | "as-needed"
|
|
|
4472
4687
|
extensions?: string[]
|
|
4473
4688
|
ignoreFilesWithoutCode?: boolean
|
|
4474
4689
|
})]
|
|
4690
|
+
// ----- @eslint-react/no-forbidden-props -----
|
|
4691
|
+
type EslintReactNoForbiddenProps = []|[{
|
|
4692
|
+
forbid?: (string | {
|
|
4693
|
+
excludedNodes?: string[]
|
|
4694
|
+
prop: string
|
|
4695
|
+
} | {
|
|
4696
|
+
includedNodes?: string[]
|
|
4697
|
+
prop: string
|
|
4698
|
+
})[]
|
|
4699
|
+
}]
|
|
4475
4700
|
// ----- @eslint-react/no-useless-fragment -----
|
|
4476
4701
|
type EslintReactNoUselessFragment = []|[{
|
|
4477
4702
|
|
|
@@ -4488,15 +4713,19 @@ type TypescriptEslintArrayType = []|[{
|
|
|
4488
4713
|
type TypescriptEslintBanTsComment = []|[{
|
|
4489
4714
|
|
|
4490
4715
|
minimumDescriptionLength?: number
|
|
4716
|
+
|
|
4491
4717
|
"ts-check"?: (boolean | "allow-with-description" | {
|
|
4492
4718
|
descriptionFormat?: string
|
|
4493
4719
|
})
|
|
4720
|
+
|
|
4494
4721
|
"ts-expect-error"?: (boolean | "allow-with-description" | {
|
|
4495
4722
|
descriptionFormat?: string
|
|
4496
4723
|
})
|
|
4724
|
+
|
|
4497
4725
|
"ts-ignore"?: (boolean | "allow-with-description" | {
|
|
4498
4726
|
descriptionFormat?: string
|
|
4499
4727
|
})
|
|
4728
|
+
|
|
4500
4729
|
"ts-nocheck"?: (boolean | "allow-with-description" | {
|
|
4501
4730
|
descriptionFormat?: string
|
|
4502
4731
|
})
|
|
@@ -4590,10 +4819,15 @@ type TypescriptEslintExplicitMemberAccessibility = []|[{
|
|
|
4590
4819
|
ignoredMethodNames?: string[]
|
|
4591
4820
|
|
|
4592
4821
|
overrides?: {
|
|
4822
|
+
|
|
4593
4823
|
accessors?: ("explicit" | "no-public" | "off")
|
|
4824
|
+
|
|
4594
4825
|
constructors?: ("explicit" | "no-public" | "off")
|
|
4826
|
+
|
|
4595
4827
|
methods?: ("explicit" | "no-public" | "off")
|
|
4828
|
+
|
|
4596
4829
|
parameterProperties?: ("explicit" | "no-public" | "off")
|
|
4830
|
+
|
|
4597
4831
|
properties?: ("explicit" | "no-public" | "off")
|
|
4598
4832
|
}
|
|
4599
4833
|
}]
|
|
@@ -4627,26 +4861,31 @@ type TypescriptEslintMaxParams = []|[{
|
|
|
4627
4861
|
}]
|
|
4628
4862
|
// ----- @typescript-eslint/member-ordering -----
|
|
4629
4863
|
type TypescriptEslintMemberOrdering = []|[{
|
|
4864
|
+
|
|
4630
4865
|
classes?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | {
|
|
4631
4866
|
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | "never")
|
|
4632
4867
|
optionalityOrder?: ("optional-first" | "required-first")
|
|
4633
4868
|
order?: ("alphabetically" | "alphabetically-case-insensitive" | "as-written" | "natural" | "natural-case-insensitive")
|
|
4634
4869
|
})
|
|
4870
|
+
|
|
4635
4871
|
classExpressions?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | {
|
|
4636
4872
|
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | "never")
|
|
4637
4873
|
optionalityOrder?: ("optional-first" | "required-first")
|
|
4638
4874
|
order?: ("alphabetically" | "alphabetically-case-insensitive" | "as-written" | "natural" | "natural-case-insensitive")
|
|
4639
4875
|
})
|
|
4876
|
+
|
|
4640
4877
|
default?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | {
|
|
4641
4878
|
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | "never")
|
|
4642
4879
|
optionalityOrder?: ("optional-first" | "required-first")
|
|
4643
4880
|
order?: ("alphabetically" | "alphabetically-case-insensitive" | "as-written" | "natural" | "natural-case-insensitive")
|
|
4644
4881
|
})
|
|
4882
|
+
|
|
4645
4883
|
interfaces?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor") | ("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor")[])[] | {
|
|
4646
4884
|
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor") | ("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor")[])[] | "never")
|
|
4647
4885
|
optionalityOrder?: ("optional-first" | "required-first")
|
|
4648
4886
|
order?: ("alphabetically" | "alphabetically-case-insensitive" | "as-written" | "natural" | "natural-case-insensitive")
|
|
4649
4887
|
})
|
|
4888
|
+
|
|
4650
4889
|
typeLiterals?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor") | ("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor")[])[] | {
|
|
4651
4890
|
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor") | ("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor")[])[] | "never")
|
|
4652
4891
|
optionalityOrder?: ("optional-first" | "required-first")
|
|
@@ -5297,6 +5536,11 @@ type TypescriptEslintNoUnnecessaryTypeAssertion = []|[{
|
|
|
5297
5536
|
|
|
5298
5537
|
typesToIgnore?: string[]
|
|
5299
5538
|
}]
|
|
5539
|
+
// ----- @typescript-eslint/no-unsafe-member-access -----
|
|
5540
|
+
type TypescriptEslintNoUnsafeMemberAccess = []|[{
|
|
5541
|
+
|
|
5542
|
+
allowOptionalChaining?: boolean
|
|
5543
|
+
}]
|
|
5300
5544
|
// ----- @typescript-eslint/no-unused-expressions -----
|
|
5301
5545
|
type TypescriptEslintNoUnusedExpressions = []|[{
|
|
5302
5546
|
allowShortCircuit?: boolean
|
|
@@ -5322,6 +5566,8 @@ type TypescriptEslintNoUnusedVars = []|[(("all" | "local") | {
|
|
|
5322
5566
|
|
|
5323
5567
|
ignoreRestSiblings?: boolean
|
|
5324
5568
|
|
|
5569
|
+
ignoreUsingDeclarations?: boolean
|
|
5570
|
+
|
|
5325
5571
|
reportUsedIgnorePattern?: boolean
|
|
5326
5572
|
|
|
5327
5573
|
vars?: ("all" | "local")
|
|
@@ -6200,6 +6446,11 @@ type IndentLegacy = []|[("tab" | number)]|[("tab" | number), {
|
|
|
6200
6446
|
type InitDeclarations = ([]|["always"] | []|["never"]|["never", {
|
|
6201
6447
|
ignoreForLoopInit?: boolean
|
|
6202
6448
|
}])
|
|
6449
|
+
// ----- jsdoc/check-alignment -----
|
|
6450
|
+
type JsdocCheckAlignment = []|[{
|
|
6451
|
+
|
|
6452
|
+
innerIndent?: number
|
|
6453
|
+
}]
|
|
6203
6454
|
// ----- jsdoc/check-examples -----
|
|
6204
6455
|
type JsdocCheckExamples = []|[{
|
|
6205
6456
|
allowInlineConfig?: boolean
|
|
@@ -6224,85 +6475,138 @@ type JsdocCheckExamples = []|[{
|
|
|
6224
6475
|
}]
|
|
6225
6476
|
// ----- jsdoc/check-indentation -----
|
|
6226
6477
|
type JsdocCheckIndentation = []|[{
|
|
6478
|
+
|
|
6227
6479
|
excludeTags?: string[]
|
|
6228
6480
|
}]
|
|
6229
6481
|
// ----- jsdoc/check-line-alignment -----
|
|
6230
6482
|
type JsdocCheckLineAlignment = []|[("always" | "never" | "any")]|[("always" | "never" | "any"), {
|
|
6483
|
+
|
|
6231
6484
|
customSpacings?: {
|
|
6485
|
+
|
|
6232
6486
|
postDelimiter?: number
|
|
6487
|
+
|
|
6233
6488
|
postHyphen?: number
|
|
6489
|
+
|
|
6234
6490
|
postName?: number
|
|
6491
|
+
|
|
6235
6492
|
postTag?: number
|
|
6493
|
+
|
|
6236
6494
|
postType?: number
|
|
6237
6495
|
}
|
|
6496
|
+
|
|
6238
6497
|
disableWrapIndent?: boolean
|
|
6498
|
+
|
|
6239
6499
|
preserveMainDescriptionPostDelimiter?: boolean
|
|
6500
|
+
|
|
6240
6501
|
tags?: string[]
|
|
6502
|
+
|
|
6241
6503
|
wrapIndent?: string
|
|
6242
6504
|
}]
|
|
6243
6505
|
// ----- jsdoc/check-param-names -----
|
|
6244
6506
|
type JsdocCheckParamNames = []|[{
|
|
6507
|
+
|
|
6245
6508
|
allowExtraTrailingParamDocs?: boolean
|
|
6509
|
+
|
|
6246
6510
|
checkDestructured?: boolean
|
|
6511
|
+
|
|
6247
6512
|
checkRestProperty?: boolean
|
|
6513
|
+
|
|
6248
6514
|
checkTypesPattern?: string
|
|
6515
|
+
|
|
6249
6516
|
disableExtraPropertyReporting?: boolean
|
|
6517
|
+
|
|
6250
6518
|
disableMissingParamChecks?: boolean
|
|
6519
|
+
|
|
6251
6520
|
enableFixer?: boolean
|
|
6521
|
+
|
|
6252
6522
|
useDefaultObjectProperties?: boolean
|
|
6253
6523
|
}]
|
|
6254
6524
|
// ----- jsdoc/check-property-names -----
|
|
6255
6525
|
type JsdocCheckPropertyNames = []|[{
|
|
6526
|
+
|
|
6256
6527
|
enableFixer?: boolean
|
|
6257
6528
|
}]
|
|
6258
6529
|
// ----- jsdoc/check-tag-names -----
|
|
6259
6530
|
type JsdocCheckTagNames = []|[{
|
|
6531
|
+
|
|
6260
6532
|
definedTags?: string[]
|
|
6533
|
+
|
|
6261
6534
|
enableFixer?: boolean
|
|
6535
|
+
|
|
6536
|
+
inlineTags?: string[]
|
|
6537
|
+
|
|
6262
6538
|
jsxTags?: boolean
|
|
6539
|
+
|
|
6263
6540
|
typed?: boolean
|
|
6264
6541
|
}]
|
|
6265
6542
|
// ----- jsdoc/check-types -----
|
|
6266
6543
|
type JsdocCheckTypes = []|[{
|
|
6544
|
+
|
|
6267
6545
|
exemptTagContexts?: {
|
|
6546
|
+
|
|
6268
6547
|
tag?: string
|
|
6548
|
+
|
|
6269
6549
|
types?: (boolean | string[])
|
|
6270
6550
|
}[]
|
|
6551
|
+
|
|
6271
6552
|
noDefaults?: boolean
|
|
6553
|
+
|
|
6272
6554
|
unifyParentAndChildTypeChecks?: boolean
|
|
6273
6555
|
}]
|
|
6274
6556
|
// ----- jsdoc/check-values -----
|
|
6275
6557
|
type JsdocCheckValues = []|[{
|
|
6558
|
+
|
|
6276
6559
|
allowedAuthors?: string[]
|
|
6560
|
+
|
|
6277
6561
|
allowedLicenses?: (string[] | boolean)
|
|
6562
|
+
|
|
6278
6563
|
licensePattern?: string
|
|
6564
|
+
|
|
6279
6565
|
numericOnlyVariation?: boolean
|
|
6280
6566
|
}]
|
|
6281
6567
|
// ----- jsdoc/convert-to-jsdoc-comments -----
|
|
6282
6568
|
type JsdocConvertToJsdocComments = []|[{
|
|
6569
|
+
|
|
6283
6570
|
allowedPrefixes?: string[]
|
|
6571
|
+
|
|
6284
6572
|
contexts?: (string | {
|
|
6285
6573
|
context?: string
|
|
6286
6574
|
inlineCommentBlock?: boolean
|
|
6287
6575
|
})[]
|
|
6576
|
+
|
|
6288
6577
|
contextsAfter?: (string | {
|
|
6289
6578
|
context?: string
|
|
6290
6579
|
inlineCommentBlock?: boolean
|
|
6291
6580
|
})[]
|
|
6581
|
+
|
|
6292
6582
|
contextsBeforeAndAfter?: (string | {
|
|
6293
6583
|
context?: string
|
|
6294
6584
|
inlineCommentBlock?: boolean
|
|
6295
6585
|
})[]
|
|
6586
|
+
|
|
6296
6587
|
enableFixer?: boolean
|
|
6588
|
+
|
|
6297
6589
|
enforceJsdocLineStyle?: ("multi" | "single")
|
|
6590
|
+
|
|
6298
6591
|
lineOrBlockStyle?: ("block" | "line" | "both")
|
|
6299
6592
|
}]
|
|
6300
6593
|
// ----- jsdoc/empty-tags -----
|
|
6301
6594
|
type JsdocEmptyTags = []|[{
|
|
6595
|
+
|
|
6302
6596
|
tags?: string[]
|
|
6303
6597
|
}]
|
|
6598
|
+
// ----- jsdoc/escape-inline-tags -----
|
|
6599
|
+
type JsdocEscapeInlineTags = []|[{
|
|
6600
|
+
|
|
6601
|
+
allowedInlineTags?: string[]
|
|
6602
|
+
|
|
6603
|
+
enableFixer?: boolean
|
|
6604
|
+
|
|
6605
|
+
fixType?: ("backticks" | "backslash")
|
|
6606
|
+
}]
|
|
6304
6607
|
// ----- jsdoc/implements-on-classes -----
|
|
6305
6608
|
type JsdocImplementsOnClasses = []|[{
|
|
6609
|
+
|
|
6306
6610
|
contexts?: (string | {
|
|
6307
6611
|
comment?: string
|
|
6308
6612
|
context?: string
|
|
@@ -6310,33 +6614,47 @@ type JsdocImplementsOnClasses = []|[{
|
|
|
6310
6614
|
}]
|
|
6311
6615
|
// ----- jsdoc/informative-docs -----
|
|
6312
6616
|
type JsdocInformativeDocs = []|[{
|
|
6617
|
+
|
|
6313
6618
|
aliases?: {
|
|
6314
6619
|
[k: string]: string[]
|
|
6315
6620
|
}
|
|
6621
|
+
|
|
6316
6622
|
excludedTags?: string[]
|
|
6623
|
+
|
|
6317
6624
|
uselessWords?: string[]
|
|
6318
6625
|
}]
|
|
6319
6626
|
// ----- jsdoc/lines-before-block -----
|
|
6320
6627
|
type JsdocLinesBeforeBlock = []|[{
|
|
6628
|
+
|
|
6321
6629
|
checkBlockStarts?: boolean
|
|
6630
|
+
|
|
6322
6631
|
excludedTags?: string[]
|
|
6632
|
+
|
|
6323
6633
|
ignoreSameLine?: boolean
|
|
6634
|
+
|
|
6324
6635
|
ignoreSingleLines?: boolean
|
|
6636
|
+
|
|
6325
6637
|
lines?: number
|
|
6326
6638
|
}]
|
|
6327
6639
|
// ----- jsdoc/match-description -----
|
|
6328
6640
|
type JsdocMatchDescription = []|[{
|
|
6641
|
+
|
|
6329
6642
|
contexts?: (string | {
|
|
6330
6643
|
comment?: string
|
|
6331
6644
|
context?: string
|
|
6332
6645
|
})[]
|
|
6646
|
+
|
|
6333
6647
|
mainDescription?: (string | boolean | {
|
|
6334
6648
|
match?: (string | boolean)
|
|
6335
6649
|
message?: string
|
|
6336
6650
|
})
|
|
6651
|
+
|
|
6337
6652
|
matchDescription?: string
|
|
6653
|
+
|
|
6338
6654
|
message?: string
|
|
6655
|
+
|
|
6339
6656
|
nonemptyTags?: boolean
|
|
6657
|
+
|
|
6340
6658
|
tags?: {
|
|
6341
6659
|
[k: string]: (string | true | {
|
|
6342
6660
|
match?: (string | true)
|
|
@@ -6346,47 +6664,70 @@ type JsdocMatchDescription = []|[{
|
|
|
6346
6664
|
}]
|
|
6347
6665
|
// ----- jsdoc/match-name -----
|
|
6348
6666
|
type JsdocMatchName = []|[{
|
|
6667
|
+
|
|
6349
6668
|
match: {
|
|
6669
|
+
|
|
6350
6670
|
allowName?: string
|
|
6671
|
+
|
|
6351
6672
|
comment?: string
|
|
6673
|
+
|
|
6352
6674
|
context?: string
|
|
6675
|
+
|
|
6353
6676
|
disallowName?: string
|
|
6677
|
+
|
|
6354
6678
|
message?: string
|
|
6679
|
+
|
|
6355
6680
|
replacement?: string
|
|
6681
|
+
|
|
6356
6682
|
tags?: string[]
|
|
6357
6683
|
}[]
|
|
6358
6684
|
}]
|
|
6359
6685
|
// ----- jsdoc/multiline-blocks -----
|
|
6360
6686
|
type JsdocMultilineBlocks = []|[{
|
|
6687
|
+
|
|
6361
6688
|
allowMultipleTags?: boolean
|
|
6689
|
+
|
|
6362
6690
|
minimumLengthForMultiline?: number
|
|
6691
|
+
|
|
6363
6692
|
multilineTags?: ("*" | string[])
|
|
6693
|
+
|
|
6364
6694
|
noFinalLineText?: boolean
|
|
6695
|
+
|
|
6365
6696
|
noMultilineBlocks?: boolean
|
|
6697
|
+
|
|
6366
6698
|
noSingleLineBlocks?: boolean
|
|
6699
|
+
|
|
6367
6700
|
noZeroLineText?: boolean
|
|
6701
|
+
|
|
6368
6702
|
requireSingleLineUnderCount?: number
|
|
6703
|
+
|
|
6369
6704
|
singleLineTags?: string[]
|
|
6370
6705
|
}]
|
|
6371
6706
|
// ----- jsdoc/no-bad-blocks -----
|
|
6372
6707
|
type JsdocNoBadBlocks = []|[{
|
|
6708
|
+
|
|
6373
6709
|
ignore?: string[]
|
|
6710
|
+
|
|
6374
6711
|
preventAllMultiAsteriskBlocks?: boolean
|
|
6375
6712
|
}]
|
|
6376
6713
|
// ----- jsdoc/no-blank-blocks -----
|
|
6377
6714
|
type JsdocNoBlankBlocks = []|[{
|
|
6715
|
+
|
|
6378
6716
|
enableFixer?: boolean
|
|
6379
6717
|
}]
|
|
6380
6718
|
// ----- jsdoc/no-defaults -----
|
|
6381
6719
|
type JsdocNoDefaults = []|[{
|
|
6720
|
+
|
|
6382
6721
|
contexts?: (string | {
|
|
6383
6722
|
comment?: string
|
|
6384
6723
|
context?: string
|
|
6385
6724
|
})[]
|
|
6725
|
+
|
|
6386
6726
|
noOptionalParamNames?: boolean
|
|
6387
6727
|
}]
|
|
6388
6728
|
// ----- jsdoc/no-missing-syntax -----
|
|
6389
6729
|
type JsdocNoMissingSyntax = []|[{
|
|
6730
|
+
|
|
6390
6731
|
contexts?: (string | {
|
|
6391
6732
|
comment?: string
|
|
6392
6733
|
context?: string
|
|
@@ -6396,12 +6737,16 @@ type JsdocNoMissingSyntax = []|[{
|
|
|
6396
6737
|
}]
|
|
6397
6738
|
// ----- jsdoc/no-multi-asterisks -----
|
|
6398
6739
|
type JsdocNoMultiAsterisks = []|[{
|
|
6740
|
+
|
|
6399
6741
|
allowWhitespace?: boolean
|
|
6742
|
+
|
|
6400
6743
|
preventAtEnd?: boolean
|
|
6744
|
+
|
|
6401
6745
|
preventAtMiddleLines?: boolean
|
|
6402
6746
|
}]
|
|
6403
6747
|
// ----- jsdoc/no-restricted-syntax -----
|
|
6404
6748
|
type JsdocNoRestrictedSyntax = []|[{
|
|
6749
|
+
|
|
6405
6750
|
contexts: (string | {
|
|
6406
6751
|
comment?: string
|
|
6407
6752
|
context?: string
|
|
@@ -6410,6 +6755,7 @@ type JsdocNoRestrictedSyntax = []|[{
|
|
|
6410
6755
|
}]
|
|
6411
6756
|
// ----- jsdoc/no-types -----
|
|
6412
6757
|
type JsdocNoTypes = []|[{
|
|
6758
|
+
|
|
6413
6759
|
contexts?: (string | {
|
|
6414
6760
|
comment?: string
|
|
6415
6761
|
context?: string
|
|
@@ -6417,51 +6763,86 @@ type JsdocNoTypes = []|[{
|
|
|
6417
6763
|
}]
|
|
6418
6764
|
// ----- jsdoc/no-undefined-types -----
|
|
6419
6765
|
type JsdocNoUndefinedTypes = []|[{
|
|
6766
|
+
|
|
6767
|
+
checkUsedTypedefs?: boolean
|
|
6768
|
+
|
|
6420
6769
|
definedTypes?: string[]
|
|
6770
|
+
|
|
6421
6771
|
disableReporting?: boolean
|
|
6772
|
+
|
|
6422
6773
|
markVariablesAsUsed?: boolean
|
|
6423
6774
|
}]
|
|
6775
|
+
// ----- jsdoc/prefer-import-tag -----
|
|
6776
|
+
type JsdocPreferImportTag = []|[{
|
|
6777
|
+
|
|
6778
|
+
enableFixer?: boolean
|
|
6779
|
+
|
|
6780
|
+
exemptTypedefs?: boolean
|
|
6781
|
+
|
|
6782
|
+
outputType?: ("named-import" | "namespaced-import")
|
|
6783
|
+
}]
|
|
6424
6784
|
// ----- jsdoc/require-asterisk-prefix -----
|
|
6425
6785
|
type JsdocRequireAsteriskPrefix = []|[("always" | "never" | "any")]|[("always" | "never" | "any"), {
|
|
6786
|
+
|
|
6426
6787
|
tags?: {
|
|
6788
|
+
|
|
6427
6789
|
always?: string[]
|
|
6790
|
+
|
|
6428
6791
|
any?: string[]
|
|
6792
|
+
|
|
6429
6793
|
never?: string[]
|
|
6430
6794
|
}
|
|
6431
6795
|
}]
|
|
6432
6796
|
// ----- jsdoc/require-description -----
|
|
6433
6797
|
type JsdocRequireDescription = []|[{
|
|
6798
|
+
|
|
6434
6799
|
checkConstructors?: boolean
|
|
6800
|
+
|
|
6435
6801
|
checkGetters?: boolean
|
|
6802
|
+
|
|
6436
6803
|
checkSetters?: boolean
|
|
6804
|
+
|
|
6437
6805
|
contexts?: (string | {
|
|
6438
6806
|
comment?: string
|
|
6439
6807
|
context?: string
|
|
6440
6808
|
})[]
|
|
6809
|
+
|
|
6441
6810
|
descriptionStyle?: ("body" | "tag" | "any")
|
|
6811
|
+
|
|
6442
6812
|
exemptedBy?: string[]
|
|
6443
6813
|
}]
|
|
6444
6814
|
// ----- jsdoc/require-description-complete-sentence -----
|
|
6445
6815
|
type JsdocRequireDescriptionCompleteSentence = []|[{
|
|
6816
|
+
|
|
6446
6817
|
abbreviations?: string[]
|
|
6818
|
+
|
|
6447
6819
|
newlineBeforeCapsAssumesBadSentenceEnd?: boolean
|
|
6820
|
+
|
|
6448
6821
|
tags?: string[]
|
|
6449
6822
|
}]
|
|
6450
6823
|
// ----- jsdoc/require-example -----
|
|
6451
6824
|
type JsdocRequireExample = []|[{
|
|
6825
|
+
|
|
6452
6826
|
checkConstructors?: boolean
|
|
6827
|
+
|
|
6453
6828
|
checkGetters?: boolean
|
|
6829
|
+
|
|
6454
6830
|
checkSetters?: boolean
|
|
6831
|
+
|
|
6455
6832
|
contexts?: (string | {
|
|
6456
6833
|
comment?: string
|
|
6457
6834
|
context?: string
|
|
6458
6835
|
})[]
|
|
6836
|
+
|
|
6459
6837
|
enableFixer?: boolean
|
|
6838
|
+
|
|
6460
6839
|
exemptedBy?: string[]
|
|
6840
|
+
|
|
6461
6841
|
exemptNoArguments?: boolean
|
|
6462
6842
|
}]
|
|
6463
6843
|
// ----- jsdoc/require-file-overview -----
|
|
6464
6844
|
type JsdocRequireFileOverview = []|[{
|
|
6845
|
+
|
|
6465
6846
|
tags?: {
|
|
6466
6847
|
[k: string]: {
|
|
6467
6848
|
initialCommentsOnly?: boolean
|
|
@@ -6472,73 +6853,117 @@ type JsdocRequireFileOverview = []|[{
|
|
|
6472
6853
|
}]
|
|
6473
6854
|
// ----- jsdoc/require-hyphen-before-param-description -----
|
|
6474
6855
|
type JsdocRequireHyphenBeforeParamDescription = []|[("always" | "never")]|[("always" | "never"), {
|
|
6856
|
+
|
|
6475
6857
|
tags?: ({
|
|
6476
6858
|
[k: string]: ("always" | "never")
|
|
6477
6859
|
} | "any")
|
|
6478
6860
|
}]
|
|
6479
6861
|
// ----- jsdoc/require-jsdoc -----
|
|
6480
6862
|
type JsdocRequireJsdoc = []|[{
|
|
6863
|
+
|
|
6481
6864
|
checkConstructors?: boolean
|
|
6865
|
+
|
|
6482
6866
|
checkGetters?: (boolean | "no-setter")
|
|
6867
|
+
|
|
6483
6868
|
checkSetters?: (boolean | "no-getter")
|
|
6869
|
+
|
|
6484
6870
|
contexts?: (string | {
|
|
6485
6871
|
context?: string
|
|
6486
6872
|
inlineCommentBlock?: boolean
|
|
6487
6873
|
minLineCount?: number
|
|
6488
6874
|
})[]
|
|
6875
|
+
|
|
6489
6876
|
enableFixer?: boolean
|
|
6877
|
+
|
|
6490
6878
|
exemptEmptyConstructors?: boolean
|
|
6879
|
+
|
|
6491
6880
|
exemptEmptyFunctions?: boolean
|
|
6881
|
+
|
|
6882
|
+
exemptOverloadedImplementations?: boolean
|
|
6883
|
+
|
|
6492
6884
|
fixerMessage?: string
|
|
6885
|
+
|
|
6493
6886
|
minLineCount?: number
|
|
6887
|
+
|
|
6494
6888
|
publicOnly?: (boolean | {
|
|
6495
6889
|
ancestorsOnly?: boolean
|
|
6496
6890
|
cjs?: boolean
|
|
6497
6891
|
esm?: boolean
|
|
6498
6892
|
window?: boolean
|
|
6499
6893
|
})
|
|
6894
|
+
|
|
6500
6895
|
require?: {
|
|
6896
|
+
|
|
6501
6897
|
ArrowFunctionExpression?: boolean
|
|
6898
|
+
|
|
6502
6899
|
ClassDeclaration?: boolean
|
|
6900
|
+
|
|
6503
6901
|
ClassExpression?: boolean
|
|
6902
|
+
|
|
6504
6903
|
FunctionDeclaration?: boolean
|
|
6904
|
+
|
|
6505
6905
|
FunctionExpression?: boolean
|
|
6906
|
+
|
|
6506
6907
|
MethodDefinition?: boolean
|
|
6507
6908
|
}
|
|
6909
|
+
|
|
6910
|
+
skipInterveningOverloadedDeclarations?: boolean
|
|
6508
6911
|
}]
|
|
6509
6912
|
// ----- jsdoc/require-param -----
|
|
6510
6913
|
type JsdocRequireParam = []|[{
|
|
6914
|
+
|
|
6511
6915
|
autoIncrementBase?: number
|
|
6916
|
+
|
|
6512
6917
|
checkConstructors?: boolean
|
|
6918
|
+
|
|
6513
6919
|
checkDestructured?: boolean
|
|
6920
|
+
|
|
6514
6921
|
checkDestructuredRoots?: boolean
|
|
6922
|
+
|
|
6515
6923
|
checkGetters?: boolean
|
|
6924
|
+
|
|
6516
6925
|
checkRestProperty?: boolean
|
|
6926
|
+
|
|
6517
6927
|
checkSetters?: boolean
|
|
6928
|
+
|
|
6518
6929
|
checkTypesPattern?: string
|
|
6930
|
+
|
|
6519
6931
|
contexts?: (string | {
|
|
6520
6932
|
comment?: string
|
|
6521
6933
|
context?: string
|
|
6522
6934
|
})[]
|
|
6935
|
+
|
|
6523
6936
|
enableFixer?: boolean
|
|
6937
|
+
|
|
6524
6938
|
enableRestElementFixer?: boolean
|
|
6939
|
+
|
|
6525
6940
|
enableRootFixer?: boolean
|
|
6941
|
+
|
|
6526
6942
|
exemptedBy?: string[]
|
|
6943
|
+
|
|
6527
6944
|
ignoreWhenAllParamsMissing?: boolean
|
|
6945
|
+
|
|
6946
|
+
interfaceExemptsParamsCheck?: boolean
|
|
6947
|
+
|
|
6528
6948
|
unnamedRootBase?: string[]
|
|
6949
|
+
|
|
6529
6950
|
useDefaultObjectProperties?: boolean
|
|
6530
6951
|
}]
|
|
6531
6952
|
// ----- jsdoc/require-param-description -----
|
|
6532
6953
|
type JsdocRequireParamDescription = []|[{
|
|
6954
|
+
|
|
6533
6955
|
contexts?: (string | {
|
|
6534
6956
|
comment?: string
|
|
6535
6957
|
context?: string
|
|
6536
6958
|
})[]
|
|
6959
|
+
|
|
6537
6960
|
defaultDestructuredRootDescription?: string
|
|
6961
|
+
|
|
6538
6962
|
setDefaultDestructuredRootDescription?: boolean
|
|
6539
6963
|
}]
|
|
6540
6964
|
// ----- jsdoc/require-param-name -----
|
|
6541
6965
|
type JsdocRequireParamName = []|[{
|
|
6966
|
+
|
|
6542
6967
|
contexts?: (string | {
|
|
6543
6968
|
comment?: string
|
|
6544
6969
|
context?: string
|
|
@@ -6546,26 +6971,37 @@ type JsdocRequireParamName = []|[{
|
|
|
6546
6971
|
}]
|
|
6547
6972
|
// ----- jsdoc/require-param-type -----
|
|
6548
6973
|
type JsdocRequireParamType = []|[{
|
|
6974
|
+
|
|
6549
6975
|
contexts?: (string | {
|
|
6550
6976
|
comment?: string
|
|
6551
6977
|
context?: string
|
|
6552
6978
|
})[]
|
|
6979
|
+
|
|
6553
6980
|
defaultDestructuredRootType?: string
|
|
6981
|
+
|
|
6554
6982
|
setDefaultDestructuredRootType?: boolean
|
|
6555
6983
|
}]
|
|
6556
6984
|
// ----- jsdoc/require-returns -----
|
|
6557
6985
|
type JsdocRequireReturns = []|[{
|
|
6986
|
+
|
|
6558
6987
|
checkConstructors?: boolean
|
|
6988
|
+
|
|
6559
6989
|
checkGetters?: boolean
|
|
6990
|
+
|
|
6560
6991
|
contexts?: (string | {
|
|
6561
6992
|
comment?: string
|
|
6562
6993
|
context?: string
|
|
6563
6994
|
forceRequireReturn?: boolean
|
|
6564
6995
|
})[]
|
|
6996
|
+
|
|
6565
6997
|
enableFixer?: boolean
|
|
6998
|
+
|
|
6566
6999
|
exemptedBy?: string[]
|
|
7000
|
+
|
|
6567
7001
|
forceRequireReturn?: boolean
|
|
7002
|
+
|
|
6568
7003
|
forceReturnsWithAsync?: boolean
|
|
7004
|
+
|
|
6569
7005
|
publicOnly?: (boolean | {
|
|
6570
7006
|
ancestorsOnly?: boolean
|
|
6571
7007
|
cjs?: boolean
|
|
@@ -6575,12 +7011,18 @@ type JsdocRequireReturns = []|[{
|
|
|
6575
7011
|
}]
|
|
6576
7012
|
// ----- jsdoc/require-returns-check -----
|
|
6577
7013
|
type JsdocRequireReturnsCheck = []|[{
|
|
7014
|
+
|
|
6578
7015
|
exemptAsync?: boolean
|
|
7016
|
+
|
|
6579
7017
|
exemptGenerators?: boolean
|
|
7018
|
+
|
|
7019
|
+
noNativeTypes?: boolean
|
|
7020
|
+
|
|
6580
7021
|
reportMissingReturnForUndefinedTypes?: boolean
|
|
6581
7022
|
}]
|
|
6582
7023
|
// ----- jsdoc/require-returns-description -----
|
|
6583
7024
|
type JsdocRequireReturnsDescription = []|[{
|
|
7025
|
+
|
|
6584
7026
|
contexts?: (string | {
|
|
6585
7027
|
comment?: string
|
|
6586
7028
|
context?: string
|
|
@@ -6588,62 +7030,99 @@ type JsdocRequireReturnsDescription = []|[{
|
|
|
6588
7030
|
}]
|
|
6589
7031
|
// ----- jsdoc/require-returns-type -----
|
|
6590
7032
|
type JsdocRequireReturnsType = []|[{
|
|
7033
|
+
|
|
6591
7034
|
contexts?: (string | {
|
|
6592
7035
|
comment?: string
|
|
6593
7036
|
context?: string
|
|
6594
7037
|
})[]
|
|
6595
7038
|
}]
|
|
7039
|
+
// ----- jsdoc/require-tags -----
|
|
7040
|
+
type JsdocRequireTags = []|[{
|
|
7041
|
+
|
|
7042
|
+
tags?: (string | {
|
|
7043
|
+
context?: string
|
|
7044
|
+
tag?: string
|
|
7045
|
+
[k: string]: unknown | undefined
|
|
7046
|
+
})[]
|
|
7047
|
+
}]
|
|
6596
7048
|
// ----- jsdoc/require-template -----
|
|
6597
7049
|
type JsdocRequireTemplate = []|[{
|
|
7050
|
+
|
|
7051
|
+
exemptedBy?: string[]
|
|
7052
|
+
|
|
6598
7053
|
requireSeparateTemplates?: boolean
|
|
6599
7054
|
}]
|
|
6600
7055
|
// ----- jsdoc/require-throws -----
|
|
6601
7056
|
type JsdocRequireThrows = []|[{
|
|
7057
|
+
|
|
6602
7058
|
contexts?: (string | {
|
|
6603
7059
|
comment?: string
|
|
6604
7060
|
context?: string
|
|
6605
7061
|
})[]
|
|
7062
|
+
|
|
6606
7063
|
exemptedBy?: string[]
|
|
6607
7064
|
}]
|
|
6608
7065
|
// ----- jsdoc/require-yields -----
|
|
6609
7066
|
type JsdocRequireYields = []|[{
|
|
7067
|
+
|
|
6610
7068
|
contexts?: (string | {
|
|
6611
7069
|
comment?: string
|
|
6612
7070
|
context?: string
|
|
6613
7071
|
})[]
|
|
7072
|
+
|
|
6614
7073
|
exemptedBy?: string[]
|
|
7074
|
+
|
|
6615
7075
|
forceRequireNext?: boolean
|
|
7076
|
+
|
|
6616
7077
|
forceRequireYields?: boolean
|
|
7078
|
+
|
|
6617
7079
|
next?: boolean
|
|
7080
|
+
|
|
6618
7081
|
nextWithGeneratorTag?: boolean
|
|
7082
|
+
|
|
6619
7083
|
withGeneratorTag?: boolean
|
|
6620
7084
|
}]
|
|
6621
7085
|
// ----- jsdoc/require-yields-check -----
|
|
6622
7086
|
type JsdocRequireYieldsCheck = []|[{
|
|
7087
|
+
|
|
6623
7088
|
checkGeneratorsOnly?: boolean
|
|
7089
|
+
|
|
6624
7090
|
contexts?: (string | {
|
|
6625
7091
|
comment?: string
|
|
6626
7092
|
context?: string
|
|
6627
7093
|
})[]
|
|
6628
|
-
|
|
7094
|
+
|
|
6629
7095
|
next?: boolean
|
|
6630
7096
|
}]
|
|
6631
7097
|
// ----- jsdoc/sort-tags -----
|
|
6632
7098
|
type JsdocSortTags = []|[{
|
|
7099
|
+
|
|
6633
7100
|
alphabetizeExtras?: boolean
|
|
7101
|
+
|
|
6634
7102
|
linesBetween?: number
|
|
7103
|
+
|
|
6635
7104
|
reportIntraTagGroupSpacing?: boolean
|
|
7105
|
+
|
|
6636
7106
|
reportTagGroupSpacing?: boolean
|
|
7107
|
+
|
|
6637
7108
|
tagSequence?: {
|
|
7109
|
+
|
|
6638
7110
|
tags?: string[]
|
|
6639
7111
|
}[]
|
|
6640
7112
|
}]
|
|
6641
7113
|
// ----- jsdoc/tag-lines -----
|
|
6642
7114
|
type JsdocTagLines = []|[("always" | "any" | "never")]|[("always" | "any" | "never"), {
|
|
7115
|
+
|
|
6643
7116
|
applyToEndTag?: boolean
|
|
7117
|
+
|
|
6644
7118
|
count?: number
|
|
7119
|
+
|
|
6645
7120
|
endLines?: (number | null)
|
|
7121
|
+
|
|
7122
|
+
maxBlockLines?: (number | null)
|
|
7123
|
+
|
|
6646
7124
|
startLines?: (number | null)
|
|
7125
|
+
|
|
6647
7126
|
tags?: {
|
|
6648
7127
|
[k: string]: {
|
|
6649
7128
|
count?: number
|
|
@@ -6653,11 +7132,88 @@ type JsdocTagLines = []|[("always" | "any" | "never")]|[("always" | "any" | "nev
|
|
|
6653
7132
|
}]
|
|
6654
7133
|
// ----- jsdoc/text-escaping -----
|
|
6655
7134
|
type JsdocTextEscaping = []|[{
|
|
7135
|
+
|
|
6656
7136
|
escapeHTML?: boolean
|
|
7137
|
+
|
|
6657
7138
|
escapeMarkdown?: boolean
|
|
6658
7139
|
}]
|
|
7140
|
+
// ----- jsdoc/ts-method-signature-style -----
|
|
7141
|
+
type JsdocTsMethodSignatureStyle = []|[("method" | "property")]|[("method" | "property"), {
|
|
7142
|
+
|
|
7143
|
+
enableFixer?: boolean
|
|
7144
|
+
}]
|
|
7145
|
+
// ----- jsdoc/ts-no-unnecessary-template-expression -----
|
|
7146
|
+
type JsdocTsNoUnnecessaryTemplateExpression = []|[{
|
|
7147
|
+
|
|
7148
|
+
enableFixer?: boolean
|
|
7149
|
+
}]
|
|
7150
|
+
// ----- jsdoc/ts-prefer-function-type -----
|
|
7151
|
+
type JsdocTsPreferFunctionType = []|[{
|
|
7152
|
+
|
|
7153
|
+
enableFixer?: boolean
|
|
7154
|
+
}]
|
|
7155
|
+
// ----- jsdoc/type-formatting -----
|
|
7156
|
+
type JsdocTypeFormatting = []|[{
|
|
7157
|
+
|
|
7158
|
+
arrayBrackets?: ("angle" | "square")
|
|
7159
|
+
|
|
7160
|
+
arrowFunctionPostReturnMarkerSpacing?: string
|
|
7161
|
+
|
|
7162
|
+
arrowFunctionPreReturnMarkerSpacing?: string
|
|
7163
|
+
|
|
7164
|
+
enableFixer?: boolean
|
|
7165
|
+
|
|
7166
|
+
functionOrClassParameterSpacing?: string
|
|
7167
|
+
|
|
7168
|
+
functionOrClassPostGenericSpacing?: string
|
|
7169
|
+
|
|
7170
|
+
functionOrClassPostReturnMarkerSpacing?: string
|
|
7171
|
+
|
|
7172
|
+
functionOrClassPreReturnMarkerSpacing?: string
|
|
7173
|
+
|
|
7174
|
+
functionOrClassTypeParameterSpacing?: string
|
|
7175
|
+
|
|
7176
|
+
genericAndTupleElementSpacing?: string
|
|
7177
|
+
|
|
7178
|
+
genericDot?: boolean
|
|
7179
|
+
|
|
7180
|
+
keyValuePostColonSpacing?: string
|
|
7181
|
+
|
|
7182
|
+
keyValuePostKeySpacing?: string
|
|
7183
|
+
|
|
7184
|
+
keyValuePostOptionalSpacing?: string
|
|
7185
|
+
|
|
7186
|
+
keyValuePostVariadicSpacing?: string
|
|
7187
|
+
|
|
7188
|
+
methodQuotes?: ("double" | "single")
|
|
7189
|
+
|
|
7190
|
+
objectFieldIndent?: string
|
|
7191
|
+
|
|
7192
|
+
objectFieldQuote?: ("double" | "single" | null)
|
|
7193
|
+
|
|
7194
|
+
objectFieldSeparator?: ("comma" | "comma-and-linebreak" | "linebreak" | "semicolon" | "semicolon-and-linebreak")
|
|
7195
|
+
|
|
7196
|
+
objectFieldSeparatorOptionalLinebreak?: boolean
|
|
7197
|
+
|
|
7198
|
+
objectFieldSeparatorTrailingPunctuation?: boolean
|
|
7199
|
+
|
|
7200
|
+
parameterDefaultValueSpacing?: string
|
|
7201
|
+
|
|
7202
|
+
postMethodNameSpacing?: string
|
|
7203
|
+
|
|
7204
|
+
postNewSpacing?: string
|
|
7205
|
+
|
|
7206
|
+
separatorForSingleObjectField?: boolean
|
|
7207
|
+
|
|
7208
|
+
stringQuotes?: ("double" | "single")
|
|
7209
|
+
|
|
7210
|
+
typeBracketSpacing?: string
|
|
7211
|
+
|
|
7212
|
+
unionSpacing?: string
|
|
7213
|
+
}]
|
|
6659
7214
|
// ----- jsdoc/valid-types -----
|
|
6660
7215
|
type JsdocValidTypes = []|[{
|
|
7216
|
+
|
|
6661
7217
|
allowEmptyNamepaths?: boolean
|
|
6662
7218
|
}]
|
|
6663
7219
|
// ----- jsx-quotes -----
|
|
@@ -7414,12 +7970,16 @@ type NoRestrictedImports = ((string | {
|
|
|
7414
7970
|
message?: string
|
|
7415
7971
|
importNames?: string[]
|
|
7416
7972
|
allowImportNames?: string[]
|
|
7973
|
+
|
|
7974
|
+
allowTypeImports?: boolean
|
|
7417
7975
|
})[] | []|[{
|
|
7418
7976
|
paths?: (string | {
|
|
7419
7977
|
name: string
|
|
7420
7978
|
message?: string
|
|
7421
7979
|
importNames?: string[]
|
|
7422
7980
|
allowImportNames?: string[]
|
|
7981
|
+
|
|
7982
|
+
allowTypeImports?: boolean
|
|
7423
7983
|
})[]
|
|
7424
7984
|
patterns?: (string[] | ({
|
|
7425
7985
|
[k: string]: unknown | undefined
|
|
@@ -10573,6 +11133,11 @@ type PreferReflect = []|[{
|
|
|
10573
11133
|
type PreferRegexLiterals = []|[{
|
|
10574
11134
|
disallowRedundantWrapping?: boolean
|
|
10575
11135
|
}]
|
|
11136
|
+
// ----- preserve-caught-error -----
|
|
11137
|
+
type PreserveCaughtError = []|[{
|
|
11138
|
+
|
|
11139
|
+
requireCatchParameter?: boolean
|
|
11140
|
+
}]
|
|
10576
11141
|
// ----- quote-props -----
|
|
10577
11142
|
type QuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
10578
11143
|
keywords?: boolean
|
|
@@ -10586,10 +11151,124 @@ type Quotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "b
|
|
|
10586
11151
|
})]
|
|
10587
11152
|
// ----- radix -----
|
|
10588
11153
|
type Radix = []|[("always" | "as-needed")]
|
|
11154
|
+
// ----- react-hooks/automatic-effect-dependencies -----
|
|
11155
|
+
type ReactHooksAutomaticEffectDependencies = []|[{
|
|
11156
|
+
[k: string]: unknown | undefined
|
|
11157
|
+
}]
|
|
11158
|
+
// ----- react-hooks/capitalized-calls -----
|
|
11159
|
+
type ReactHooksCapitalizedCalls = []|[{
|
|
11160
|
+
[k: string]: unknown | undefined
|
|
11161
|
+
}]
|
|
11162
|
+
// ----- react-hooks/component-hook-factories -----
|
|
11163
|
+
type ReactHooksComponentHookFactories = []|[{
|
|
11164
|
+
[k: string]: unknown | undefined
|
|
11165
|
+
}]
|
|
11166
|
+
// ----- react-hooks/config -----
|
|
11167
|
+
type ReactHooksConfig = []|[{
|
|
11168
|
+
[k: string]: unknown | undefined
|
|
11169
|
+
}]
|
|
11170
|
+
// ----- react-hooks/error-boundaries -----
|
|
11171
|
+
type ReactHooksErrorBoundaries = []|[{
|
|
11172
|
+
[k: string]: unknown | undefined
|
|
11173
|
+
}]
|
|
10589
11174
|
// ----- react-hooks/exhaustive-deps -----
|
|
10590
11175
|
type ReactHooksExhaustiveDeps = []|[{
|
|
10591
11176
|
additionalHooks?: string
|
|
10592
11177
|
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean
|
|
11178
|
+
experimental_autoDependenciesHooks?: string[]
|
|
11179
|
+
requireExplicitEffectDeps?: boolean
|
|
11180
|
+
}]
|
|
11181
|
+
// ----- react-hooks/fbt -----
|
|
11182
|
+
type ReactHooksFbt = []|[{
|
|
11183
|
+
[k: string]: unknown | undefined
|
|
11184
|
+
}]
|
|
11185
|
+
// ----- react-hooks/fire -----
|
|
11186
|
+
type ReactHooksFire = []|[{
|
|
11187
|
+
[k: string]: unknown | undefined
|
|
11188
|
+
}]
|
|
11189
|
+
// ----- react-hooks/gating -----
|
|
11190
|
+
type ReactHooksGating = []|[{
|
|
11191
|
+
[k: string]: unknown | undefined
|
|
11192
|
+
}]
|
|
11193
|
+
// ----- react-hooks/globals -----
|
|
11194
|
+
type ReactHooksGlobals = []|[{
|
|
11195
|
+
[k: string]: unknown | undefined
|
|
11196
|
+
}]
|
|
11197
|
+
// ----- react-hooks/hooks -----
|
|
11198
|
+
type ReactHooksHooks = []|[{
|
|
11199
|
+
[k: string]: unknown | undefined
|
|
11200
|
+
}]
|
|
11201
|
+
// ----- react-hooks/immutability -----
|
|
11202
|
+
type ReactHooksImmutability = []|[{
|
|
11203
|
+
[k: string]: unknown | undefined
|
|
11204
|
+
}]
|
|
11205
|
+
// ----- react-hooks/incompatible-library -----
|
|
11206
|
+
type ReactHooksIncompatibleLibrary = []|[{
|
|
11207
|
+
[k: string]: unknown | undefined
|
|
11208
|
+
}]
|
|
11209
|
+
// ----- react-hooks/invariant -----
|
|
11210
|
+
type ReactHooksInvariant = []|[{
|
|
11211
|
+
[k: string]: unknown | undefined
|
|
11212
|
+
}]
|
|
11213
|
+
// ----- react-hooks/memoized-effect-dependencies -----
|
|
11214
|
+
type ReactHooksMemoizedEffectDependencies = []|[{
|
|
11215
|
+
[k: string]: unknown | undefined
|
|
11216
|
+
}]
|
|
11217
|
+
// ----- react-hooks/no-deriving-state-in-effects -----
|
|
11218
|
+
type ReactHooksNoDerivingStateInEffects = []|[{
|
|
11219
|
+
[k: string]: unknown | undefined
|
|
11220
|
+
}]
|
|
11221
|
+
// ----- react-hooks/preserve-manual-memoization -----
|
|
11222
|
+
type ReactHooksPreserveManualMemoization = []|[{
|
|
11223
|
+
[k: string]: unknown | undefined
|
|
11224
|
+
}]
|
|
11225
|
+
// ----- react-hooks/purity -----
|
|
11226
|
+
type ReactHooksPurity = []|[{
|
|
11227
|
+
[k: string]: unknown | undefined
|
|
11228
|
+
}]
|
|
11229
|
+
// ----- react-hooks/refs -----
|
|
11230
|
+
type ReactHooksRefs = []|[{
|
|
11231
|
+
[k: string]: unknown | undefined
|
|
11232
|
+
}]
|
|
11233
|
+
// ----- react-hooks/rule-suppression -----
|
|
11234
|
+
type ReactHooksRuleSuppression = []|[{
|
|
11235
|
+
[k: string]: unknown | undefined
|
|
11236
|
+
}]
|
|
11237
|
+
// ----- react-hooks/rules-of-hooks -----
|
|
11238
|
+
type ReactHooksRulesOfHooks = []|[{
|
|
11239
|
+
additionalHooks?: string
|
|
11240
|
+
}]
|
|
11241
|
+
// ----- react-hooks/set-state-in-effect -----
|
|
11242
|
+
type ReactHooksSetStateInEffect = []|[{
|
|
11243
|
+
[k: string]: unknown | undefined
|
|
11244
|
+
}]
|
|
11245
|
+
// ----- react-hooks/set-state-in-render -----
|
|
11246
|
+
type ReactHooksSetStateInRender = []|[{
|
|
11247
|
+
[k: string]: unknown | undefined
|
|
11248
|
+
}]
|
|
11249
|
+
// ----- react-hooks/static-components -----
|
|
11250
|
+
type ReactHooksStaticComponents = []|[{
|
|
11251
|
+
[k: string]: unknown | undefined
|
|
11252
|
+
}]
|
|
11253
|
+
// ----- react-hooks/syntax -----
|
|
11254
|
+
type ReactHooksSyntax = []|[{
|
|
11255
|
+
[k: string]: unknown | undefined
|
|
11256
|
+
}]
|
|
11257
|
+
// ----- react-hooks/todo -----
|
|
11258
|
+
type ReactHooksTodo = []|[{
|
|
11259
|
+
[k: string]: unknown | undefined
|
|
11260
|
+
}]
|
|
11261
|
+
// ----- react-hooks/unsupported-syntax -----
|
|
11262
|
+
type ReactHooksUnsupportedSyntax = []|[{
|
|
11263
|
+
[k: string]: unknown | undefined
|
|
11264
|
+
}]
|
|
11265
|
+
// ----- react-hooks/use-memo -----
|
|
11266
|
+
type ReactHooksUseMemo = []|[{
|
|
11267
|
+
[k: string]: unknown | undefined
|
|
11268
|
+
}]
|
|
11269
|
+
// ----- react-hooks/void-use-memo -----
|
|
11270
|
+
type ReactHooksVoidUseMemo = []|[{
|
|
11271
|
+
[k: string]: unknown | undefined
|
|
10593
11272
|
}]
|
|
10594
11273
|
// ----- react-refresh/only-export-components -----
|
|
10595
11274
|
type ReactRefreshOnlyExportComponents = []|[{
|
|
@@ -10764,6 +11443,10 @@ type UnicornNoArrayReduce = []|[{
|
|
|
10764
11443
|
type UnicornNoArrayReverse = []|[{
|
|
10765
11444
|
allowExpressionStatement?: boolean
|
|
10766
11445
|
}]
|
|
11446
|
+
// ----- unicorn/no-array-sort -----
|
|
11447
|
+
type UnicornNoArraySort = []|[{
|
|
11448
|
+
allowExpressionStatement?: boolean
|
|
11449
|
+
}]
|
|
10767
11450
|
// ----- unicorn/no-instanceof-builtins -----
|
|
10768
11451
|
type UnicornNoInstanceofBuiltins = []|[{
|
|
10769
11452
|
useErrorIsError?: boolean
|
|
@@ -10913,6 +11596,10 @@ type UnicornTemplateIndent = []|[{
|
|
|
10913
11596
|
selectors?: string[]
|
|
10914
11597
|
comments?: string[]
|
|
10915
11598
|
}]
|
|
11599
|
+
// ----- unicorn/text-encoding-identifier-case -----
|
|
11600
|
+
type UnicornTextEncodingIdentifierCase = []|[{
|
|
11601
|
+
withDash?: boolean
|
|
11602
|
+
}]
|
|
10916
11603
|
// ----- unused-imports/no-unused-imports -----
|
|
10917
11604
|
type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
|
|
10918
11605
|
|
|
@@ -10930,6 +11617,8 @@ type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
|
|
|
10930
11617
|
|
|
10931
11618
|
ignoreRestSiblings?: boolean
|
|
10932
11619
|
|
|
11620
|
+
ignoreUsingDeclarations?: boolean
|
|
11621
|
+
|
|
10933
11622
|
reportUsedIgnorePattern?: boolean
|
|
10934
11623
|
|
|
10935
11624
|
vars?: ("all" | "local")
|
|
@@ -10953,6 +11642,8 @@ type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
|
10953
11642
|
|
|
10954
11643
|
ignoreRestSiblings?: boolean
|
|
10955
11644
|
|
|
11645
|
+
ignoreUsingDeclarations?: boolean
|
|
11646
|
+
|
|
10956
11647
|
reportUsedIgnorePattern?: boolean
|
|
10957
11648
|
|
|
10958
11649
|
vars?: ("all" | "local")
|
|
@@ -11001,7 +11692,8 @@ type VitestNoFocusedTests = []|[{
|
|
|
11001
11692
|
}]
|
|
11002
11693
|
// ----- vitest/no-hooks -----
|
|
11003
11694
|
type VitestNoHooks = []|[{
|
|
11004
|
-
|
|
11695
|
+
|
|
11696
|
+
allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[]
|
|
11005
11697
|
}]
|
|
11006
11698
|
// ----- vitest/no-large-snapshots -----
|
|
11007
11699
|
type VitestNoLargeSnapshots = []|[{
|
|
@@ -11178,7 +11870,14 @@ interface OptionsConfig {
|
|
|
11178
11870
|
*
|
|
11179
11871
|
* @default false
|
|
11180
11872
|
*/
|
|
11181
|
-
react?: boolean
|
|
11873
|
+
react?: boolean | {
|
|
11874
|
+
/**
|
|
11875
|
+
* Enable React strict rules.
|
|
11876
|
+
*
|
|
11877
|
+
* @default true
|
|
11878
|
+
*/
|
|
11879
|
+
enableStrictRules?: boolean;
|
|
11880
|
+
};
|
|
11182
11881
|
/**
|
|
11183
11882
|
* Enable vitest (`@vitest/eslint-plugin`) support rules.
|
|
11184
11883
|
*
|