@vinicunca/eslint-config 4.10.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +521 -512
- package/dist/index.mjs +31 -114
- package/dist/{lib-D3Kr7UIJ.mjs → lib-D13rzY6d.mjs} +2834 -2323
- package/package.json +38 -43
package/dist/index.d.mts
CHANGED
|
@@ -331,6 +331,11 @@ interface RuleOptions {
|
|
|
331
331
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-exports-from-components/
|
|
332
332
|
*/
|
|
333
333
|
'astro/no-exports-from-components'?: Linter.RuleEntry<[]>;
|
|
334
|
+
/**
|
|
335
|
+
* disallow `prerender` export outside of pages/ directory
|
|
336
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-prerender-export-outside-pages/
|
|
337
|
+
*/
|
|
338
|
+
'astro/no-prerender-export-outside-pages'?: Linter.RuleEntry<[]>;
|
|
334
339
|
/**
|
|
335
340
|
* disallow use of `set:html` to prevent XSS attack
|
|
336
341
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-html-directive/
|
|
@@ -1685,6 +1690,11 @@ interface RuleOptions {
|
|
|
1685
1690
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
1686
1691
|
*/
|
|
1687
1692
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
1693
|
+
/**
|
|
1694
|
+
* Require or disallow metadata for fenced code blocks
|
|
1695
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
|
|
1696
|
+
*/
|
|
1697
|
+
'markdown/fenced-code-meta'?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
|
|
1688
1698
|
/**
|
|
1689
1699
|
* Enforce heading levels increment by one
|
|
1690
1700
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
@@ -3063,6 +3073,11 @@ interface RuleOptions {
|
|
|
3063
3073
|
* @see https://perfectionist.dev/rules/sort-array-includes
|
|
3064
3074
|
*/
|
|
3065
3075
|
'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
|
|
3076
|
+
/**
|
|
3077
|
+
* Enforce sorted arrays.
|
|
3078
|
+
* @see https://perfectionist.dev/rules/sort-arrays
|
|
3079
|
+
*/
|
|
3080
|
+
'perfectionist/sort-arrays'?: Linter.RuleEntry<PerfectionistSortArrays>;
|
|
3066
3081
|
/**
|
|
3067
3082
|
* Enforce sorted classes.
|
|
3068
3083
|
* @see https://perfectionist.dev/rules/sort-classes
|
|
@@ -3386,149 +3401,11 @@ interface RuleOptions {
|
|
|
3386
3401
|
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
3387
3402
|
*/
|
|
3388
3403
|
'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
3389
|
-
/**
|
|
3390
|
-
* Disallows direct calls to the ['set' function](https://react.dev/reference/react/useState#setstate) of 'useState' in 'useEffect'.
|
|
3391
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
3392
|
-
*/
|
|
3393
|
-
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>;
|
|
3394
|
-
/**
|
|
3395
|
-
* Verifies that automatic effect dependencies are compiled if opted-in
|
|
3396
|
-
*/
|
|
3397
|
-
'react-hooks/automatic-effect-dependencies'?: Linter.RuleEntry<ReactHooksAutomaticEffectDependencies>;
|
|
3398
|
-
/**
|
|
3399
|
-
* Validates against calling capitalized functions/methods instead of using JSX
|
|
3400
|
-
*/
|
|
3401
|
-
'react-hooks/capitalized-calls'?: Linter.RuleEntry<ReactHooksCapitalizedCalls>;
|
|
3402
|
-
/**
|
|
3403
|
-
* Validates against higher order functions defining nested components or hooks. Components and hooks should be defined at the module level
|
|
3404
|
-
*/
|
|
3405
|
-
'react-hooks/component-hook-factories'?: Linter.RuleEntry<ReactHooksComponentHookFactories>;
|
|
3406
|
-
/**
|
|
3407
|
-
* Validates the compiler configuration options
|
|
3408
|
-
*/
|
|
3409
|
-
'react-hooks/config'?: Linter.RuleEntry<ReactHooksConfig>;
|
|
3410
|
-
/**
|
|
3411
|
-
* Validates usage of error boundaries instead of try/catch for errors in child components
|
|
3412
|
-
*/
|
|
3413
|
-
'react-hooks/error-boundaries'?: Linter.RuleEntry<ReactHooksErrorBoundaries>;
|
|
3414
|
-
/**
|
|
3415
|
-
* verifies the list of dependencies for Hooks like useEffect and similar
|
|
3416
|
-
* @see https://github.com/facebook/react/issues/14920
|
|
3417
|
-
*/
|
|
3418
|
-
'react-hooks/exhaustive-deps'?: Linter.RuleEntry<ReactHooksExhaustiveDeps>;
|
|
3419
|
-
/**
|
|
3420
|
-
* Validates usage of fbt
|
|
3421
|
-
*/
|
|
3422
|
-
'react-hooks/fbt'?: Linter.RuleEntry<ReactHooksFbt>;
|
|
3423
|
-
/**
|
|
3424
|
-
* Validates usage of `fire`
|
|
3425
|
-
*/
|
|
3426
|
-
'react-hooks/fire'?: Linter.RuleEntry<ReactHooksFire>;
|
|
3427
|
-
/**
|
|
3428
|
-
* Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)
|
|
3429
|
-
*/
|
|
3430
|
-
'react-hooks/gating'?: Linter.RuleEntry<ReactHooksGating>;
|
|
3431
|
-
/**
|
|
3432
|
-
* 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)
|
|
3433
|
-
*/
|
|
3434
|
-
'react-hooks/globals'?: Linter.RuleEntry<ReactHooksGlobals>;
|
|
3435
|
-
/**
|
|
3436
|
-
* Validates the rules of hooks
|
|
3437
|
-
*/
|
|
3438
|
-
'react-hooks/hooks'?: Linter.RuleEntry<ReactHooksHooks>;
|
|
3439
|
-
/**
|
|
3440
|
-
* 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)
|
|
3441
|
-
*/
|
|
3442
|
-
'react-hooks/immutability'?: Linter.RuleEntry<ReactHooksImmutability>;
|
|
3443
|
-
/**
|
|
3444
|
-
* Validates against usage of libraries which are incompatible with memoization (manual or automatic)
|
|
3445
|
-
*/
|
|
3446
|
-
'react-hooks/incompatible-library'?: Linter.RuleEntry<ReactHooksIncompatibleLibrary>;
|
|
3447
|
-
/**
|
|
3448
|
-
* Internal invariants
|
|
3449
|
-
*/
|
|
3450
|
-
'react-hooks/invariant'?: Linter.RuleEntry<ReactHooksInvariant>;
|
|
3451
|
-
/**
|
|
3452
|
-
* Validates that effect dependencies are memoized
|
|
3453
|
-
*/
|
|
3454
|
-
'react-hooks/memoized-effect-dependencies'?: Linter.RuleEntry<ReactHooksMemoizedEffectDependencies>;
|
|
3455
|
-
/**
|
|
3456
|
-
* Validates against deriving values from state in an effect
|
|
3457
|
-
*/
|
|
3458
|
-
'react-hooks/no-deriving-state-in-effects'?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects>;
|
|
3459
|
-
/**
|
|
3460
|
-
* 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)
|
|
3461
|
-
*/
|
|
3462
|
-
'react-hooks/preserve-manual-memoization'?: Linter.RuleEntry<ReactHooksPreserveManualMemoization>;
|
|
3463
|
-
/**
|
|
3464
|
-
* 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
|
|
3465
|
-
*/
|
|
3466
|
-
'react-hooks/purity'?: Linter.RuleEntry<ReactHooksPurity>;
|
|
3467
|
-
/**
|
|
3468
|
-
* Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)
|
|
3469
|
-
*/
|
|
3470
|
-
'react-hooks/refs'?: Linter.RuleEntry<ReactHooksRefs>;
|
|
3471
|
-
/**
|
|
3472
|
-
* Validates against suppression of other rules
|
|
3473
|
-
*/
|
|
3474
|
-
'react-hooks/rule-suppression'?: Linter.RuleEntry<ReactHooksRuleSuppression>;
|
|
3475
|
-
/**
|
|
3476
|
-
* enforces the Rules of Hooks
|
|
3477
|
-
* @see https://react.dev/reference/rules/rules-of-hooks
|
|
3478
|
-
*/
|
|
3479
|
-
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<ReactHooksRulesOfHooks>;
|
|
3480
|
-
/**
|
|
3481
|
-
* Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance
|
|
3482
|
-
*/
|
|
3483
|
-
'react-hooks/set-state-in-effect'?: Linter.RuleEntry<ReactHooksSetStateInEffect>;
|
|
3484
|
-
/**
|
|
3485
|
-
* Validates against setting state during render, which can trigger additional renders and potential infinite render loops
|
|
3486
|
-
*/
|
|
3487
|
-
'react-hooks/set-state-in-render'?: Linter.RuleEntry<ReactHooksSetStateInRender>;
|
|
3488
|
-
/**
|
|
3489
|
-
* Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
|
|
3490
|
-
*/
|
|
3491
|
-
'react-hooks/static-components'?: Linter.RuleEntry<ReactHooksStaticComponents>;
|
|
3492
|
-
/**
|
|
3493
|
-
* Validates against invalid syntax
|
|
3494
|
-
*/
|
|
3495
|
-
'react-hooks/syntax'?: Linter.RuleEntry<ReactHooksSyntax>;
|
|
3496
|
-
/**
|
|
3497
|
-
* Unimplemented features
|
|
3498
|
-
*/
|
|
3499
|
-
'react-hooks/todo'?: Linter.RuleEntry<ReactHooksTodo>;
|
|
3500
|
-
/**
|
|
3501
|
-
* Validates against syntax that we do not plan to support in React Compiler
|
|
3502
|
-
*/
|
|
3503
|
-
'react-hooks/unsupported-syntax'?: Linter.RuleEntry<ReactHooksUnsupportedSyntax>;
|
|
3504
|
-
/**
|
|
3505
|
-
* Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
3506
|
-
*/
|
|
3507
|
-
'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>;
|
|
3508
|
-
/**
|
|
3509
|
-
* 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.
|
|
3510
|
-
*/
|
|
3511
|
-
'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
|
|
3512
|
-
/**
|
|
3513
|
-
* Enforces naming conventions for components.
|
|
3514
|
-
* @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
|
|
3515
|
-
*/
|
|
3516
|
-
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>;
|
|
3517
3404
|
/**
|
|
3518
3405
|
* Enforces the context name to be a valid component name with the suffix 'Context'.
|
|
3519
3406
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
3520
3407
|
*/
|
|
3521
3408
|
'react-naming-convention/context-name'?: Linter.RuleEntry<[]>;
|
|
3522
|
-
/**
|
|
3523
|
-
* Enforces consistent file-naming conventions.
|
|
3524
|
-
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename
|
|
3525
|
-
*/
|
|
3526
|
-
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>;
|
|
3527
|
-
/**
|
|
3528
|
-
* Enforces consistent use of the JSX file extension.
|
|
3529
|
-
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
3530
|
-
*/
|
|
3531
|
-
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
3532
3409
|
/**
|
|
3533
3410
|
* Enforces identifier names assigned from 'useId' calls to be either 'id' or end with 'Id'.
|
|
3534
3411
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-id-name
|
|
@@ -3539,14 +3416,9 @@ interface RuleOptions {
|
|
|
3539
3416
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
3540
3417
|
*/
|
|
3541
3418
|
'react-naming-convention/ref-name'?: Linter.RuleEntry<[]>;
|
|
3542
|
-
/**
|
|
3543
|
-
* Enforces destructuring and symmetric naming of the 'useState' hook value and setter.
|
|
3544
|
-
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
3545
|
-
*/
|
|
3546
|
-
'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
|
|
3547
3419
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
3548
3420
|
/**
|
|
3549
|
-
*
|
|
3421
|
+
* Validates and transforms React Client/Server Function definitions.
|
|
3550
3422
|
* @see https://eslint-react.xyz/docs/rules/function-definition
|
|
3551
3423
|
*/
|
|
3552
3424
|
'react-rsc/function-definition'?: Linter.RuleEntry<[]>;
|
|
@@ -3570,6 +3442,26 @@ interface RuleOptions {
|
|
|
3570
3442
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
|
|
3571
3443
|
*/
|
|
3572
3444
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
3445
|
+
/**
|
|
3446
|
+
* Disallows higher order functions that define components or hooks inside them.
|
|
3447
|
+
* @see https://eslint-react.xyz/docs/rules/component-hook-factories
|
|
3448
|
+
*/
|
|
3449
|
+
'react/component-hook-factories'?: Linter.RuleEntry<[]>;
|
|
3450
|
+
/**
|
|
3451
|
+
* Validates usage of Error Boundaries instead of try/catch for errors in child components.
|
|
3452
|
+
* @see https://eslint-react.xyz/docs/rules/error-boundaries
|
|
3453
|
+
*/
|
|
3454
|
+
'react/error-boundaries'?: Linter.RuleEntry<[]>;
|
|
3455
|
+
/**
|
|
3456
|
+
* Verifies the list of dependencies for Hooks like 'useEffect' and similar.
|
|
3457
|
+
* @see https://github.com/facebook/react/issues/14920
|
|
3458
|
+
*/
|
|
3459
|
+
'react/exhaustive-deps'?: Linter.RuleEntry<ReactExhaustiveDeps>;
|
|
3460
|
+
/**
|
|
3461
|
+
* Validates against mutating props, state, and other values that are immutable.
|
|
3462
|
+
* @see https://eslint-react.xyz/docs/rules/immutability
|
|
3463
|
+
*/
|
|
3464
|
+
'react/immutability'?: Linter.RuleEntry<[]>;
|
|
3573
3465
|
/**
|
|
3574
3466
|
* Prevents unintentional '$' sign before expression.
|
|
3575
3467
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
@@ -3581,25 +3473,10 @@ interface RuleOptions {
|
|
|
3581
3473
|
*/
|
|
3582
3474
|
'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
|
|
3583
3475
|
/**
|
|
3584
|
-
* Prevents comment strings (
|
|
3476
|
+
* Prevents comment strings (ex: beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes.
|
|
3585
3477
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
|
|
3586
3478
|
*/
|
|
3587
3479
|
'react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
|
|
3588
|
-
/**
|
|
3589
|
-
* Disallows duplicate props in JSX elements.
|
|
3590
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
|
|
3591
|
-
*/
|
|
3592
|
-
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
3593
|
-
/**
|
|
3594
|
-
* Disallows immediately-invoked function expressions in JSX.
|
|
3595
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
3596
|
-
*/
|
|
3597
|
-
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
3598
|
-
/**
|
|
3599
|
-
* Prevents using variables in JSX that are not defined in the scope.
|
|
3600
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-no-undef
|
|
3601
|
-
*/
|
|
3602
|
-
'react/jsx-no-undef'?: Linter.RuleEntry<[]>;
|
|
3603
3480
|
/**
|
|
3604
3481
|
* Enforces shorthand syntax for boolean props.
|
|
3605
3482
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
@@ -3610,16 +3487,6 @@ interface RuleOptions {
|
|
|
3610
3487
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
3611
3488
|
*/
|
|
3612
3489
|
'react/jsx-shorthand-fragment'?: Linter.RuleEntry<ReactJsxShorthandFragment>;
|
|
3613
|
-
/**
|
|
3614
|
-
* Marks React variables as used when JSX is present.
|
|
3615
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-uses-react
|
|
3616
|
-
*/
|
|
3617
|
-
'react/jsx-uses-react'?: Linter.RuleEntry<[]>;
|
|
3618
|
-
/**
|
|
3619
|
-
* Marks JSX element variables as used.
|
|
3620
|
-
* @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
|
|
3621
|
-
*/
|
|
3622
|
-
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
3623
3490
|
/**
|
|
3624
3491
|
* Disallows accessing 'this.state' inside 'setState' calls.
|
|
3625
3492
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
@@ -3695,11 +3562,6 @@ interface RuleOptions {
|
|
|
3695
3562
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
3696
3563
|
*/
|
|
3697
3564
|
'react/no-create-ref'?: Linter.RuleEntry<[]>;
|
|
3698
|
-
/**
|
|
3699
|
-
* Disallows the 'defaultProps' property in favor of ES6 default parameters.
|
|
3700
|
-
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
3701
|
-
*/
|
|
3702
|
-
'react/no-default-props'?: Linter.RuleEntry<[]>;
|
|
3703
3565
|
/**
|
|
3704
3566
|
* Disallows direct mutation of 'this.state'.
|
|
3705
3567
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
@@ -3710,22 +3572,26 @@ interface RuleOptions {
|
|
|
3710
3572
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
3711
3573
|
*/
|
|
3712
3574
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>;
|
|
3713
|
-
/**
|
|
3714
|
-
* Disallows certain props on components.
|
|
3715
|
-
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
3716
|
-
* @deprecated
|
|
3717
|
-
*/
|
|
3718
|
-
'react/no-forbidden-props'?: Linter.RuleEntry<ReactNoForbiddenProps>;
|
|
3719
3575
|
/**
|
|
3720
3576
|
* Replaces usage of 'forwardRef' with passing 'ref' as a prop.
|
|
3721
3577
|
* @see https://eslint-react.xyz/docs/rules/no-forward-ref
|
|
3722
3578
|
*/
|
|
3723
3579
|
'react/no-forward-ref'?: Linter.RuleEntry<[]>;
|
|
3580
|
+
/**
|
|
3581
|
+
* Prevents implicitly passing the 'children' prop to components.
|
|
3582
|
+
* @see https://eslint-react.xyz/docs/rules/no-implicit-children
|
|
3583
|
+
*/
|
|
3584
|
+
'react/no-implicit-children'?: Linter.RuleEntry<[]>;
|
|
3724
3585
|
/**
|
|
3725
3586
|
* Prevents implicitly passing the 'key' prop to components.
|
|
3726
3587
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
3727
3588
|
*/
|
|
3728
3589
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>;
|
|
3590
|
+
/**
|
|
3591
|
+
* Prevents implicitly passing the 'ref' prop to components.
|
|
3592
|
+
* @see https://eslint-react.xyz/docs/rules/no-implicit-ref
|
|
3593
|
+
*/
|
|
3594
|
+
'react/no-implicit-ref'?: Linter.RuleEntry<[]>;
|
|
3729
3595
|
/**
|
|
3730
3596
|
* Prevents problematic leaked values from being rendered.
|
|
3731
3597
|
* @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
|
|
@@ -3761,11 +3627,6 @@ interface RuleOptions {
|
|
|
3761
3627
|
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
3762
3628
|
*/
|
|
3763
3629
|
'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
|
|
3764
|
-
/**
|
|
3765
|
-
* Disallows 'propTypes' in favor of TypeScript or another type-checking solution.
|
|
3766
|
-
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
3767
|
-
*/
|
|
3768
|
-
'react/no-prop-types'?: Linter.RuleEntry<[]>;
|
|
3769
3630
|
/**
|
|
3770
3631
|
* Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'.
|
|
3771
3632
|
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
@@ -3786,16 +3647,6 @@ interface RuleOptions {
|
|
|
3786
3647
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
3787
3648
|
*/
|
|
3788
3649
|
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>;
|
|
3789
|
-
/**
|
|
3790
|
-
* Replaces string refs with callback refs.
|
|
3791
|
-
* @see https://eslint-react.xyz/docs/rules/no-string-refs
|
|
3792
|
-
*/
|
|
3793
|
-
'react/no-string-refs'?: Linter.RuleEntry<[]>;
|
|
3794
|
-
/**
|
|
3795
|
-
* Disallows unnecessary 'key' props on nested child elements when rendering lists.
|
|
3796
|
-
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
|
|
3797
|
-
*/
|
|
3798
|
-
'react/no-unnecessary-key'?: Linter.RuleEntry<[]>;
|
|
3799
3650
|
/**
|
|
3800
3651
|
* Disallows unnecessary usage of 'useCallback'.
|
|
3801
3652
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
|
|
@@ -3811,11 +3662,6 @@ interface RuleOptions {
|
|
|
3811
3662
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
|
|
3812
3663
|
*/
|
|
3813
3664
|
'react/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>;
|
|
3814
|
-
/**
|
|
3815
|
-
* Disallows unnecessary usage of 'useRef'.
|
|
3816
|
-
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-ref
|
|
3817
|
-
*/
|
|
3818
|
-
'react/no-unnecessary-use-ref'?: Linter.RuleEntry<[]>;
|
|
3819
3665
|
/**
|
|
3820
3666
|
* Warns about the use of 'UNSAFE_componentWillMount' in class components.
|
|
3821
3667
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
@@ -3861,11 +3707,6 @@ interface RuleOptions {
|
|
|
3861
3707
|
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
3862
3708
|
*/
|
|
3863
3709
|
'react/no-use-context'?: Linter.RuleEntry<[]>;
|
|
3864
|
-
/**
|
|
3865
|
-
* Disallows useless 'forwardRef' calls on components that don't use 'ref's.
|
|
3866
|
-
* @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
|
|
3867
|
-
*/
|
|
3868
|
-
'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>;
|
|
3869
3710
|
/**
|
|
3870
3711
|
* Disallows useless fragment elements.
|
|
3871
3712
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
@@ -3882,15 +3723,55 @@ interface RuleOptions {
|
|
|
3882
3723
|
*/
|
|
3883
3724
|
'react/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
3884
3725
|
/**
|
|
3885
|
-
*
|
|
3886
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
3726
|
+
* Validates that components and hooks are pure by checking that they do not call known-impure functions during render.
|
|
3727
|
+
* @see https://eslint-react.xyz/docs/rules/purity
|
|
3728
|
+
*/
|
|
3729
|
+
'react/purity'?: Linter.RuleEntry<[]>;
|
|
3730
|
+
/**
|
|
3731
|
+
* Validates correct usage of refs by checking that 'ref.current' is not read or written during render.
|
|
3732
|
+
* @see https://eslint-react.xyz/docs/rules/refs
|
|
3733
|
+
*/
|
|
3734
|
+
'react/refs'?: Linter.RuleEntry<[]>;
|
|
3735
|
+
/**
|
|
3736
|
+
* Enforces the Rules of Hooks.
|
|
3737
|
+
* @see https://react.dev/reference/rules/rules-of-hooks
|
|
3738
|
+
*/
|
|
3739
|
+
'react/rules-of-hooks'?: Linter.RuleEntry<ReactRulesOfHooks>;
|
|
3740
|
+
/**
|
|
3741
|
+
* Validates against setting state synchronously in an effect, which can lead to re-renders that degrade performance.
|
|
3742
|
+
* @see https://eslint-react.xyz/docs/rules/set-state-in-effect
|
|
3887
3743
|
*/
|
|
3888
|
-
'react/
|
|
3744
|
+
'react/set-state-in-effect'?: Linter.RuleEntry<[]>;
|
|
3889
3745
|
/**
|
|
3890
|
-
*
|
|
3891
|
-
* @see https://eslint-react.xyz/docs/rules/
|
|
3746
|
+
* Validates against unconditionally setting state during render, which can trigger additional renders and potential infinite render loops.
|
|
3747
|
+
* @see https://eslint-react.xyz/docs/rules/set-state-in-render
|
|
3892
3748
|
*/
|
|
3893
|
-
'react/
|
|
3749
|
+
'react/set-state-in-render'?: Linter.RuleEntry<[]>;
|
|
3750
|
+
/**
|
|
3751
|
+
* Enforces the Rules of Props.
|
|
3752
|
+
* @see https://eslint-react.xyz/docs/rules/unstable-rules-of-props
|
|
3753
|
+
*/
|
|
3754
|
+
'react/unstable-rules-of-props'?: Linter.RuleEntry<[]>;
|
|
3755
|
+
/**
|
|
3756
|
+
* Enforces the Rules of State.
|
|
3757
|
+
* @see https://eslint-react.xyz/docs/rules/unstable-rules-of-state
|
|
3758
|
+
*/
|
|
3759
|
+
'react/unstable-rules-of-state'?: Linter.RuleEntry<[]>;
|
|
3760
|
+
/**
|
|
3761
|
+
* Validates against syntax that React Compiler does not support.
|
|
3762
|
+
* @see https://eslint-react.xyz/docs/rules/unsupported-syntax
|
|
3763
|
+
*/
|
|
3764
|
+
'react/unsupported-syntax'?: Linter.RuleEntry<[]>;
|
|
3765
|
+
/**
|
|
3766
|
+
* Validates that 'useMemo' is called with a callback that returns a value.
|
|
3767
|
+
* @see https://eslint-react.xyz/docs/rules/use-memo
|
|
3768
|
+
*/
|
|
3769
|
+
'react/use-memo'?: Linter.RuleEntry<[]>;
|
|
3770
|
+
/**
|
|
3771
|
+
* Enforces correct usage of 'useState', including destructuring, symmetric naming of the value and setter, and wrapping expensive initializers in a lazy initializer function.
|
|
3772
|
+
* @see https://eslint-react.xyz/docs/rules/use-state
|
|
3773
|
+
*/
|
|
3774
|
+
'react/use-state'?: Linter.RuleEntry<ReactUseState>;
|
|
3894
3775
|
/**
|
|
3895
3776
|
* disallow confusing quantifiers
|
|
3896
3777
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
|
|
@@ -4772,12 +4653,6 @@ interface RuleOptions {
|
|
|
4772
4653
|
* @see https://sonarsource.github.io/rspec/#/rspec/S5542/javascript
|
|
4773
4654
|
*/
|
|
4774
4655
|
'sonar/encryption-secure-mode'?: Linter.RuleEntry<[]>;
|
|
4775
|
-
/**
|
|
4776
|
-
* Trailing commas should be used
|
|
4777
|
-
* @see https://sonarsource.github.io/rspec/#/rspec/S3723/javascript
|
|
4778
|
-
* @deprecated
|
|
4779
|
-
*/
|
|
4780
|
-
'sonar/enforce-trailing-comma'?: Linter.RuleEntry<SonarEnforceTrailingComma>;
|
|
4781
4656
|
/**
|
|
4782
4657
|
* Replacement strings should reference existing regular expression groups
|
|
4783
4658
|
* @see https://sonarsource.github.io/rspec/#/rspec/S6328/javascript
|
|
@@ -4799,7 +4674,7 @@ interface RuleOptions {
|
|
|
4799
4674
|
*/
|
|
4800
4675
|
'sonar/file-name-differ-from-class'?: Linter.RuleEntry<[]>;
|
|
4801
4676
|
/**
|
|
4802
|
-
*
|
|
4677
|
+
* File permissions should not be set to world-accessible values
|
|
4803
4678
|
* @see https://sonarsource.github.io/rspec/#/rspec/S2612/javascript
|
|
4804
4679
|
*/
|
|
4805
4680
|
'sonar/file-permissions'?: Linter.RuleEntry<[]>;
|
|
@@ -5369,6 +5244,11 @@ interface RuleOptions {
|
|
|
5369
5244
|
* @see https://sonarsource.github.io/rspec/#/rspec/S2301/javascript
|
|
5370
5245
|
*/
|
|
5371
5246
|
'sonar/no-selector-parameter'?: Linter.RuleEntry<[]>;
|
|
5247
|
+
/**
|
|
5248
|
+
* Static Assets should not serve session cookies
|
|
5249
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8441/javascript
|
|
5250
|
+
*/
|
|
5251
|
+
'sonar/no-session-cookies-on-static-assets'?: Linter.RuleEntry<[]>;
|
|
5372
5252
|
/**
|
|
5373
5253
|
* Tests should not be skipped without providing a reason
|
|
5374
5254
|
* @see https://sonarsource.github.io/rspec/#/rspec/S1607/javascript
|
|
@@ -5690,11 +5570,6 @@ interface RuleOptions {
|
|
|
5690
5570
|
* @see https://sonarsource.github.io/rspec/#/rspec/S3003/javascript
|
|
5691
5571
|
*/
|
|
5692
5572
|
'sonar/strings-comparison'?: Linter.RuleEntry<[]>;
|
|
5693
|
-
/**
|
|
5694
|
-
* "super()" should be invoked appropriately
|
|
5695
|
-
* @see https://sonarsource.github.io/rspec/#/rspec/S3854/javascript
|
|
5696
|
-
*/
|
|
5697
|
-
'sonar/super-invocation'?: Linter.RuleEntry<[]>;
|
|
5698
5573
|
/**
|
|
5699
5574
|
* Tables should have headers
|
|
5700
5575
|
* @see https://sonarsource.github.io/rspec/#/rspec/S5256/javascript
|
|
@@ -7165,6 +7040,11 @@ interface RuleOptions {
|
|
|
7165
7040
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
7166
7041
|
*/
|
|
7167
7042
|
'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>;
|
|
7043
|
+
/**
|
|
7044
|
+
* enforce unbound methods are called with their expected scope
|
|
7045
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
|
|
7046
|
+
*/
|
|
7047
|
+
'test/unbound-method'?: Linter.RuleEntry<TestUnboundMethod>;
|
|
7168
7048
|
/**
|
|
7169
7049
|
* enforce valid describe callback
|
|
7170
7050
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
@@ -7995,730 +7875,750 @@ interface RuleOptions {
|
|
|
7995
7875
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
7996
7876
|
/**
|
|
7997
7877
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
7998
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
|
|
7999
7879
|
*/
|
|
8000
7880
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
8001
7881
|
/**
|
|
8002
7882
|
* Enforce a specific parameter name in catch clauses.
|
|
8003
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7883
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
|
|
8004
7884
|
*/
|
|
8005
7885
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
8006
7886
|
/**
|
|
8007
7887
|
* Enforce consistent assertion style with `node:assert`.
|
|
8008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
|
|
8009
7889
|
*/
|
|
8010
7890
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
8011
7891
|
/**
|
|
8012
7892
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
8013
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7893
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
|
|
8014
7894
|
*/
|
|
8015
7895
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
8016
7896
|
/**
|
|
8017
7897
|
* Use destructured variables over properties.
|
|
8018
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7898
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
|
|
8019
7899
|
*/
|
|
8020
7900
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
8021
7901
|
/**
|
|
8022
7902
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
8023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7903
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
|
|
8024
7904
|
*/
|
|
8025
7905
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
8026
7906
|
/**
|
|
8027
7907
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
8028
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7908
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
|
|
8029
7909
|
*/
|
|
8030
7910
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
8031
7911
|
/**
|
|
8032
7912
|
* Move function definitions to the highest possible scope.
|
|
8033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7913
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
|
|
8034
7914
|
*/
|
|
8035
7915
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
7916
|
+
/**
|
|
7917
|
+
* Enforce consistent style for escaping `${` in template literals.
|
|
7918
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
|
|
7919
|
+
*/
|
|
7920
|
+
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
8036
7921
|
/**
|
|
8037
7922
|
* Enforce correct `Error` subclassing.
|
|
8038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7923
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
|
|
8039
7924
|
*/
|
|
8040
7925
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
8041
7926
|
/**
|
|
8042
7927
|
* Enforce no spaces between braces.
|
|
8043
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7928
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
|
|
8044
7929
|
*/
|
|
8045
7930
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
8046
7931
|
/**
|
|
8047
7932
|
* Enforce passing a `message` value when creating a built-in error.
|
|
8048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7933
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
|
|
8049
7934
|
*/
|
|
8050
7935
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
8051
7936
|
/**
|
|
8052
7937
|
* Require escape sequences to use uppercase or lowercase values.
|
|
8053
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7938
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
|
|
8054
7939
|
*/
|
|
8055
7940
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
8056
7941
|
/**
|
|
8057
7942
|
* Add expiration conditions to TODO comments.
|
|
8058
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7943
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
|
|
8059
7944
|
*/
|
|
8060
7945
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
8061
7946
|
/**
|
|
8062
7947
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
8063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7948
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
|
|
8064
7949
|
*/
|
|
8065
7950
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
8066
7951
|
/**
|
|
8067
7952
|
* Enforce a case style for filenames.
|
|
8068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7953
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
|
|
8069
7954
|
*/
|
|
8070
7955
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
8071
7956
|
/**
|
|
8072
7957
|
* Enforce specific import styles per module.
|
|
8073
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7958
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
|
|
8074
7959
|
*/
|
|
8075
7960
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
8076
7961
|
/**
|
|
8077
7962
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
8078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7963
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
|
|
8079
7964
|
*/
|
|
8080
7965
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
8081
7966
|
/**
|
|
8082
7967
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
8083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7968
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
|
|
8084
7969
|
*/
|
|
8085
7970
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
8086
7971
|
/**
|
|
8087
7972
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
8088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7973
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
8089
7974
|
*/
|
|
8090
7975
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
8091
7976
|
/**
|
|
8092
7977
|
* Disallow recursive access to `this` within getters and setters.
|
|
8093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7978
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
|
|
8094
7979
|
*/
|
|
8095
7980
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
8096
7981
|
/**
|
|
8097
7982
|
* Disallow anonymous functions and classes as the default export.
|
|
8098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7983
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
|
|
8099
7984
|
*/
|
|
8100
7985
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
8101
7986
|
/**
|
|
8102
7987
|
* Prevent passing a function reference directly to iterator methods.
|
|
8103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7988
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
|
|
8104
7989
|
*/
|
|
8105
7990
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
8106
7991
|
/**
|
|
8107
7992
|
* Prefer `for…of` over the `forEach` method.
|
|
8108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7993
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
|
|
8109
7994
|
*/
|
|
8110
7995
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
8111
7996
|
/**
|
|
8112
7997
|
* Disallow using the `this` argument in array methods.
|
|
8113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7998
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
|
|
8114
7999
|
*/
|
|
8115
8000
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
8116
8001
|
/**
|
|
8117
8002
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
8118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8003
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
8119
8004
|
* @deprecated
|
|
8120
8005
|
*/
|
|
8121
8006
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
8122
8007
|
/**
|
|
8123
8008
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
8124
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8009
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
|
|
8125
8010
|
*/
|
|
8126
8011
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
8127
8012
|
/**
|
|
8128
8013
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
8129
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8014
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
|
|
8130
8015
|
*/
|
|
8131
8016
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
8132
8017
|
/**
|
|
8133
8018
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
8134
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8019
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
|
|
8135
8020
|
*/
|
|
8136
8021
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
8137
8022
|
/**
|
|
8138
8023
|
* Disallow member access from await expression.
|
|
8139
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8024
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
|
|
8140
8025
|
*/
|
|
8141
8026
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
8142
8027
|
/**
|
|
8143
8028
|
* Disallow using `await` in `Promise` method parameters.
|
|
8144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8029
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
|
|
8145
8030
|
*/
|
|
8146
8031
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
8147
8032
|
/**
|
|
8148
8033
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
8149
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8034
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
|
|
8150
8035
|
*/
|
|
8151
8036
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
8152
8037
|
/**
|
|
8153
8038
|
* Do not use `document.cookie` directly.
|
|
8154
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8039
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
|
|
8155
8040
|
*/
|
|
8156
8041
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
8157
8042
|
/**
|
|
8158
8043
|
* Disallow empty files.
|
|
8159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8044
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
|
|
8160
8045
|
*/
|
|
8161
8046
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
8162
8047
|
/**
|
|
8163
8048
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
8164
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8049
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
|
|
8165
8050
|
*/
|
|
8166
8051
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
8167
8052
|
/**
|
|
8168
8053
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
8169
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8054
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
|
|
8170
8055
|
*/
|
|
8171
8056
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
8172
8057
|
/**
|
|
8173
8058
|
* Disallow immediate mutation after variable assignment.
|
|
8174
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8059
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
|
|
8175
8060
|
*/
|
|
8176
8061
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
8177
8062
|
/**
|
|
8178
8063
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
8179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8064
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
8180
8065
|
* @deprecated
|
|
8181
8066
|
*/
|
|
8182
8067
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
8183
8068
|
/**
|
|
8184
8069
|
* Disallow `instanceof` with built-in objects
|
|
8185
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
|
|
8186
8071
|
*/
|
|
8187
8072
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
8188
8073
|
/**
|
|
8189
8074
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
8190
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8075
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
|
|
8191
8076
|
*/
|
|
8192
8077
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
8193
8078
|
/**
|
|
8194
8079
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
8195
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8080
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
8196
8081
|
*/
|
|
8197
8082
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
8198
8083
|
/**
|
|
8199
8084
|
* Disallow identifiers starting with `new` or `class`.
|
|
8200
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
|
|
8201
8086
|
*/
|
|
8202
8087
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
8203
8088
|
/**
|
|
8204
8089
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
8205
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
8206
8091
|
* @deprecated
|
|
8207
8092
|
*/
|
|
8208
8093
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
8209
8094
|
/**
|
|
8210
8095
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
8211
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
|
|
8212
8097
|
*/
|
|
8213
8098
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
8214
8099
|
/**
|
|
8215
8100
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
8216
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
8217
8102
|
*/
|
|
8218
8103
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
8219
8104
|
/**
|
|
8220
8105
|
* Disallow named usage of default import and export.
|
|
8221
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
|
|
8222
8107
|
*/
|
|
8223
8108
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
8224
8109
|
/**
|
|
8225
8110
|
* Disallow negated conditions.
|
|
8226
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
|
|
8227
8112
|
*/
|
|
8228
8113
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
8229
8114
|
/**
|
|
8230
8115
|
* Disallow negated expression in equality check.
|
|
8231
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
|
|
8232
8117
|
*/
|
|
8233
8118
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
8234
8119
|
/**
|
|
8235
8120
|
* Disallow nested ternary expressions.
|
|
8236
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
|
|
8237
8122
|
*/
|
|
8238
8123
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
8239
8124
|
/**
|
|
8240
8125
|
* Disallow `new Array()`.
|
|
8241
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8126
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
|
|
8242
8127
|
*/
|
|
8243
8128
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
8244
8129
|
/**
|
|
8245
8130
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
8246
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
|
|
8247
8132
|
*/
|
|
8248
8133
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
8249
8134
|
/**
|
|
8250
8135
|
* Disallow the use of the `null` literal.
|
|
8251
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
|
|
8252
8137
|
*/
|
|
8253
8138
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
8254
8139
|
/**
|
|
8255
8140
|
* Disallow the use of objects as default parameters.
|
|
8256
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
|
|
8257
8142
|
*/
|
|
8258
8143
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
8259
8144
|
/**
|
|
8260
8145
|
* Disallow `process.exit()`.
|
|
8261
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
|
|
8262
8147
|
*/
|
|
8263
8148
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
8264
8149
|
/**
|
|
8265
8150
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
8266
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
8267
8152
|
*/
|
|
8268
8153
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
8269
8154
|
/**
|
|
8270
8155
|
* Disallow classes that only have static members.
|
|
8271
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
|
|
8272
8157
|
*/
|
|
8273
8158
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
8274
8159
|
/**
|
|
8275
8160
|
* Disallow `then` property.
|
|
8276
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
|
|
8277
8162
|
*/
|
|
8278
8163
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
8279
8164
|
/**
|
|
8280
8165
|
* Disallow assigning `this` to a variable.
|
|
8281
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
|
|
8282
8167
|
*/
|
|
8283
8168
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
8284
8169
|
/**
|
|
8285
8170
|
* Disallow comparing `undefined` using `typeof`.
|
|
8286
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
|
|
8287
8172
|
*/
|
|
8288
8173
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
8289
8174
|
/**
|
|
8290
8175
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
8291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8176
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
8292
8177
|
*/
|
|
8293
8178
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
8294
8179
|
/**
|
|
8295
8180
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
8296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8181
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
8297
8182
|
*/
|
|
8298
8183
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
8299
8184
|
/**
|
|
8300
8185
|
* Disallow awaiting non-promise values.
|
|
8301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
|
|
8302
8187
|
*/
|
|
8303
8188
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
8304
8189
|
/**
|
|
8305
8190
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
8306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8191
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
8307
8192
|
*/
|
|
8308
8193
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
8309
8194
|
/**
|
|
8310
8195
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
8311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
8312
8197
|
*/
|
|
8313
8198
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
8314
8199
|
/**
|
|
8315
8200
|
* Disallow unreadable array destructuring.
|
|
8316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8201
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
8317
8202
|
*/
|
|
8318
8203
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
8319
8204
|
/**
|
|
8320
8205
|
* Disallow unreadable IIFEs.
|
|
8321
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8206
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
|
|
8322
8207
|
*/
|
|
8323
8208
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
8324
8209
|
/**
|
|
8325
8210
|
* Disallow unused object properties.
|
|
8326
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8211
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
|
|
8327
8212
|
*/
|
|
8328
8213
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
8329
8214
|
/**
|
|
8330
8215
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
8331
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
|
|
8332
8217
|
*/
|
|
8333
8218
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
8334
8219
|
/**
|
|
8335
8220
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
8336
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8221
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
8337
8222
|
*/
|
|
8338
8223
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
8339
8224
|
/**
|
|
8340
8225
|
* Disallow useless fallback when spreading in object literals.
|
|
8341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8226
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
8342
8227
|
*/
|
|
8343
8228
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
8229
|
+
/**
|
|
8230
|
+
* Disallow unnecessary `.toArray()` on iterators.
|
|
8231
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
8232
|
+
*/
|
|
8233
|
+
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
8344
8234
|
/**
|
|
8345
8235
|
* Disallow useless array length check.
|
|
8346
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8236
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
|
|
8347
8237
|
*/
|
|
8348
8238
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
8349
8239
|
/**
|
|
8350
8240
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
8351
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8241
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
8352
8242
|
*/
|
|
8353
8243
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
8354
8244
|
/**
|
|
8355
8245
|
* Disallow unnecessary spread.
|
|
8356
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8246
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
|
|
8357
8247
|
*/
|
|
8358
8248
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
8359
8249
|
/**
|
|
8360
8250
|
* Disallow useless case in switch statements.
|
|
8361
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8251
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
|
|
8362
8252
|
*/
|
|
8363
8253
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
8364
8254
|
/**
|
|
8365
8255
|
* Disallow useless `undefined`.
|
|
8366
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8256
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
|
|
8367
8257
|
*/
|
|
8368
8258
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
8369
8259
|
/**
|
|
8370
8260
|
* Disallow number literals with zero fractions or dangling dots.
|
|
8371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8261
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
|
|
8372
8262
|
*/
|
|
8373
8263
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
8374
8264
|
/**
|
|
8375
8265
|
* Enforce proper case for numeric literals.
|
|
8376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8266
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
|
|
8377
8267
|
*/
|
|
8378
8268
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
8379
8269
|
/**
|
|
8380
8270
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
8381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8271
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
|
|
8382
8272
|
*/
|
|
8383
8273
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
8384
8274
|
/**
|
|
8385
8275
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
8386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8276
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
|
|
8387
8277
|
*/
|
|
8388
8278
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
8389
8279
|
/**
|
|
8390
8280
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
8391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8281
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
|
|
8392
8282
|
*/
|
|
8393
8283
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
8394
8284
|
/**
|
|
8395
8285
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
8396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8286
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
|
|
8397
8287
|
*/
|
|
8398
8288
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
8399
8289
|
/**
|
|
8400
8290
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
8401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8291
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
|
|
8402
8292
|
*/
|
|
8403
8293
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
8404
8294
|
/**
|
|
8405
8295
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
8406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8296
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
|
|
8407
8297
|
*/
|
|
8408
8298
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
8409
8299
|
/**
|
|
8410
8300
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
8411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8301
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
|
|
8412
8302
|
*/
|
|
8413
8303
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
8414
8304
|
/**
|
|
8415
8305
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
8416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8306
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
|
|
8417
8307
|
*/
|
|
8418
8308
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
8419
8309
|
/**
|
|
8420
8310
|
* Prefer `BigInt` literals over the constructor.
|
|
8421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8311
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
|
|
8422
8312
|
*/
|
|
8423
8313
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
8424
8314
|
/**
|
|
8425
8315
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
8426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8316
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
8427
8317
|
*/
|
|
8428
8318
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
8429
8319
|
/**
|
|
8430
8320
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
8431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8321
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
|
|
8432
8322
|
*/
|
|
8433
8323
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
8434
8324
|
/**
|
|
8435
8325
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
8436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8326
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
|
|
8437
8327
|
*/
|
|
8438
8328
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
8439
8329
|
/**
|
|
8440
8330
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
8441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8331
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
|
|
8442
8332
|
*/
|
|
8443
8333
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
8444
8334
|
/**
|
|
8445
8335
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
8446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8336
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
|
|
8447
8337
|
*/
|
|
8448
8338
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
8449
8339
|
/**
|
|
8450
8340
|
* Prefer default parameters over reassignment.
|
|
8451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8341
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
|
|
8452
8342
|
*/
|
|
8453
8343
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
8454
8344
|
/**
|
|
8455
8345
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
8456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8346
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
|
|
8457
8347
|
*/
|
|
8458
8348
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
8459
8349
|
/**
|
|
8460
8350
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
8461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8351
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
8462
8352
|
*/
|
|
8463
8353
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
8464
8354
|
/**
|
|
8465
8355
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
8466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8356
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
|
|
8467
8357
|
*/
|
|
8468
8358
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
8469
8359
|
/**
|
|
8470
8360
|
* Prefer `.textContent` over `.innerText`.
|
|
8471
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8361
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
8472
8362
|
*/
|
|
8473
8363
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
8474
8364
|
/**
|
|
8475
8365
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
8476
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8366
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
|
|
8477
8367
|
*/
|
|
8478
8368
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
8479
8369
|
/**
|
|
8480
8370
|
* Prefer `export…from` when re-exporting.
|
|
8481
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8371
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
|
|
8482
8372
|
*/
|
|
8483
8373
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
8484
8374
|
/**
|
|
8485
8375
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
8486
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8376
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
|
|
8487
8377
|
*/
|
|
8488
8378
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
8489
8379
|
/**
|
|
8490
8380
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
8491
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8381
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
|
|
8492
8382
|
*/
|
|
8493
8383
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
8494
8384
|
/**
|
|
8495
8385
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
8496
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8386
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
|
|
8497
8387
|
*/
|
|
8498
8388
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
8499
8389
|
/**
|
|
8500
8390
|
* Prefer reading a JSON file as a buffer.
|
|
8501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8391
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
8502
8392
|
*/
|
|
8503
8393
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
8504
8394
|
/**
|
|
8505
8395
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
8506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8396
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
8507
8397
|
*/
|
|
8508
8398
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
8509
8399
|
/**
|
|
8510
8400
|
* Prefer using a logical operator over a ternary.
|
|
8511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8401
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
8512
8402
|
*/
|
|
8513
8403
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
8514
8404
|
/**
|
|
8515
8405
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
8516
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8406
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
|
|
8517
8407
|
*/
|
|
8518
8408
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
8519
8409
|
/**
|
|
8520
8410
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
8521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8411
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
|
|
8522
8412
|
*/
|
|
8523
8413
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
8524
8414
|
/**
|
|
8525
8415
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
8526
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8416
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
8527
8417
|
*/
|
|
8528
8418
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
8529
8419
|
/**
|
|
8530
8420
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
8531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8421
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
|
|
8532
8422
|
*/
|
|
8533
8423
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
8534
8424
|
/**
|
|
8535
8425
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
8536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8426
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
|
|
8537
8427
|
*/
|
|
8538
8428
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
8539
8429
|
/**
|
|
8540
8430
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
8541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8431
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
8542
8432
|
*/
|
|
8543
8433
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
8544
8434
|
/**
|
|
8545
8435
|
* Prefer negative index over `.length - index` when possible.
|
|
8546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8436
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
|
|
8547
8437
|
*/
|
|
8548
8438
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
8549
8439
|
/**
|
|
8550
8440
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
8551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8441
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
|
|
8552
8442
|
*/
|
|
8553
8443
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
8554
8444
|
/**
|
|
8555
8445
|
* Prefer `Number` static properties over global ones.
|
|
8556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8446
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
|
|
8557
8447
|
*/
|
|
8558
8448
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
8559
8449
|
/**
|
|
8560
8450
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
8561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8451
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
|
|
8562
8452
|
*/
|
|
8563
8453
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
8564
8454
|
/**
|
|
8565
8455
|
* Prefer omitting the `catch` binding parameter.
|
|
8566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8456
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
8567
8457
|
*/
|
|
8568
8458
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
8569
8459
|
/**
|
|
8570
8460
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
8571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8461
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
|
|
8572
8462
|
*/
|
|
8573
8463
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
8574
8464
|
/**
|
|
8575
8465
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
8576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8466
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
|
|
8577
8467
|
*/
|
|
8578
8468
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
8579
8469
|
/**
|
|
8580
8470
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
8581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8471
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
|
|
8582
8472
|
*/
|
|
8583
8473
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
8584
8474
|
/**
|
|
8585
8475
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
8586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8476
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
|
|
8587
8477
|
*/
|
|
8588
8478
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
8589
8479
|
/**
|
|
8590
8480
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
8591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8481
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
|
|
8592
8482
|
*/
|
|
8593
8483
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
8594
8484
|
/**
|
|
8595
8485
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
8596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8486
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
|
|
8597
8487
|
*/
|
|
8598
8488
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
8599
8489
|
/**
|
|
8600
8490
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
8601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8491
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
|
|
8602
8492
|
*/
|
|
8603
8493
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
8494
|
+
/**
|
|
8495
|
+
* Prefer simple conditions first in logical expressions.
|
|
8496
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
|
|
8497
|
+
*/
|
|
8498
|
+
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
8604
8499
|
/**
|
|
8605
8500
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
8606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8501
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
|
|
8607
8502
|
*/
|
|
8608
8503
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
8609
8504
|
/**
|
|
8610
8505
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
8611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8506
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
|
|
8612
8507
|
*/
|
|
8613
8508
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
8614
8509
|
/**
|
|
8615
8510
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
8616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8511
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
|
|
8617
8512
|
*/
|
|
8618
8513
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
8619
8514
|
/**
|
|
8620
8515
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
8621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8516
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
|
|
8622
8517
|
*/
|
|
8623
8518
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
8624
8519
|
/**
|
|
8625
8520
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
8626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8521
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
|
|
8627
8522
|
*/
|
|
8628
8523
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
8629
8524
|
/**
|
|
8630
8525
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
8631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8526
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
8632
8527
|
*/
|
|
8633
8528
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
8634
8529
|
/**
|
|
8635
8530
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
8636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8531
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
8637
8532
|
*/
|
|
8638
8533
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
8639
8534
|
/**
|
|
8640
8535
|
* Prefer using `structuredClone` to create a deep clone.
|
|
8641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
|
|
8642
8537
|
*/
|
|
8643
8538
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
8644
8539
|
/**
|
|
8645
8540
|
* Prefer `switch` over multiple `else-if`.
|
|
8646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8541
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
|
|
8647
8542
|
*/
|
|
8648
8543
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
8649
8544
|
/**
|
|
8650
8545
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
8651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8546
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
|
|
8652
8547
|
*/
|
|
8653
8548
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
8654
8549
|
/**
|
|
8655
8550
|
* Prefer top-level await over top-level promises and async function calls.
|
|
8656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
|
|
8657
8552
|
*/
|
|
8658
8553
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
8659
8554
|
/**
|
|
8660
8555
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
8661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8556
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
|
|
8662
8557
|
*/
|
|
8663
8558
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
8664
8559
|
/**
|
|
8665
8560
|
* Prevent abbreviations.
|
|
8666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8561
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
|
|
8667
8562
|
*/
|
|
8668
8563
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
8669
8564
|
/**
|
|
8670
8565
|
* Enforce consistent relative URL style.
|
|
8671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8566
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
|
|
8672
8567
|
*/
|
|
8673
8568
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
8674
8569
|
/**
|
|
8675
8570
|
* Enforce using the separator argument with `Array#join()`.
|
|
8676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8571
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
|
|
8677
8572
|
*/
|
|
8678
8573
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
8679
8574
|
/**
|
|
8680
8575
|
* Require non-empty module attributes for imports and exports
|
|
8681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
|
|
8682
8577
|
*/
|
|
8683
8578
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
8684
8579
|
/**
|
|
8685
8580
|
* Require non-empty specifier list in import and export statements.
|
|
8686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
|
|
8687
8582
|
*/
|
|
8688
8583
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
8689
8584
|
/**
|
|
8690
8585
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
8691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
8692
8587
|
*/
|
|
8693
8588
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
8694
8589
|
/**
|
|
8695
8590
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
8696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
|
|
8697
8592
|
*/
|
|
8698
8593
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
8699
8594
|
/**
|
|
8700
8595
|
* Enforce better string content.
|
|
8701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
|
|
8702
8597
|
*/
|
|
8703
8598
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
8704
8599
|
/**
|
|
8705
8600
|
* Enforce consistent brace style for `case` clauses.
|
|
8706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
|
|
8707
8602
|
*/
|
|
8708
8603
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
8604
|
+
/**
|
|
8605
|
+
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
8606
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
|
|
8607
|
+
*/
|
|
8608
|
+
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
8709
8609
|
/**
|
|
8710
8610
|
* Fix whitespace-insensitive template indentation.
|
|
8711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
|
|
8712
8612
|
*/
|
|
8713
8613
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
8714
8614
|
/**
|
|
8715
8615
|
* Enforce consistent case for text encoding identifiers.
|
|
8716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
|
|
8717
8617
|
*/
|
|
8718
8618
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
8719
8619
|
/**
|
|
8720
8620
|
* Require `new` when creating an error.
|
|
8721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
|
|
8722
8622
|
*/
|
|
8723
8623
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
8724
8624
|
/**
|
|
@@ -12044,13 +11944,15 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
12044
11944
|
}] | ["never"]) & unknown[]); // ----- markdown/fenced-code-language -----
|
|
12045
11945
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
12046
11946
|
required?: string[];
|
|
12047
|
-
}]; // ----- markdown/
|
|
11947
|
+
}]; // ----- markdown/fenced-code-meta -----
|
|
11948
|
+
type MarkdownFencedCodeMeta = [] | [("always" | "never")]; // ----- markdown/heading-increment -----
|
|
12048
11949
|
type MarkdownHeadingIncrement = [] | [{
|
|
12049
11950
|
frontmatterTitle?: string;
|
|
12050
11951
|
}]; // ----- markdown/no-duplicate-definitions -----
|
|
12051
11952
|
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
12052
11953
|
allowDefinitions?: string[];
|
|
12053
11954
|
allowFootnoteDefinitions?: string[];
|
|
11955
|
+
checkFootnoteDefinitions?: boolean;
|
|
12054
11956
|
}]; // ----- markdown/no-duplicate-headings -----
|
|
12055
11957
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
12056
11958
|
checkSiblingsOnly?: boolean;
|
|
@@ -12083,6 +11985,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
|
|
|
12083
11985
|
type MarkdownNoUnusedDefinitions = [] | [{
|
|
12084
11986
|
allowDefinitions?: string[];
|
|
12085
11987
|
allowFootnoteDefinitions?: string[];
|
|
11988
|
+
checkFootnoteDefinitions?: boolean;
|
|
12086
11989
|
}]; // ----- markdown/table-column-count -----
|
|
12087
11990
|
type MarkdownTableColumnCount = [] | [{
|
|
12088
11991
|
checkMissingCells?: boolean;
|
|
@@ -12936,6 +12839,113 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12936
12839
|
pattern: string;
|
|
12937
12840
|
flags?: string;
|
|
12938
12841
|
} | string));
|
|
12842
|
+
matchesAstSelector?: string;
|
|
12843
|
+
};
|
|
12844
|
+
partitionByComment?: (boolean | (({
|
|
12845
|
+
pattern: string;
|
|
12846
|
+
flags?: string;
|
|
12847
|
+
} | string)[] | ({
|
|
12848
|
+
pattern: string;
|
|
12849
|
+
flags?: string;
|
|
12850
|
+
} | string)) | {
|
|
12851
|
+
block?: (boolean | (({
|
|
12852
|
+
pattern: string;
|
|
12853
|
+
flags?: string;
|
|
12854
|
+
} | string)[] | ({
|
|
12855
|
+
pattern: string;
|
|
12856
|
+
flags?: string;
|
|
12857
|
+
} | string)));
|
|
12858
|
+
line?: (boolean | (({
|
|
12859
|
+
pattern: string;
|
|
12860
|
+
flags?: string;
|
|
12861
|
+
} | string)[] | ({
|
|
12862
|
+
pattern: string;
|
|
12863
|
+
flags?: string;
|
|
12864
|
+
} | string)));
|
|
12865
|
+
});
|
|
12866
|
+
partitionByNewLine?: boolean;
|
|
12867
|
+
}[]; // ----- perfectionist/sort-arrays -----
|
|
12868
|
+
type PerfectionistSortArrays = {
|
|
12869
|
+
fallbackSort?: {
|
|
12870
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12871
|
+
order?: ("asc" | "desc");
|
|
12872
|
+
};
|
|
12873
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12874
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12875
|
+
ignoreCase?: boolean;
|
|
12876
|
+
alphabet?: string;
|
|
12877
|
+
locales?: (string | string[]);
|
|
12878
|
+
order?: ("asc" | "desc");
|
|
12879
|
+
customGroups?: ({
|
|
12880
|
+
fallbackSort?: {
|
|
12881
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12882
|
+
order?: ("asc" | "desc");
|
|
12883
|
+
};
|
|
12884
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12885
|
+
groupName: string;
|
|
12886
|
+
newlinesInside?: ("ignore" | number);
|
|
12887
|
+
order?: ("asc" | "desc");
|
|
12888
|
+
anyOf: [{
|
|
12889
|
+
elementNamePattern?: (({
|
|
12890
|
+
pattern: string;
|
|
12891
|
+
flags?: string;
|
|
12892
|
+
} | string)[] | ({
|
|
12893
|
+
pattern: string;
|
|
12894
|
+
flags?: string;
|
|
12895
|
+
} | string));
|
|
12896
|
+
selector?: "literal";
|
|
12897
|
+
}, ...({
|
|
12898
|
+
elementNamePattern?: (({
|
|
12899
|
+
pattern: string;
|
|
12900
|
+
flags?: string;
|
|
12901
|
+
} | string)[] | ({
|
|
12902
|
+
pattern: string;
|
|
12903
|
+
flags?: string;
|
|
12904
|
+
} | string));
|
|
12905
|
+
selector?: "literal";
|
|
12906
|
+
})[]];
|
|
12907
|
+
} | {
|
|
12908
|
+
fallbackSort?: {
|
|
12909
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12910
|
+
order?: ("asc" | "desc");
|
|
12911
|
+
};
|
|
12912
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12913
|
+
groupName: string;
|
|
12914
|
+
newlinesInside?: ("ignore" | number);
|
|
12915
|
+
order?: ("asc" | "desc");
|
|
12916
|
+
elementNamePattern?: (({
|
|
12917
|
+
pattern: string;
|
|
12918
|
+
flags?: string;
|
|
12919
|
+
} | string)[] | ({
|
|
12920
|
+
pattern: string;
|
|
12921
|
+
flags?: string;
|
|
12922
|
+
} | string));
|
|
12923
|
+
selector?: "literal";
|
|
12924
|
+
})[];
|
|
12925
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12926
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12927
|
+
newlinesBetween: ("ignore" | number);
|
|
12928
|
+
} | {
|
|
12929
|
+
group: (string | [string, ...(string)[]]);
|
|
12930
|
+
fallbackSort?: {
|
|
12931
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12932
|
+
order?: ("asc" | "desc");
|
|
12933
|
+
};
|
|
12934
|
+
commentAbove?: string;
|
|
12935
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12936
|
+
newlinesInside?: ("ignore" | number);
|
|
12937
|
+
order?: ("asc" | "desc");
|
|
12938
|
+
})[];
|
|
12939
|
+
newlinesBetween?: ("ignore" | number);
|
|
12940
|
+
useConfigurationIf: {
|
|
12941
|
+
allNamesMatchPattern?: (({
|
|
12942
|
+
pattern: string;
|
|
12943
|
+
flags?: string;
|
|
12944
|
+
} | string)[] | ({
|
|
12945
|
+
pattern: string;
|
|
12946
|
+
flags?: string;
|
|
12947
|
+
} | string));
|
|
12948
|
+
matchesAstSelector?: string;
|
|
12939
12949
|
};
|
|
12940
12950
|
partitionByComment?: (boolean | (({
|
|
12941
12951
|
pattern: string;
|
|
@@ -12961,7 +12971,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12961
12971
|
});
|
|
12962
12972
|
partitionByNewLine?: boolean;
|
|
12963
12973
|
}[]; // ----- perfectionist/sort-classes -----
|
|
12964
|
-
type PerfectionistSortClasses =
|
|
12974
|
+
type PerfectionistSortClasses = {
|
|
12965
12975
|
fallbackSort?: {
|
|
12966
12976
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12967
12977
|
order?: ("asc" | "desc");
|
|
@@ -13078,6 +13088,16 @@ type PerfectionistSortClasses = [] | [{
|
|
|
13078
13088
|
order?: ("asc" | "desc");
|
|
13079
13089
|
})[];
|
|
13080
13090
|
newlinesBetween?: ("ignore" | number);
|
|
13091
|
+
useConfigurationIf?: {
|
|
13092
|
+
allNamesMatchPattern?: (({
|
|
13093
|
+
pattern: string;
|
|
13094
|
+
flags?: string;
|
|
13095
|
+
} | string)[] | ({
|
|
13096
|
+
pattern: string;
|
|
13097
|
+
flags?: string;
|
|
13098
|
+
} | string));
|
|
13099
|
+
matchesAstSelector?: string;
|
|
13100
|
+
};
|
|
13081
13101
|
useExperimentalDependencyDetection?: boolean;
|
|
13082
13102
|
ignoreCallbackDependenciesPatterns?: (({
|
|
13083
13103
|
pattern: string;
|
|
@@ -13109,7 +13129,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
13109
13129
|
} | string)));
|
|
13110
13130
|
});
|
|
13111
13131
|
partitionByNewLine?: boolean;
|
|
13112
|
-
}]; // ----- perfectionist/sort-decorators -----
|
|
13132
|
+
}[]; // ----- perfectionist/sort-decorators -----
|
|
13113
13133
|
type PerfectionistSortDecorators = {
|
|
13114
13134
|
fallbackSort?: {
|
|
13115
13135
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -13208,7 +13228,7 @@ type PerfectionistSortDecorators = {
|
|
|
13208
13228
|
});
|
|
13209
13229
|
partitionByNewLine?: boolean;
|
|
13210
13230
|
}[]; // ----- perfectionist/sort-enums -----
|
|
13211
|
-
type PerfectionistSortEnums =
|
|
13231
|
+
type PerfectionistSortEnums = {
|
|
13212
13232
|
fallbackSort?: {
|
|
13213
13233
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
13214
13234
|
order?: ("asc" | "desc");
|
|
@@ -13298,6 +13318,16 @@ type PerfectionistSortEnums = [] | [{
|
|
|
13298
13318
|
order?: ("asc" | "desc");
|
|
13299
13319
|
})[];
|
|
13300
13320
|
newlinesBetween?: ("ignore" | number);
|
|
13321
|
+
useConfigurationIf?: {
|
|
13322
|
+
allNamesMatchPattern?: (({
|
|
13323
|
+
pattern: string;
|
|
13324
|
+
flags?: string;
|
|
13325
|
+
} | string)[] | ({
|
|
13326
|
+
pattern: string;
|
|
13327
|
+
flags?: string;
|
|
13328
|
+
} | string));
|
|
13329
|
+
matchesAstSelector?: string;
|
|
13330
|
+
};
|
|
13301
13331
|
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
13302
13332
|
useExperimentalDependencyDetection?: boolean;
|
|
13303
13333
|
partitionByComment?: (boolean | (({
|
|
@@ -13323,7 +13353,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
13323
13353
|
} | string)));
|
|
13324
13354
|
});
|
|
13325
13355
|
partitionByNewLine?: boolean;
|
|
13326
|
-
}]; // ----- perfectionist/sort-export-attributes -----
|
|
13356
|
+
}[]; // ----- perfectionist/sort-export-attributes -----
|
|
13327
13357
|
type PerfectionistSortExportAttributes = {
|
|
13328
13358
|
fallbackSort?: {
|
|
13329
13359
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -13393,6 +13423,16 @@ type PerfectionistSortExportAttributes = {
|
|
|
13393
13423
|
order?: ("asc" | "desc");
|
|
13394
13424
|
})[];
|
|
13395
13425
|
newlinesBetween?: ("ignore" | number);
|
|
13426
|
+
useConfigurationIf?: {
|
|
13427
|
+
allNamesMatchPattern?: (({
|
|
13428
|
+
pattern: string;
|
|
13429
|
+
flags?: string;
|
|
13430
|
+
} | string)[] | ({
|
|
13431
|
+
pattern: string;
|
|
13432
|
+
flags?: string;
|
|
13433
|
+
} | string));
|
|
13434
|
+
matchesAstSelector?: string;
|
|
13435
|
+
};
|
|
13396
13436
|
partitionByComment?: (boolean | (({
|
|
13397
13437
|
pattern: string;
|
|
13398
13438
|
flags?: string;
|
|
@@ -13585,6 +13625,16 @@ type PerfectionistSortHeritageClauses = {
|
|
|
13585
13625
|
order?: ("asc" | "desc");
|
|
13586
13626
|
})[];
|
|
13587
13627
|
newlinesBetween?: ("ignore" | number);
|
|
13628
|
+
useConfigurationIf?: {
|
|
13629
|
+
allNamesMatchPattern?: (({
|
|
13630
|
+
pattern: string;
|
|
13631
|
+
flags?: string;
|
|
13632
|
+
} | string)[] | ({
|
|
13633
|
+
pattern: string;
|
|
13634
|
+
flags?: string;
|
|
13635
|
+
} | string));
|
|
13636
|
+
matchesAstSelector?: string;
|
|
13637
|
+
};
|
|
13588
13638
|
partitionByNewLine?: boolean;
|
|
13589
13639
|
partitionByComment?: (boolean | (({
|
|
13590
13640
|
pattern: string;
|
|
@@ -13678,6 +13728,16 @@ type PerfectionistSortImportAttributes = {
|
|
|
13678
13728
|
order?: ("asc" | "desc");
|
|
13679
13729
|
})[];
|
|
13680
13730
|
newlinesBetween?: ("ignore" | number);
|
|
13731
|
+
useConfigurationIf?: {
|
|
13732
|
+
allNamesMatchPattern?: (({
|
|
13733
|
+
pattern: string;
|
|
13734
|
+
flags?: string;
|
|
13735
|
+
} | string)[] | ({
|
|
13736
|
+
pattern: string;
|
|
13737
|
+
flags?: string;
|
|
13738
|
+
} | string));
|
|
13739
|
+
matchesAstSelector?: string;
|
|
13740
|
+
};
|
|
13681
13741
|
partitionByComment?: (boolean | (({
|
|
13682
13742
|
pattern: string;
|
|
13683
13743
|
flags?: string;
|
|
@@ -13946,6 +14006,7 @@ type PerfectionistSortInterfaces = {
|
|
|
13946
14006
|
pattern: string;
|
|
13947
14007
|
flags?: string;
|
|
13948
14008
|
} | string));
|
|
14009
|
+
matchesAstSelector?: string;
|
|
13949
14010
|
declarationMatchesPattern?: (({
|
|
13950
14011
|
scope?: ("shallow" | "deep");
|
|
13951
14012
|
pattern: string;
|
|
@@ -14052,6 +14113,16 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
14052
14113
|
order?: ("asc" | "desc");
|
|
14053
14114
|
})[];
|
|
14054
14115
|
newlinesBetween?: ("ignore" | number);
|
|
14116
|
+
useConfigurationIf?: {
|
|
14117
|
+
allNamesMatchPattern?: (({
|
|
14118
|
+
pattern: string;
|
|
14119
|
+
flags?: string;
|
|
14120
|
+
} | string)[] | ({
|
|
14121
|
+
pattern: string;
|
|
14122
|
+
flags?: string;
|
|
14123
|
+
} | string));
|
|
14124
|
+
matchesAstSelector?: string;
|
|
14125
|
+
};
|
|
14055
14126
|
partitionByComment?: (boolean | (({
|
|
14056
14127
|
pattern: string;
|
|
14057
14128
|
flags?: string;
|
|
@@ -14180,6 +14251,7 @@ type PerfectionistSortJsxProps = {
|
|
|
14180
14251
|
pattern: string;
|
|
14181
14252
|
flags?: string;
|
|
14182
14253
|
} | string));
|
|
14254
|
+
matchesAstSelector?: string;
|
|
14183
14255
|
tagMatchesPattern?: (({
|
|
14184
14256
|
pattern: string;
|
|
14185
14257
|
flags?: string;
|
|
@@ -14267,6 +14339,7 @@ type PerfectionistSortMaps = {
|
|
|
14267
14339
|
pattern: string;
|
|
14268
14340
|
flags?: string;
|
|
14269
14341
|
} | string));
|
|
14342
|
+
matchesAstSelector?: string;
|
|
14270
14343
|
};
|
|
14271
14344
|
partitionByComment?: (boolean | (({
|
|
14272
14345
|
pattern: string;
|
|
@@ -14488,6 +14561,16 @@ type PerfectionistSortNamedExports = {
|
|
|
14488
14561
|
order?: ("asc" | "desc");
|
|
14489
14562
|
})[];
|
|
14490
14563
|
newlinesBetween?: ("ignore" | number);
|
|
14564
|
+
useConfigurationIf?: {
|
|
14565
|
+
allNamesMatchPattern?: (({
|
|
14566
|
+
pattern: string;
|
|
14567
|
+
flags?: string;
|
|
14568
|
+
} | string)[] | ({
|
|
14569
|
+
pattern: string;
|
|
14570
|
+
flags?: string;
|
|
14571
|
+
} | string));
|
|
14572
|
+
matchesAstSelector?: string;
|
|
14573
|
+
};
|
|
14491
14574
|
ignoreAlias?: boolean;
|
|
14492
14575
|
partitionByComment?: (boolean | (({
|
|
14493
14576
|
pattern: string;
|
|
@@ -14588,6 +14671,16 @@ type PerfectionistSortNamedImports = {
|
|
|
14588
14671
|
order?: ("asc" | "desc");
|
|
14589
14672
|
})[];
|
|
14590
14673
|
newlinesBetween?: ("ignore" | number);
|
|
14674
|
+
useConfigurationIf?: {
|
|
14675
|
+
allNamesMatchPattern?: (({
|
|
14676
|
+
pattern: string;
|
|
14677
|
+
flags?: string;
|
|
14678
|
+
} | string)[] | ({
|
|
14679
|
+
pattern: string;
|
|
14680
|
+
flags?: string;
|
|
14681
|
+
} | string));
|
|
14682
|
+
matchesAstSelector?: string;
|
|
14683
|
+
};
|
|
14591
14684
|
ignoreAlias?: boolean;
|
|
14592
14685
|
partitionByComment?: (boolean | (({
|
|
14593
14686
|
pattern: string;
|
|
@@ -14735,6 +14828,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
14735
14828
|
pattern: string;
|
|
14736
14829
|
flags?: string;
|
|
14737
14830
|
} | string));
|
|
14831
|
+
matchesAstSelector?: string;
|
|
14738
14832
|
declarationMatchesPattern?: (({
|
|
14739
14833
|
scope?: ("shallow" | "deep");
|
|
14740
14834
|
pattern: string;
|
|
@@ -14901,6 +14995,7 @@ type PerfectionistSortObjects = {
|
|
|
14901
14995
|
pattern: string;
|
|
14902
14996
|
flags?: string;
|
|
14903
14997
|
} | string));
|
|
14998
|
+
matchesAstSelector?: string;
|
|
14904
14999
|
declarationMatchesPattern?: (({
|
|
14905
15000
|
scope?: ("shallow" | "deep");
|
|
14906
15001
|
pattern: string;
|
|
@@ -14911,6 +15006,7 @@ type PerfectionistSortObjects = {
|
|
|
14911
15006
|
flags?: string;
|
|
14912
15007
|
} | string));
|
|
14913
15008
|
};
|
|
15009
|
+
partitionByComputedKey?: boolean;
|
|
14914
15010
|
styledComponents?: boolean;
|
|
14915
15011
|
useExperimentalDependencyDetection?: boolean;
|
|
14916
15012
|
partitionByComment?: (boolean | (({
|
|
@@ -15017,6 +15113,7 @@ type PerfectionistSortSets = {
|
|
|
15017
15113
|
pattern: string;
|
|
15018
15114
|
flags?: string;
|
|
15019
15115
|
} | string));
|
|
15116
|
+
matchesAstSelector?: string;
|
|
15020
15117
|
};
|
|
15021
15118
|
partitionByComment?: (boolean | (({
|
|
15022
15119
|
pattern: string;
|
|
@@ -15126,6 +15223,16 @@ type PerfectionistSortUnionTypes = {
|
|
|
15126
15223
|
order?: ("asc" | "desc");
|
|
15127
15224
|
})[];
|
|
15128
15225
|
newlinesBetween?: ("ignore" | number);
|
|
15226
|
+
useConfigurationIf?: {
|
|
15227
|
+
allNamesMatchPattern?: (({
|
|
15228
|
+
pattern: string;
|
|
15229
|
+
flags?: string;
|
|
15230
|
+
} | string)[] | ({
|
|
15231
|
+
pattern: string;
|
|
15232
|
+
flags?: string;
|
|
15233
|
+
} | string));
|
|
15234
|
+
matchesAstSelector?: string;
|
|
15235
|
+
};
|
|
15129
15236
|
partitionByComment?: (boolean | (({
|
|
15130
15237
|
pattern: string;
|
|
15131
15238
|
flags?: string;
|
|
@@ -15150,7 +15257,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
15150
15257
|
});
|
|
15151
15258
|
partitionByNewLine?: boolean;
|
|
15152
15259
|
}[]; // ----- perfectionist/sort-variable-declarations -----
|
|
15153
|
-
type PerfectionistSortVariableDeclarations =
|
|
15260
|
+
type PerfectionistSortVariableDeclarations = {
|
|
15154
15261
|
fallbackSort?: {
|
|
15155
15262
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
15156
15263
|
order?: ("asc" | "desc");
|
|
@@ -15222,6 +15329,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
15222
15329
|
order?: ("asc" | "desc");
|
|
15223
15330
|
})[];
|
|
15224
15331
|
newlinesBetween?: ("ignore" | number);
|
|
15332
|
+
useConfigurationIf?: {
|
|
15333
|
+
allNamesMatchPattern?: (({
|
|
15334
|
+
pattern: string;
|
|
15335
|
+
flags?: string;
|
|
15336
|
+
} | string)[] | ({
|
|
15337
|
+
pattern: string;
|
|
15338
|
+
flags?: string;
|
|
15339
|
+
} | string));
|
|
15340
|
+
matchesAstSelector?: string;
|
|
15341
|
+
};
|
|
15225
15342
|
useExperimentalDependencyDetection?: boolean;
|
|
15226
15343
|
partitionByComment?: (boolean | (({
|
|
15227
15344
|
pattern: string;
|
|
@@ -15246,7 +15363,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
15246
15363
|
} | string)));
|
|
15247
15364
|
});
|
|
15248
15365
|
partitionByNewLine?: boolean;
|
|
15249
|
-
}]; // ----- pnpm/json-enforce-catalog -----
|
|
15366
|
+
}[]; // ----- pnpm/json-enforce-catalog -----
|
|
15250
15367
|
type PnpmJsonEnforceCatalog = [] | [{
|
|
15251
15368
|
allowedProtocols?: string[];
|
|
15252
15369
|
autofix?: boolean;
|
|
@@ -15338,139 +15455,35 @@ type Radix = [] | [("always" | "as-needed")]; // ----- react-dom/no-unknown-prop
|
|
|
15338
15455
|
type ReactDomNoUnknownProperty = [] | [{
|
|
15339
15456
|
ignore?: string[];
|
|
15340
15457
|
requireDataLowercase?: boolean;
|
|
15341
|
-
}]; // ----- react-hooks/automatic-effect-dependencies -----
|
|
15342
|
-
type ReactHooksAutomaticEffectDependencies = [] | [{
|
|
15343
|
-
[k: string]: unknown | undefined;
|
|
15344
|
-
}]; // ----- react-hooks/capitalized-calls -----
|
|
15345
|
-
type ReactHooksCapitalizedCalls = [] | [{
|
|
15346
|
-
[k: string]: unknown | undefined;
|
|
15347
|
-
}]; // ----- react-hooks/component-hook-factories -----
|
|
15348
|
-
type ReactHooksComponentHookFactories = [] | [{
|
|
15349
|
-
[k: string]: unknown | undefined;
|
|
15350
|
-
}]; // ----- react-hooks/config -----
|
|
15351
|
-
type ReactHooksConfig = [] | [{
|
|
15352
|
-
[k: string]: unknown | undefined;
|
|
15353
|
-
}]; // ----- react-hooks/error-boundaries -----
|
|
15354
|
-
type ReactHooksErrorBoundaries = [] | [{
|
|
15355
|
-
[k: string]: unknown | undefined;
|
|
15356
|
-
}]; // ----- react-hooks/exhaustive-deps -----
|
|
15357
|
-
type ReactHooksExhaustiveDeps = [] | [{
|
|
15358
|
-
additionalHooks?: string;
|
|
15359
|
-
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
|
|
15360
|
-
experimental_autoDependenciesHooks?: string[];
|
|
15361
|
-
requireExplicitEffectDeps?: boolean;
|
|
15362
|
-
}]; // ----- react-hooks/fbt -----
|
|
15363
|
-
type ReactHooksFbt = [] | [{
|
|
15364
|
-
[k: string]: unknown | undefined;
|
|
15365
|
-
}]; // ----- react-hooks/fire -----
|
|
15366
|
-
type ReactHooksFire = [] | [{
|
|
15367
|
-
[k: string]: unknown | undefined;
|
|
15368
|
-
}]; // ----- react-hooks/gating -----
|
|
15369
|
-
type ReactHooksGating = [] | [{
|
|
15370
|
-
[k: string]: unknown | undefined;
|
|
15371
|
-
}]; // ----- react-hooks/globals -----
|
|
15372
|
-
type ReactHooksGlobals = [] | [{
|
|
15373
|
-
[k: string]: unknown | undefined;
|
|
15374
|
-
}]; // ----- react-hooks/hooks -----
|
|
15375
|
-
type ReactHooksHooks = [] | [{
|
|
15376
|
-
[k: string]: unknown | undefined;
|
|
15377
|
-
}]; // ----- react-hooks/immutability -----
|
|
15378
|
-
type ReactHooksImmutability = [] | [{
|
|
15379
|
-
[k: string]: unknown | undefined;
|
|
15380
|
-
}]; // ----- react-hooks/incompatible-library -----
|
|
15381
|
-
type ReactHooksIncompatibleLibrary = [] | [{
|
|
15382
|
-
[k: string]: unknown | undefined;
|
|
15383
|
-
}]; // ----- react-hooks/invariant -----
|
|
15384
|
-
type ReactHooksInvariant = [] | [{
|
|
15385
|
-
[k: string]: unknown | undefined;
|
|
15386
|
-
}]; // ----- react-hooks/memoized-effect-dependencies -----
|
|
15387
|
-
type ReactHooksMemoizedEffectDependencies = [] | [{
|
|
15388
|
-
[k: string]: unknown | undefined;
|
|
15389
|
-
}]; // ----- react-hooks/no-deriving-state-in-effects -----
|
|
15390
|
-
type ReactHooksNoDerivingStateInEffects = [] | [{
|
|
15391
|
-
[k: string]: unknown | undefined;
|
|
15392
|
-
}]; // ----- react-hooks/preserve-manual-memoization -----
|
|
15393
|
-
type ReactHooksPreserveManualMemoization = [] | [{
|
|
15394
|
-
[k: string]: unknown | undefined;
|
|
15395
|
-
}]; // ----- react-hooks/purity -----
|
|
15396
|
-
type ReactHooksPurity = [] | [{
|
|
15397
|
-
[k: string]: unknown | undefined;
|
|
15398
|
-
}]; // ----- react-hooks/refs -----
|
|
15399
|
-
type ReactHooksRefs = [] | [{
|
|
15400
|
-
[k: string]: unknown | undefined;
|
|
15401
|
-
}]; // ----- react-hooks/rule-suppression -----
|
|
15402
|
-
type ReactHooksRuleSuppression = [] | [{
|
|
15403
|
-
[k: string]: unknown | undefined;
|
|
15404
|
-
}]; // ----- react-hooks/rules-of-hooks -----
|
|
15405
|
-
type ReactHooksRulesOfHooks = [] | [{
|
|
15406
|
-
additionalHooks?: string;
|
|
15407
|
-
}]; // ----- react-hooks/set-state-in-effect -----
|
|
15408
|
-
type ReactHooksSetStateInEffect = [] | [{
|
|
15409
|
-
[k: string]: unknown | undefined;
|
|
15410
|
-
}]; // ----- react-hooks/set-state-in-render -----
|
|
15411
|
-
type ReactHooksSetStateInRender = [] | [{
|
|
15412
|
-
[k: string]: unknown | undefined;
|
|
15413
|
-
}]; // ----- react-hooks/static-components -----
|
|
15414
|
-
type ReactHooksStaticComponents = [] | [{
|
|
15415
|
-
[k: string]: unknown | undefined;
|
|
15416
|
-
}]; // ----- react-hooks/syntax -----
|
|
15417
|
-
type ReactHooksSyntax = [] | [{
|
|
15418
|
-
[k: string]: unknown | undefined;
|
|
15419
|
-
}]; // ----- react-hooks/todo -----
|
|
15420
|
-
type ReactHooksTodo = [] | [{
|
|
15421
|
-
[k: string]: unknown | undefined;
|
|
15422
|
-
}]; // ----- react-hooks/unsupported-syntax -----
|
|
15423
|
-
type ReactHooksUnsupportedSyntax = [] | [{
|
|
15424
|
-
[k: string]: unknown | undefined;
|
|
15425
|
-
}]; // ----- react-hooks/use-memo -----
|
|
15426
|
-
type ReactHooksUseMemo = [] | [{
|
|
15427
|
-
[k: string]: unknown | undefined;
|
|
15428
|
-
}]; // ----- react-hooks/void-use-memo -----
|
|
15429
|
-
type ReactHooksVoidUseMemo = [] | [{
|
|
15430
|
-
[k: string]: unknown | undefined;
|
|
15431
|
-
}]; // ----- react-naming-convention/component-name -----
|
|
15432
|
-
type ReactNamingConventionComponentName = [] | [(("PascalCase" | "CONSTANT_CASE") | {
|
|
15433
|
-
allowAllCaps?: boolean;
|
|
15434
|
-
excepts?: string[];
|
|
15435
|
-
rule?: ("PascalCase" | "CONSTANT_CASE");
|
|
15436
|
-
})]; // ----- react-naming-convention/filename -----
|
|
15437
|
-
type ReactNamingConventionFilename = [] | [(("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
15438
|
-
excepts?: string[];
|
|
15439
|
-
extensions?: string[];
|
|
15440
|
-
rule?: ("PascalCase" | "camelCase" | "kebab-case" | "snake_case");
|
|
15441
|
-
})]; // ----- react-naming-convention/filename-extension -----
|
|
15442
|
-
type ReactNamingConventionFilenameExtension = [] | [(("always" | "as-needed") | {
|
|
15443
|
-
allow?: ("always" | "as-needed");
|
|
15444
|
-
extensions?: string[];
|
|
15445
|
-
ignoreFilesWithoutCode?: boolean;
|
|
15446
|
-
})]; // ----- react-naming-convention/use-state -----
|
|
15447
|
-
type ReactNamingConventionUseState = [] | [{
|
|
15448
|
-
enforceAssignment?: boolean;
|
|
15449
|
-
enforceSetterName?: boolean;
|
|
15450
15458
|
}]; // ----- react-refresh/only-export-components -----
|
|
15451
15459
|
type ReactRefreshOnlyExportComponents = [] | [{
|
|
15452
15460
|
extraHOCs?: string[];
|
|
15453
15461
|
allowExportNames?: string[];
|
|
15454
15462
|
allowConstantExport?: boolean;
|
|
15455
15463
|
checkJS?: boolean;
|
|
15464
|
+
}]; // ----- react/exhaustive-deps -----
|
|
15465
|
+
type ReactExhaustiveDeps = [] | [{
|
|
15466
|
+
additionalHooks?: string;
|
|
15467
|
+
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
|
|
15468
|
+
experimental_autoDependenciesHooks?: string[];
|
|
15469
|
+
requireExplicitEffectDeps?: boolean;
|
|
15456
15470
|
}]; // ----- react/jsx-shorthand-boolean -----
|
|
15457
15471
|
type ReactJsxShorthandBoolean = [] | [(-1 | 1)]; // ----- react/jsx-shorthand-fragment -----
|
|
15458
|
-
type ReactJsxShorthandFragment = [] | [(-1 | 1)]; // ----- react/no-
|
|
15459
|
-
type ReactNoForbiddenProps = [] | [{
|
|
15460
|
-
forbid?: (string | {
|
|
15461
|
-
excludedNodes?: string[];
|
|
15462
|
-
prop: string;
|
|
15463
|
-
} | {
|
|
15464
|
-
includedNodes?: string[];
|
|
15465
|
-
prop: string;
|
|
15466
|
-
})[];
|
|
15467
|
-
}]; // ----- react/no-unstable-default-props -----
|
|
15472
|
+
type ReactJsxShorthandFragment = [] | [(-1 | 1)]; // ----- react/no-unstable-default-props -----
|
|
15468
15473
|
type ReactNoUnstableDefaultProps = [] | [{
|
|
15469
15474
|
safeDefaultProps?: string[];
|
|
15470
15475
|
}]; // ----- react/no-useless-fragment -----
|
|
15471
15476
|
type ReactNoUselessFragment = [] | [{
|
|
15472
15477
|
allowEmptyFragment?: boolean;
|
|
15473
15478
|
allowExpressions?: boolean;
|
|
15479
|
+
}]; // ----- react/rules-of-hooks -----
|
|
15480
|
+
type ReactRulesOfHooks = [] | [{
|
|
15481
|
+
additionalHooks?: string;
|
|
15482
|
+
}]; // ----- react/use-state -----
|
|
15483
|
+
type ReactUseState = [] | [{
|
|
15484
|
+
enforceAssignment?: boolean;
|
|
15485
|
+
enforceLazyInitialization?: boolean;
|
|
15486
|
+
enforceSetterName?: boolean;
|
|
15474
15487
|
}]; // ----- regexp/hexadecimal-escape -----
|
|
15475
15488
|
type RegexpHexadecimalEscape = [] | [("always" | "never")]; // ----- regexp/letter-case -----
|
|
15476
15489
|
type RegexpLetterCase = [] | [{
|
|
@@ -15636,16 +15649,7 @@ type SonarContentLength = [] | [{
|
|
|
15636
15649
|
}]; // ----- sonar/cyclomatic-complexity -----
|
|
15637
15650
|
type SonarCyclomaticComplexity = [] | [{
|
|
15638
15651
|
threshold?: number;
|
|
15639
|
-
}]; // ----- sonar/
|
|
15640
|
-
type SonarEnforceTrailingComma = [] | [(_SonarEnforceTrailingCommaValue | {
|
|
15641
|
-
arrays?: _SonarEnforceTrailingCommaValueWithIgnore;
|
|
15642
|
-
objects?: _SonarEnforceTrailingCommaValueWithIgnore;
|
|
15643
|
-
imports?: _SonarEnforceTrailingCommaValueWithIgnore;
|
|
15644
|
-
exports?: _SonarEnforceTrailingCommaValueWithIgnore;
|
|
15645
|
-
functions?: _SonarEnforceTrailingCommaValueWithIgnore;
|
|
15646
|
-
})];
|
|
15647
|
-
type _SonarEnforceTrailingCommaValue = ("always-multiline" | "always" | "never" | "only-multiline");
|
|
15648
|
-
type _SonarEnforceTrailingCommaValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline"); // ----- sonar/expression-complexity -----
|
|
15652
|
+
}]; // ----- sonar/expression-complexity -----
|
|
15649
15653
|
type SonarExpressionComplexity = [] | [{
|
|
15650
15654
|
max?: number;
|
|
15651
15655
|
}]; // ----- sonar/file-header -----
|
|
@@ -17180,6 +17184,9 @@ type TestRequireMockTypeParameters = [] | [{
|
|
|
17180
17184
|
}]; // ----- test/require-top-level-describe -----
|
|
17181
17185
|
type TestRequireTopLevelDescribe = [] | [{
|
|
17182
17186
|
maxNumberOfTopLevelDescribes?: number;
|
|
17187
|
+
}]; // ----- test/unbound-method -----
|
|
17188
|
+
type TestUnboundMethod = [] | [{
|
|
17189
|
+
ignoreStatic?: boolean;
|
|
17183
17190
|
}]; // ----- test/valid-expect -----
|
|
17184
17191
|
type TestValidExpect = [] | [{
|
|
17185
17192
|
alwaysAwait?: boolean;
|
|
@@ -18224,6 +18231,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/ex
|
|
|
18224
18231
|
type UnicornExpiringTodoComments = [] | [{
|
|
18225
18232
|
terms?: string[];
|
|
18226
18233
|
ignore?: unknown[];
|
|
18234
|
+
ignoreDates?: boolean;
|
|
18227
18235
|
ignoreDatesOnPullRequests?: boolean;
|
|
18228
18236
|
allowWarningComments?: boolean;
|
|
18229
18237
|
date?: string;
|
|
@@ -18380,6 +18388,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
|
|
|
18380
18388
|
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
18381
18389
|
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
|
|
18382
18390
|
}
|
|
18391
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
18392
|
+
[k: string]: boolean | undefined;
|
|
18393
|
+
}
|
|
18383
18394
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
18384
18395
|
[k: string]: boolean | undefined;
|
|
18385
18396
|
} // ----- unicorn/relative-url-style -----
|
|
@@ -19763,7 +19774,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
19763
19774
|
exceptRange?: boolean;
|
|
19764
19775
|
onlyEquality?: boolean;
|
|
19765
19776
|
}]; // Names of all the configs
|
|
19766
|
-
type ConfigNames = 'vinicunca/gitignore' | 'vinicunca/ignores' | 'vinicunca/javascript/setup' | 'vinicunca/javascript/rules' | 'vinicunca/eslint-comments/rules' | 'vinicunca/
|
|
19777
|
+
type ConfigNames = 'vinicunca/gitignore' | 'vinicunca/ignores' | 'vinicunca/javascript/setup' | 'vinicunca/javascript/rules' | 'vinicunca/eslint-comments/rules' | 'vinicunca/command/rules' | 'vinicunca/perfectionist/rules' | 'vinicunca/sonar/rules' | 'vinicunca/node/rules' | 'vinicunca/jsdoc/setup' | 'vinicunca/jsdoc/rules' | 'vinicunca/imports/rules' | 'vinicunca/e18e/rules' | 'vinicunca/unicorn/rules' | 'antfu/jsx/setup' | 'vinicunca/typescript/setup' | 'vinicunca/typescript/parser' | 'vinicunca/typescript/type-aware-parser' | 'vinicunca/typescript/rules' | 'vinicunca/typescript/rules-type-aware' | 'antfu/typescript/erasable-syntax-only' | 'vinicunca/stylistic/rules' | 'vinicunca/regexp/rules' | 'vinicunca/test/setup' | 'vinicunca/test/rules' | 'vinicunca/vue/setup' | 'vinicunca/vue/rules' | 'vinicunca/react/setup' | 'vinicunca/react/rules' | 'vinicunca/react/typescript' | 'vinicunca/react/type-aware-rules' | 'vinicunca/nextjs/setup' | 'vinicunca/nextjs/rules' | 'vinicunca/solid/setup' | 'vinicunca/solid/rules' | 'vinicunca/svelte/setup' | 'vinicunca/svelte/rules' | 'vinicunca/unocss' | 'vinicunca/astro/setup' | 'vinicunca/astro/rules' | 'vinicunca/jsonc/setup' | 'vinicunca/jsonc/rules' | 'vinicunca/sort/package-json' | 'vinicunca/sort/tsconfig' | 'vinicunca/pnpm/package-json' | 'vinicunca/pnpm/pnpm-workspace-yaml' | 'vinicunca/pnpm/pnpm-workspace-yaml-sort' | 'vinicunca/yaml/setup' | 'vinicunca/yaml/rules' | 'vinicunca/toml/setup' | 'vinicunca/toml/rules' | 'vinicunca/markdown/setup' | 'vinicunca/markdown/processor' | 'vinicunca/markdown/parser' | 'vinicunca/markdown/rules' | 'vinicunca/markdown/disables/markdown' | 'vinicunca/markdown/disables' | 'vinicunca/formatter/setup' | 'vinicunca/formatter/css' | 'vinicunca/formatter/scss' | 'vinicunca/formatter/less' | 'vinicunca/formatter/html' | 'vinicunca/formatter/xml' | 'vinicunca/formatter/svg' | 'vinicunca/formatter/markdown' | 'vinicunca/formatter/astro' | 'vinicunca/formatter/astro/disables' | 'vinicunca/formatter/graphql' | 'vinicunca/disables/scripts' | 'vinicunca/disables/cli' | 'vinicunca/disables/bin' | 'vinicunca/disables/dts' | 'vinicunca/disables/cjs' | 'vinicunca/disables/config-files';
|
|
19767
19778
|
//#endregion
|
|
19768
19779
|
//#region src/vendor/prettier-types.d.ts
|
|
19769
19780
|
/**
|
|
@@ -20170,9 +20181,7 @@ interface OptionsUnoCSS extends OptionsOverrides {
|
|
|
20170
20181
|
*/
|
|
20171
20182
|
configPath?: string;
|
|
20172
20183
|
}
|
|
20173
|
-
interface OptionsReact extends OptionsOverrides {
|
|
20174
|
-
reactCompiler?: boolean;
|
|
20175
|
-
}
|
|
20184
|
+
interface OptionsReact extends OptionsOverrides {}
|
|
20176
20185
|
interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
20177
20186
|
/**
|
|
20178
20187
|
* Enable gitignore support.
|
|
@@ -20315,7 +20324,6 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
20315
20324
|
*
|
|
20316
20325
|
* Requires installing:
|
|
20317
20326
|
* - `@eslint-react/eslint-plugin`
|
|
20318
|
-
* - `eslint-plugin-react-hooks`
|
|
20319
20327
|
* - `eslint-plugin-react-refresh`
|
|
20320
20328
|
*
|
|
20321
20329
|
* @default false
|
|
@@ -20393,8 +20401,9 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
20393
20401
|
declare const defaultPluginRenaming: {
|
|
20394
20402
|
'@eslint-react': string;
|
|
20395
20403
|
'@eslint-react/dom': string;
|
|
20396
|
-
'@eslint-react/hooks-extra': string;
|
|
20397
20404
|
'@eslint-react/naming-convention': string;
|
|
20405
|
+
'@eslint-react/rsc': string;
|
|
20406
|
+
'@eslint-react/web-api': string;
|
|
20398
20407
|
'@next/next': string;
|
|
20399
20408
|
'@stylistic': string;
|
|
20400
20409
|
'@typescript-eslint': string;
|
|
@@ -20436,7 +20445,7 @@ declare function e18e(options?: OptionsE18e & OptionsProjectType & OptionsIsInEd
|
|
|
20436
20445
|
declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<Array<TypedFlatConfigItem>>;
|
|
20437
20446
|
//#endregion
|
|
20438
20447
|
//#region src/configs/ignores.d.ts
|
|
20439
|
-
declare function ignores(userIgnores?: Array<string> | ((originals: Array<string>) => Array<string>)): Promise<Array<TypedFlatConfigItem>>;
|
|
20448
|
+
declare function ignores(userIgnores?: Array<string> | ((originals: Array<string>) => Array<string>), ignoreTypeScript?: boolean): Promise<Array<TypedFlatConfigItem>>;
|
|
20440
20449
|
//#endregion
|
|
20441
20450
|
//#region src/configs/imports.d.ts
|
|
20442
20451
|
declare function imports(options?: OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
|