@coderwyd/eslint-config 2.4.0 → 2.4.2
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/cli.cjs +11 -10
- package/dist/cli.js +11 -10
- package/dist/index.cjs +153 -80
- package/dist/index.d.cts +831 -860
- package/dist/index.d.ts +831 -860
- package/dist/index.js +153 -80
- package/package.json +25 -23
package/dist/index.d.cts
CHANGED
|
@@ -1112,6 +1112,7 @@ interface RuleOptions {
|
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Enforce position of line comments
|
|
1114
1114
|
* @see https://eslint.org/docs/latest/rules/line-comment-position
|
|
1115
|
+
* @deprecated
|
|
1115
1116
|
*/
|
|
1116
1117
|
'line-comment-position'?: Linter.RuleEntry<LineCommentPosition>
|
|
1117
1118
|
/**
|
|
@@ -1193,6 +1194,7 @@ interface RuleOptions {
|
|
|
1193
1194
|
/**
|
|
1194
1195
|
* Enforce a particular style for multiline comments
|
|
1195
1196
|
* @see https://eslint.org/docs/latest/rules/multiline-comment-style
|
|
1197
|
+
* @deprecated
|
|
1196
1198
|
*/
|
|
1197
1199
|
'multiline-comment-style'?: Linter.RuleEntry<MultilineCommentStyle>
|
|
1198
1200
|
/**
|
|
@@ -1565,7 +1567,7 @@ interface RuleOptions {
|
|
|
1565
1567
|
* Disallow characters which are made with multiple code points in character class syntax
|
|
1566
1568
|
* @see https://eslint.org/docs/latest/rules/no-misleading-character-class
|
|
1567
1569
|
*/
|
|
1568
|
-
'no-misleading-character-class'?: Linter.RuleEntry<
|
|
1570
|
+
'no-misleading-character-class'?: Linter.RuleEntry<NoMisleadingCharacterClass>
|
|
1569
1571
|
/**
|
|
1570
1572
|
* Disallow mixed binary operators
|
|
1571
1573
|
* @see https://eslint.org/docs/latest/rules/no-mixed-operators
|
|
@@ -2473,6 +2475,81 @@ interface RuleOptions {
|
|
|
2473
2475
|
* @see https://eslint.org/docs/latest/rules/radix
|
|
2474
2476
|
*/
|
|
2475
2477
|
'radix'?: Linter.RuleEntry<Radix>
|
|
2478
|
+
/**
|
|
2479
|
+
* disallow passing 'children' to void DOM elements
|
|
2480
|
+
* @see https://eslint-react.xyz/rules/dom-no-children-in-void-dom-elements
|
|
2481
|
+
*/
|
|
2482
|
+
'react-dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
|
|
2483
|
+
/**
|
|
2484
|
+
* disallow when a DOM component is using 'dangerouslySetInnerHTML'
|
|
2485
|
+
* @see https://eslint-react.xyz/rules/dom-no-dangerously-set-innerhtml
|
|
2486
|
+
*/
|
|
2487
|
+
'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>
|
|
2488
|
+
/**
|
|
2489
|
+
* disallow when a DOM component is using both 'children' and 'dangerouslySetInnerHTML'
|
|
2490
|
+
* @see https://eslint-react.xyz/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
2491
|
+
*/
|
|
2492
|
+
'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>
|
|
2493
|
+
/**
|
|
2494
|
+
* disallow 'findDOMNode'
|
|
2495
|
+
* @see https://eslint-react.xyz/rules/dom-no-find-dom-node
|
|
2496
|
+
*/
|
|
2497
|
+
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
|
|
2498
|
+
/**
|
|
2499
|
+
* enforce that button component have an explicit 'type' attribute
|
|
2500
|
+
* @see https://eslint-react.xyz/rules/dom-no-missing-button-type
|
|
2501
|
+
*/
|
|
2502
|
+
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>
|
|
2503
|
+
/**
|
|
2504
|
+
* enforce that 'iframe' component have an explicit 'sandbox' attribute
|
|
2505
|
+
* @see https://eslint-react.xyz/rules/dom-no-missing-iframe-sandbox
|
|
2506
|
+
*/
|
|
2507
|
+
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
2508
|
+
/**
|
|
2509
|
+
* enforce that namespaces are not used in React elements
|
|
2510
|
+
* @see https://eslint-react.xyz/rules/dom-no-namespace
|
|
2511
|
+
*/
|
|
2512
|
+
'react-dom/no-namespace'?: Linter.RuleEntry<[]>
|
|
2513
|
+
/**
|
|
2514
|
+
* disallow usage of the return value of 'ReactDOM.render'
|
|
2515
|
+
* @see https://eslint-react.xyz/rules/dom-no-render-return-value
|
|
2516
|
+
*/
|
|
2517
|
+
'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>
|
|
2518
|
+
/**
|
|
2519
|
+
* disallow 'javascript:' URLs as JSX event handler prop's value
|
|
2520
|
+
* @see https://eslint-react.xyz/rules/dom-no-script-url
|
|
2521
|
+
*/
|
|
2522
|
+
'react-dom/no-script-url'?: Linter.RuleEntry<[]>
|
|
2523
|
+
/**
|
|
2524
|
+
* disallow unsafe iframe 'sandbox' attribute combinations
|
|
2525
|
+
* @see https://eslint-react.xyz/rules/dom-no-unsafe-iframe-sandbox
|
|
2526
|
+
*/
|
|
2527
|
+
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
2528
|
+
/**
|
|
2529
|
+
* disallow 'target="_blank"' on an external link without 'rel="noreferrer noopener"'.
|
|
2530
|
+
* @see https://eslint-react.xyz/rules/dom-no-unsafe-target-blank
|
|
2531
|
+
*/
|
|
2532
|
+
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2533
|
+
/**
|
|
2534
|
+
* enforce custom hooks using other hooks
|
|
2535
|
+
* @see https://eslint-react.xyz/rules/hooks-extra-ensure-custom-hooks-using-other-hooks
|
|
2536
|
+
*/
|
|
2537
|
+
'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
|
|
2538
|
+
/**
|
|
2539
|
+
* enforce 'useCallback' has non-empty dependencies array
|
|
2540
|
+
* @see https://eslint-react.xyz/rules/hooks-extra-ensure-use-callback-has-non-empty-deps
|
|
2541
|
+
*/
|
|
2542
|
+
'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2543
|
+
/**
|
|
2544
|
+
* enforce 'useMemo' has non-empty dependencies array
|
|
2545
|
+
* @see https://eslint-react.xyz/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
2546
|
+
*/
|
|
2547
|
+
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2548
|
+
/**
|
|
2549
|
+
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
2550
|
+
* @see https://eslint-react.xyz/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
2551
|
+
*/
|
|
2552
|
+
'react-hooks-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
|
|
2476
2553
|
/**
|
|
2477
2554
|
* verifies the list of dependencies for Hooks like useEffect and similar
|
|
2478
2555
|
* @see https://github.com/facebook/react/issues/14920
|
|
@@ -2483,514 +2560,639 @@ interface RuleOptions {
|
|
|
2483
2560
|
* @see https://reactjs.org/docs/hooks-rules.html
|
|
2484
2561
|
*/
|
|
2485
2562
|
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
2563
|
+
/**
|
|
2564
|
+
* enforce component naming convention to 'PascalCase' or 'CONSTANT_CASE'
|
|
2565
|
+
* @see https://eslint-react.xyz/rules/naming-convention-component-name
|
|
2566
|
+
*/
|
|
2567
|
+
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
|
|
2568
|
+
/**
|
|
2569
|
+
* enforce naming convention for JSX filenames
|
|
2570
|
+
* @see https://eslint-react.xyz/rules/naming-convention-filename
|
|
2571
|
+
*/
|
|
2572
|
+
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>
|
|
2573
|
+
/**
|
|
2574
|
+
* enforce naming convention for JSX file extensions
|
|
2575
|
+
* @see https://eslint-react.xyz/rules/naming-convention-filename-extension
|
|
2576
|
+
*/
|
|
2577
|
+
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
|
|
2578
|
+
/**
|
|
2579
|
+
* enforce destructuring and symmetric naming of 'useState' hook value and setter variables
|
|
2580
|
+
* @see https://eslint-react.xyz/rules/naming-convention-use-state
|
|
2581
|
+
*/
|
|
2582
|
+
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
2486
2583
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
2487
2584
|
/**
|
|
2488
|
-
*
|
|
2489
|
-
* @see https://
|
|
2585
|
+
* require all 'forwardRef' components include a 'ref' parameter
|
|
2586
|
+
* @see https://eslint-react.xyz/rules/ensure-forward-ref-using-ref
|
|
2490
2587
|
*/
|
|
2491
|
-
'react/
|
|
2588
|
+
'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
2589
|
+
/**
|
|
2590
|
+
* disallow accessing 'this.state' within 'setState'
|
|
2591
|
+
* @see https://eslint-react.xyz/rules/no-access-state-in-setstate
|
|
2592
|
+
*/
|
|
2593
|
+
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
|
|
2492
2594
|
/**
|
|
2493
|
-
*
|
|
2494
|
-
* @see https://
|
|
2595
|
+
* disallow using Array index as key
|
|
2596
|
+
* @see https://eslint-react.xyz/rules/no-array-index-key
|
|
2495
2597
|
*/
|
|
2496
|
-
'react/
|
|
2598
|
+
'react/no-array-index-key'?: Linter.RuleEntry<[]>
|
|
2497
2599
|
/**
|
|
2498
|
-
*
|
|
2499
|
-
* @see https://
|
|
2600
|
+
* disallow 'Children.count'
|
|
2601
|
+
* @see https://eslint-react.xyz/rules/no-children-count
|
|
2500
2602
|
*/
|
|
2501
|
-
'react/
|
|
2603
|
+
'react/no-children-count'?: Linter.RuleEntry<[]>
|
|
2502
2604
|
/**
|
|
2503
|
-
*
|
|
2504
|
-
* @see https://
|
|
2605
|
+
* disallow 'Children.forEach'
|
|
2606
|
+
* @see https://eslint-react.xyz/rules/no-children-for-each
|
|
2505
2607
|
*/
|
|
2506
|
-
'react/
|
|
2608
|
+
'react/no-children-for-each'?: Linter.RuleEntry<[]>
|
|
2507
2609
|
/**
|
|
2508
|
-
*
|
|
2509
|
-
* @see https://
|
|
2610
|
+
* disallow 'Children.map'
|
|
2611
|
+
* @see https://eslint-react.xyz/rules/no-children-map
|
|
2510
2612
|
*/
|
|
2511
|
-
'react/
|
|
2613
|
+
'react/no-children-map'?: Linter.RuleEntry<[]>
|
|
2512
2614
|
/**
|
|
2513
|
-
*
|
|
2514
|
-
* @see https://
|
|
2615
|
+
* disallow 'Children.only'
|
|
2616
|
+
* @see https://eslint-react.xyz/rules/no-children-only
|
|
2515
2617
|
*/
|
|
2516
|
-
'react/
|
|
2618
|
+
'react/no-children-only'?: Linter.RuleEntry<[]>
|
|
2517
2619
|
/**
|
|
2518
|
-
*
|
|
2519
|
-
* @see https://
|
|
2620
|
+
* disallow passing of 'children' as props
|
|
2621
|
+
* @see https://eslint-react.xyz/rules/no-children-prop
|
|
2520
2622
|
*/
|
|
2521
|
-
'react/
|
|
2623
|
+
'react/no-children-prop'?: Linter.RuleEntry<[]>
|
|
2522
2624
|
/**
|
|
2523
|
-
*
|
|
2524
|
-
* @see https://
|
|
2625
|
+
* disallow 'Children.toArray'
|
|
2626
|
+
* @see https://eslint-react.xyz/rules/no-children-to-array
|
|
2525
2627
|
*/
|
|
2526
|
-
'react/
|
|
2628
|
+
'react/no-children-to-array'?: Linter.RuleEntry<[]>
|
|
2527
2629
|
/**
|
|
2528
|
-
*
|
|
2529
|
-
* @see https://
|
|
2630
|
+
* disallow class component
|
|
2631
|
+
* @see https://eslint-react.xyz/rules/no-class-component
|
|
2530
2632
|
*/
|
|
2531
|
-
'react/
|
|
2633
|
+
'react/no-class-component'?: Linter.RuleEntry<[]>
|
|
2532
2634
|
/**
|
|
2533
|
-
*
|
|
2534
|
-
* @see https://
|
|
2635
|
+
* disallow 'cloneElement'
|
|
2636
|
+
* @see https://eslint-react.xyz/rules/no-clone-element
|
|
2535
2637
|
*/
|
|
2536
|
-
'react/
|
|
2638
|
+
'react/no-clone-element'?: Linter.RuleEntry<[]>
|
|
2537
2639
|
/**
|
|
2538
|
-
*
|
|
2539
|
-
* @see https://
|
|
2640
|
+
* disallow comments from being inserted as text nodes
|
|
2641
|
+
* @see https://eslint-react.xyz/rules/no-comment-textnodes
|
|
2540
2642
|
*/
|
|
2541
|
-
'react/
|
|
2643
|
+
'react/no-comment-textnodes'?: Linter.RuleEntry<[]>
|
|
2542
2644
|
/**
|
|
2543
|
-
*
|
|
2544
|
-
* @see https://
|
|
2645
|
+
* disallow complicated conditional rendering
|
|
2646
|
+
* @see https://eslint-react.xyz/rules/no-complicated-conditional-rendering
|
|
2647
|
+
* @deprecated
|
|
2545
2648
|
*/
|
|
2546
|
-
'react/
|
|
2649
|
+
'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2547
2650
|
/**
|
|
2548
|
-
*
|
|
2549
|
-
* @see https://
|
|
2651
|
+
* disallow usage of 'componentWillMount'
|
|
2652
|
+
* @see https://eslint-react.xyz/rules/no-component-will-mount
|
|
2550
2653
|
*/
|
|
2551
|
-
'react/
|
|
2654
|
+
'react/no-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2552
2655
|
/**
|
|
2553
|
-
*
|
|
2554
|
-
* @see https://
|
|
2656
|
+
* disallow usage of 'componentWillReceiveProps'
|
|
2657
|
+
* @see https://eslint-react.xyz/rules/no-component-will-receive-props
|
|
2555
2658
|
*/
|
|
2556
|
-
'react/
|
|
2659
|
+
'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2557
2660
|
/**
|
|
2558
|
-
*
|
|
2559
|
-
* @see https://
|
|
2661
|
+
* disallow usage of 'componentWillUpdate'
|
|
2662
|
+
* @see https://eslint-react.xyz/rules/no-component-will-update
|
|
2560
2663
|
*/
|
|
2561
|
-
'react/
|
|
2664
|
+
'react/no-component-will-update'?: Linter.RuleEntry<[]>
|
|
2562
2665
|
/**
|
|
2563
|
-
*
|
|
2564
|
-
* @see https://
|
|
2666
|
+
* disallow 'createRef' in function components
|
|
2667
|
+
* @see https://eslint-react.xyz/rules/no-create-ref
|
|
2565
2668
|
*/
|
|
2566
|
-
'react/
|
|
2669
|
+
'react/no-create-ref'?: Linter.RuleEntry<[]>
|
|
2567
2670
|
/**
|
|
2568
|
-
*
|
|
2569
|
-
* @see https://
|
|
2671
|
+
* disallow direct mutation of state
|
|
2672
|
+
* @see https://eslint-react.xyz/rules/no-direct-mutation-state
|
|
2570
2673
|
*/
|
|
2571
|
-
'react/
|
|
2674
|
+
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
|
|
2572
2675
|
/**
|
|
2573
|
-
*
|
|
2574
|
-
* @see https://
|
|
2676
|
+
* disallow duplicate keys in 'key' prop when rendering list
|
|
2677
|
+
* @see https://eslint-react.xyz/rules/no-duplicate-key
|
|
2575
2678
|
*/
|
|
2576
|
-
'react/
|
|
2679
|
+
'react/no-duplicate-key'?: Linter.RuleEntry<[]>
|
|
2577
2680
|
/**
|
|
2578
|
-
*
|
|
2579
|
-
* @see https://
|
|
2681
|
+
* disallow spreading 'key' from objects.
|
|
2682
|
+
* @see https://eslint-react.xyz/rules/no-implicit-key
|
|
2683
|
+
* @deprecated
|
|
2580
2684
|
*/
|
|
2581
|
-
'react/
|
|
2685
|
+
'react/no-implicit-key'?: Linter.RuleEntry<[]>
|
|
2582
2686
|
/**
|
|
2583
|
-
*
|
|
2584
|
-
* @see https://
|
|
2687
|
+
* disallow problematic leaked values from being rendered
|
|
2688
|
+
* @see https://eslint-react.xyz/rules/no-leaked-conditional-rendering
|
|
2585
2689
|
*/
|
|
2586
|
-
'react/
|
|
2690
|
+
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2587
2691
|
/**
|
|
2588
|
-
*
|
|
2589
|
-
* @see https://
|
|
2692
|
+
* require 'displayName' for memo and forwardRef components
|
|
2693
|
+
* @see https://eslint-react.xyz/rules/no-missing-component-display-name
|
|
2590
2694
|
*/
|
|
2591
|
-
'react/
|
|
2695
|
+
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
|
|
2592
2696
|
/**
|
|
2593
|
-
*
|
|
2594
|
-
* @see https://
|
|
2697
|
+
* require 'key' prop when rendering list
|
|
2698
|
+
* @see https://eslint-react.xyz/rules/no-missing-key
|
|
2595
2699
|
*/
|
|
2596
|
-
'react/
|
|
2700
|
+
'react/no-missing-key'?: Linter.RuleEntry<[]>
|
|
2597
2701
|
/**
|
|
2598
|
-
*
|
|
2599
|
-
* @see https://
|
|
2702
|
+
* disallow usage of unstable nested components
|
|
2703
|
+
* @see https://eslint-react.xyz/rules/no-nested-components
|
|
2600
2704
|
*/
|
|
2601
|
-
'react/
|
|
2705
|
+
'react/no-nested-components'?: Linter.RuleEntry<[]>
|
|
2602
2706
|
/**
|
|
2603
|
-
*
|
|
2604
|
-
* @see https://
|
|
2707
|
+
* disallow usage of 'shouldComponentUpdate' in class component extends 'React.PureComponent'
|
|
2708
|
+
* @see https://eslint-react.xyz/rules/no-redundant-should-component-update
|
|
2605
2709
|
*/
|
|
2606
|
-
'react/
|
|
2710
|
+
'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
|
|
2607
2711
|
/**
|
|
2608
|
-
*
|
|
2609
|
-
* @see https://
|
|
2712
|
+
* disallow 'setState' in 'componentDidMount'
|
|
2713
|
+
* @see https://eslint-react.xyz/rules/no-set-state-in-component-did-mount
|
|
2610
2714
|
*/
|
|
2611
|
-
'react/
|
|
2715
|
+
'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
|
|
2612
2716
|
/**
|
|
2613
|
-
*
|
|
2614
|
-
* @see https://
|
|
2717
|
+
* disallow 'setState' in 'componentDidUpdate'
|
|
2718
|
+
* @see https://eslint-react.xyz/rules/no-set-state-in-component-did-update
|
|
2615
2719
|
*/
|
|
2616
|
-
'react/
|
|
2720
|
+
'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
|
2617
2721
|
/**
|
|
2618
|
-
*
|
|
2619
|
-
* @see https://
|
|
2722
|
+
* disallow 'setState' in 'componentWillUpdate'
|
|
2723
|
+
* @see https://eslint-react.xyz/rules/no-set-state-in-component-will-update
|
|
2620
2724
|
*/
|
|
2621
|
-
'react/
|
|
2725
|
+
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
|
|
2622
2726
|
/**
|
|
2623
|
-
*
|
|
2624
|
-
* @see https://
|
|
2727
|
+
* disallow using deprecated string refs
|
|
2728
|
+
* @see https://eslint-react.xyz/rules/no-string-refs
|
|
2625
2729
|
*/
|
|
2626
|
-
'react/
|
|
2730
|
+
'react/no-string-refs'?: Linter.RuleEntry<[]>
|
|
2627
2731
|
/**
|
|
2628
|
-
*
|
|
2629
|
-
* @see https://
|
|
2732
|
+
* disallow usage of 'UNSAFE_componentWillMount'
|
|
2733
|
+
* @see https://eslint-react.xyz/rules/no-unsafe-component-will-mount
|
|
2630
2734
|
*/
|
|
2631
|
-
'react/
|
|
2735
|
+
'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2632
2736
|
/**
|
|
2633
|
-
*
|
|
2634
|
-
* @see https://
|
|
2737
|
+
* disallow usage of 'UNSAFE_componentWillReceiveProps'
|
|
2738
|
+
* @see https://eslint-react.xyz/rules/no-unsafe-component-will-receive-props
|
|
2635
2739
|
*/
|
|
2636
|
-
'react/
|
|
2740
|
+
'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2637
2741
|
/**
|
|
2638
|
-
*
|
|
2639
|
-
* @see https://
|
|
2742
|
+
* disallow usage of 'UNSAFE_componentWillUpdate'
|
|
2743
|
+
* @see https://eslint-react.xyz/rules/no-unsafe-component-will-update
|
|
2640
2744
|
*/
|
|
2641
|
-
'react/
|
|
2745
|
+
'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>
|
|
2642
2746
|
/**
|
|
2643
|
-
*
|
|
2644
|
-
* @see https://
|
|
2747
|
+
* disallow passing constructed values to context providers
|
|
2748
|
+
* @see https://eslint-react.xyz/rules/no-unstable-context-value
|
|
2645
2749
|
*/
|
|
2646
|
-
'react/
|
|
2750
|
+
'react/no-unstable-context-value'?: Linter.RuleEntry<[]>
|
|
2647
2751
|
/**
|
|
2648
|
-
*
|
|
2649
|
-
* @see https://
|
|
2752
|
+
* disallow usage of unstable value as default param in function component
|
|
2753
|
+
* @see https://eslint-react.xyz/rules/no-unstable-default-props
|
|
2650
2754
|
*/
|
|
2651
|
-
'react/
|
|
2755
|
+
'react/no-unstable-default-props'?: Linter.RuleEntry<[]>
|
|
2652
2756
|
/**
|
|
2653
|
-
*
|
|
2654
|
-
* @see https://
|
|
2757
|
+
* disallow unused class component members
|
|
2758
|
+
* @see https://eslint-react.xyz/rules/no-unused-class-component-members
|
|
2655
2759
|
*/
|
|
2656
|
-
'react/
|
|
2760
|
+
'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
|
|
2657
2761
|
/**
|
|
2658
|
-
*
|
|
2659
|
-
* @see https://
|
|
2762
|
+
* Prevents unused state of class component.
|
|
2763
|
+
* @see https://eslint-react.xyz/rules/no-unused-state
|
|
2660
2764
|
*/
|
|
2661
|
-
'react/
|
|
2765
|
+
'react/no-unused-state'?: Linter.RuleEntry<[]>
|
|
2662
2766
|
/**
|
|
2663
|
-
*
|
|
2664
|
-
* @see https://
|
|
2767
|
+
* disallow unnecessary fragments
|
|
2768
|
+
* @see https://eslint-react.xyz/rules/no-useless-fragment
|
|
2665
2769
|
*/
|
|
2666
|
-
'react/
|
|
2770
|
+
'react/no-useless-fragment'?: Linter.RuleEntry<[]>
|
|
2667
2771
|
/**
|
|
2668
|
-
*
|
|
2669
|
-
* @see https://
|
|
2772
|
+
* enforce using destructuring assignment in component props and context
|
|
2773
|
+
* @see https://eslint-react.xyz/rules/prefer-destructuring-assignment
|
|
2670
2774
|
*/
|
|
2671
|
-
'react/
|
|
2775
|
+
'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
|
|
2672
2776
|
/**
|
|
2673
|
-
*
|
|
2674
|
-
* @see https://
|
|
2777
|
+
* enforce boolean attributes notation in JSX
|
|
2778
|
+
* @see https://eslint-react.xyz/rules/prefer-shorthand-boolean
|
|
2675
2779
|
*/
|
|
2676
|
-
'react/
|
|
2780
|
+
'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2677
2781
|
/**
|
|
2678
|
-
*
|
|
2679
|
-
* @see https://
|
|
2782
|
+
* enforce using fragment syntax instead of Fragment component
|
|
2783
|
+
* @see https://eslint-react.xyz/rules/prefer-shorthand-fragment
|
|
2680
2784
|
*/
|
|
2681
|
-
'react/
|
|
2785
|
+
'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2682
2786
|
/**
|
|
2683
|
-
*
|
|
2684
|
-
* @see https://github.
|
|
2787
|
+
* disallow confusing quantifiers
|
|
2788
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
|
|
2685
2789
|
*/
|
|
2686
|
-
'
|
|
2790
|
+
'regexp/confusing-quantifier'?: Linter.RuleEntry<[]>
|
|
2687
2791
|
/**
|
|
2688
|
-
*
|
|
2689
|
-
* @see https://github.
|
|
2792
|
+
* enforce consistent escaping of control characters
|
|
2793
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/control-character-escape.html
|
|
2690
2794
|
*/
|
|
2691
|
-
'
|
|
2795
|
+
'regexp/control-character-escape'?: Linter.RuleEntry<[]>
|
|
2692
2796
|
/**
|
|
2693
|
-
*
|
|
2694
|
-
* @see https://github.
|
|
2797
|
+
* enforce single grapheme in string literal
|
|
2798
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/grapheme-string-literal.html
|
|
2695
2799
|
*/
|
|
2696
|
-
'
|
|
2800
|
+
'regexp/grapheme-string-literal'?: Linter.RuleEntry<[]>
|
|
2697
2801
|
/**
|
|
2698
|
-
*
|
|
2699
|
-
* @see https://github.
|
|
2802
|
+
* enforce consistent usage of hexadecimal escape
|
|
2803
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/hexadecimal-escape.html
|
|
2700
2804
|
*/
|
|
2701
|
-
'
|
|
2805
|
+
'regexp/hexadecimal-escape'?: Linter.RuleEntry<RegexpHexadecimalEscape>
|
|
2702
2806
|
/**
|
|
2703
|
-
*
|
|
2704
|
-
* @see https://github.
|
|
2807
|
+
* enforce into your favorite case
|
|
2808
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/letter-case.html
|
|
2705
2809
|
*/
|
|
2706
|
-
'
|
|
2810
|
+
'regexp/letter-case'?: Linter.RuleEntry<RegexpLetterCase>
|
|
2707
2811
|
/**
|
|
2708
|
-
*
|
|
2709
|
-
* @see https://github.
|
|
2812
|
+
* enforce match any character style
|
|
2813
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/match-any.html
|
|
2710
2814
|
*/
|
|
2711
|
-
'
|
|
2815
|
+
'regexp/match-any'?: Linter.RuleEntry<RegexpMatchAny>
|
|
2712
2816
|
/**
|
|
2713
|
-
*
|
|
2714
|
-
* @see https://github.
|
|
2817
|
+
* enforce use of escapes on negation
|
|
2818
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/negation.html
|
|
2715
2819
|
*/
|
|
2716
|
-
'
|
|
2820
|
+
'regexp/negation'?: Linter.RuleEntry<[]>
|
|
2717
2821
|
/**
|
|
2718
|
-
*
|
|
2719
|
-
* @see https://github.
|
|
2720
|
-
* @deprecated
|
|
2822
|
+
* disallow elements that contradict assertions
|
|
2823
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html
|
|
2721
2824
|
*/
|
|
2722
|
-
'
|
|
2825
|
+
'regexp/no-contradiction-with-assertion'?: Linter.RuleEntry<[]>
|
|
2723
2826
|
/**
|
|
2724
|
-
*
|
|
2725
|
-
* @see https://github.
|
|
2827
|
+
* disallow control characters
|
|
2828
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-control-character.html
|
|
2726
2829
|
*/
|
|
2727
|
-
'
|
|
2830
|
+
'regexp/no-control-character'?: Linter.RuleEntry<[]>
|
|
2728
2831
|
/**
|
|
2729
|
-
*
|
|
2730
|
-
* @see https://github.
|
|
2731
|
-
* @deprecated
|
|
2832
|
+
* disallow duplicate characters in the RegExp character class
|
|
2833
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-characters-character-class.html
|
|
2732
2834
|
*/
|
|
2733
|
-
'
|
|
2835
|
+
'regexp/no-dupe-characters-character-class'?: Linter.RuleEntry<[]>
|
|
2734
2836
|
/**
|
|
2735
|
-
*
|
|
2736
|
-
* @see https://github.
|
|
2837
|
+
* disallow duplicate disjunctions
|
|
2838
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-disjunctions.html
|
|
2737
2839
|
*/
|
|
2738
|
-
'
|
|
2840
|
+
'regexp/no-dupe-disjunctions'?: Linter.RuleEntry<RegexpNoDupeDisjunctions>
|
|
2739
2841
|
/**
|
|
2740
|
-
*
|
|
2741
|
-
* @see https://github.
|
|
2842
|
+
* disallow alternatives without elements
|
|
2843
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-alternative.html
|
|
2742
2844
|
*/
|
|
2743
|
-
'
|
|
2845
|
+
'regexp/no-empty-alternative'?: Linter.RuleEntry<[]>
|
|
2744
2846
|
/**
|
|
2745
|
-
*
|
|
2746
|
-
* @see https://github.
|
|
2847
|
+
* disallow capturing group that captures empty.
|
|
2848
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-capturing-group.html
|
|
2747
2849
|
*/
|
|
2748
|
-
'
|
|
2850
|
+
'regexp/no-empty-capturing-group'?: Linter.RuleEntry<[]>
|
|
2749
2851
|
/**
|
|
2750
|
-
*
|
|
2751
|
-
* @see https://github.
|
|
2852
|
+
* disallow character classes that match no characters
|
|
2853
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html
|
|
2752
2854
|
*/
|
|
2753
|
-
'
|
|
2855
|
+
'regexp/no-empty-character-class'?: Linter.RuleEntry<[]>
|
|
2754
2856
|
/**
|
|
2755
|
-
*
|
|
2756
|
-
* @see https://github.
|
|
2857
|
+
* disallow empty group
|
|
2858
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-group.html
|
|
2757
2859
|
*/
|
|
2758
|
-
'
|
|
2860
|
+
'regexp/no-empty-group'?: Linter.RuleEntry<[]>
|
|
2759
2861
|
/**
|
|
2760
|
-
*
|
|
2761
|
-
* @see https://github.
|
|
2862
|
+
* disallow empty lookahead assertion or empty lookbehind assertion
|
|
2863
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-lookarounds-assertion.html
|
|
2762
2864
|
*/
|
|
2763
|
-
'
|
|
2865
|
+
'regexp/no-empty-lookarounds-assertion'?: Linter.RuleEntry<[]>
|
|
2764
2866
|
/**
|
|
2765
|
-
*
|
|
2766
|
-
* @see https://github.
|
|
2867
|
+
* disallow empty string literals in character classes
|
|
2868
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-string-literal.html
|
|
2767
2869
|
*/
|
|
2768
|
-
'
|
|
2870
|
+
'regexp/no-empty-string-literal'?: Linter.RuleEntry<[]>
|
|
2769
2871
|
/**
|
|
2770
|
-
*
|
|
2771
|
-
* @see https://github.
|
|
2872
|
+
* disallow escape backspace (`[\b]`)
|
|
2873
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-escape-backspace.html
|
|
2772
2874
|
*/
|
|
2773
|
-
'
|
|
2875
|
+
'regexp/no-escape-backspace'?: Linter.RuleEntry<[]>
|
|
2774
2876
|
/**
|
|
2775
|
-
*
|
|
2776
|
-
* @see https://github.
|
|
2877
|
+
* disallow unnecessary nested lookaround assertions
|
|
2878
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html
|
|
2777
2879
|
*/
|
|
2778
|
-
'
|
|
2880
|
+
'regexp/no-extra-lookaround-assertions'?: Linter.RuleEntry<[]>
|
|
2779
2881
|
/**
|
|
2780
|
-
*
|
|
2781
|
-
* @see https://github.
|
|
2882
|
+
* disallow invalid regular expression strings in `RegExp` constructors
|
|
2883
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invalid-regexp.html
|
|
2782
2884
|
*/
|
|
2783
|
-
'
|
|
2885
|
+
'regexp/no-invalid-regexp'?: Linter.RuleEntry<[]>
|
|
2784
2886
|
/**
|
|
2785
|
-
*
|
|
2786
|
-
* @see https://github.
|
|
2887
|
+
* disallow invisible raw character
|
|
2888
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invisible-character.html
|
|
2787
2889
|
*/
|
|
2788
|
-
'
|
|
2890
|
+
'regexp/no-invisible-character'?: Linter.RuleEntry<[]>
|
|
2789
2891
|
/**
|
|
2790
|
-
*
|
|
2791
|
-
* @see https://github.
|
|
2892
|
+
* disallow lazy quantifiers at the end of an expression
|
|
2893
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-lazy-ends.html
|
|
2792
2894
|
*/
|
|
2793
|
-
'
|
|
2895
|
+
'regexp/no-lazy-ends'?: Linter.RuleEntry<RegexpNoLazyEnds>
|
|
2794
2896
|
/**
|
|
2795
|
-
*
|
|
2796
|
-
* @see https://github.
|
|
2897
|
+
* disallow legacy RegExp features
|
|
2898
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-legacy-features.html
|
|
2797
2899
|
*/
|
|
2798
|
-
'
|
|
2900
|
+
'regexp/no-legacy-features'?: Linter.RuleEntry<RegexpNoLegacyFeatures>
|
|
2799
2901
|
/**
|
|
2800
|
-
*
|
|
2801
|
-
* @see https://github.
|
|
2902
|
+
* disallow capturing groups that do not behave as one would expect
|
|
2903
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html
|
|
2802
2904
|
*/
|
|
2803
|
-
'
|
|
2905
|
+
'regexp/no-misleading-capturing-group'?: Linter.RuleEntry<RegexpNoMisleadingCapturingGroup>
|
|
2804
2906
|
/**
|
|
2805
|
-
*
|
|
2806
|
-
* @see https://github.
|
|
2907
|
+
* disallow multi-code-point characters in character classes and quantifiers
|
|
2908
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html
|
|
2807
2909
|
*/
|
|
2808
|
-
'
|
|
2910
|
+
'regexp/no-misleading-unicode-character'?: Linter.RuleEntry<RegexpNoMisleadingUnicodeCharacter>
|
|
2809
2911
|
/**
|
|
2810
|
-
*
|
|
2811
|
-
* @see https://github.
|
|
2912
|
+
* disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll`
|
|
2913
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html
|
|
2812
2914
|
*/
|
|
2813
|
-
'
|
|
2915
|
+
'regexp/no-missing-g-flag'?: Linter.RuleEntry<RegexpNoMissingGFlag>
|
|
2814
2916
|
/**
|
|
2815
|
-
*
|
|
2816
|
-
* @see https://github.
|
|
2917
|
+
* disallow non-standard flags
|
|
2918
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-non-standard-flag.html
|
|
2817
2919
|
*/
|
|
2818
|
-
'
|
|
2920
|
+
'regexp/no-non-standard-flag'?: Linter.RuleEntry<[]>
|
|
2819
2921
|
/**
|
|
2820
|
-
*
|
|
2821
|
-
* @see https://github.
|
|
2922
|
+
* disallow obscure character ranges
|
|
2923
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-obscure-range.html
|
|
2822
2924
|
*/
|
|
2823
|
-
'
|
|
2925
|
+
'regexp/no-obscure-range'?: Linter.RuleEntry<RegexpNoObscureRange>
|
|
2824
2926
|
/**
|
|
2825
|
-
*
|
|
2826
|
-
* @see https://github.
|
|
2927
|
+
* disallow octal escape sequence
|
|
2928
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-octal.html
|
|
2827
2929
|
*/
|
|
2828
|
-
'
|
|
2930
|
+
'regexp/no-octal'?: Linter.RuleEntry<[]>
|
|
2829
2931
|
/**
|
|
2830
|
-
*
|
|
2831
|
-
* @see https://github.
|
|
2932
|
+
* disallow optional assertions
|
|
2933
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html
|
|
2832
2934
|
*/
|
|
2833
|
-
'
|
|
2935
|
+
'regexp/no-optional-assertion'?: Linter.RuleEntry<[]>
|
|
2834
2936
|
/**
|
|
2835
|
-
*
|
|
2836
|
-
* @see https://github.
|
|
2937
|
+
* disallow backreferences that reference a group that might not be matched
|
|
2938
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html
|
|
2837
2939
|
*/
|
|
2838
|
-
'
|
|
2940
|
+
'regexp/no-potentially-useless-backreference'?: Linter.RuleEntry<[]>
|
|
2839
2941
|
/**
|
|
2840
|
-
*
|
|
2841
|
-
* @see https://github.
|
|
2942
|
+
* disallow standalone backslashes (`\`)
|
|
2943
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-standalone-backslash.html
|
|
2842
2944
|
*/
|
|
2843
|
-
'
|
|
2945
|
+
'regexp/no-standalone-backslash'?: Linter.RuleEntry<[]>
|
|
2844
2946
|
/**
|
|
2845
|
-
*
|
|
2846
|
-
* @see https://github.
|
|
2947
|
+
* disallow exponential and polynomial backtracking
|
|
2948
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-backtracking.html
|
|
2847
2949
|
*/
|
|
2848
|
-
'
|
|
2950
|
+
'regexp/no-super-linear-backtracking'?: Linter.RuleEntry<RegexpNoSuperLinearBacktracking>
|
|
2849
2951
|
/**
|
|
2850
|
-
*
|
|
2851
|
-
* @see https://github.
|
|
2952
|
+
* disallow quantifiers that cause quadratic moves
|
|
2953
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-move.html
|
|
2852
2954
|
*/
|
|
2853
|
-
'
|
|
2955
|
+
'regexp/no-super-linear-move'?: Linter.RuleEntry<RegexpNoSuperLinearMove>
|
|
2854
2956
|
/**
|
|
2855
|
-
*
|
|
2856
|
-
* @see https://github.
|
|
2957
|
+
* disallow trivially nested assertions
|
|
2958
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-assertion.html
|
|
2857
2959
|
*/
|
|
2858
|
-
'
|
|
2960
|
+
'regexp/no-trivially-nested-assertion'?: Linter.RuleEntry<[]>
|
|
2859
2961
|
/**
|
|
2860
|
-
*
|
|
2861
|
-
* @see https://github.
|
|
2962
|
+
* disallow nested quantifiers that can be rewritten as one quantifier
|
|
2963
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-quantifier.html
|
|
2862
2964
|
*/
|
|
2863
|
-
'
|
|
2965
|
+
'regexp/no-trivially-nested-quantifier'?: Linter.RuleEntry<[]>
|
|
2864
2966
|
/**
|
|
2865
|
-
*
|
|
2866
|
-
* @see https://github.
|
|
2967
|
+
* disallow unused capturing group
|
|
2968
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-unused-capturing-group.html
|
|
2867
2969
|
*/
|
|
2868
|
-
'
|
|
2970
|
+
'regexp/no-unused-capturing-group'?: Linter.RuleEntry<RegexpNoUnusedCapturingGroup>
|
|
2869
2971
|
/**
|
|
2870
|
-
*
|
|
2871
|
-
* @see https://github.
|
|
2972
|
+
* disallow assertions that are known to always accept (or reject)
|
|
2973
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-assertions.html
|
|
2872
2974
|
*/
|
|
2873
|
-
'
|
|
2975
|
+
'regexp/no-useless-assertions'?: Linter.RuleEntry<[]>
|
|
2874
2976
|
/**
|
|
2875
|
-
*
|
|
2876
|
-
* @see https://github.
|
|
2977
|
+
* disallow useless backreferences in regular expressions
|
|
2978
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-backreference.html
|
|
2877
2979
|
*/
|
|
2878
|
-
'
|
|
2980
|
+
'regexp/no-useless-backreference'?: Linter.RuleEntry<[]>
|
|
2879
2981
|
/**
|
|
2880
|
-
*
|
|
2881
|
-
* @see https://github.
|
|
2982
|
+
* disallow character class with one character
|
|
2983
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-character-class.html
|
|
2882
2984
|
*/
|
|
2883
|
-
'
|
|
2985
|
+
'regexp/no-useless-character-class'?: Linter.RuleEntry<RegexpNoUselessCharacterClass>
|
|
2884
2986
|
/**
|
|
2885
|
-
*
|
|
2886
|
-
* @see https://github.
|
|
2987
|
+
* disallow useless `$` replacements in replacement string
|
|
2988
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-dollar-replacements.html
|
|
2887
2989
|
*/
|
|
2888
|
-
'
|
|
2990
|
+
'regexp/no-useless-dollar-replacements'?: Linter.RuleEntry<[]>
|
|
2889
2991
|
/**
|
|
2890
|
-
*
|
|
2891
|
-
* @see https://github.
|
|
2992
|
+
* disallow unnecessary escape characters in RegExp
|
|
2993
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-escape.html
|
|
2892
2994
|
*/
|
|
2893
|
-
'
|
|
2995
|
+
'regexp/no-useless-escape'?: Linter.RuleEntry<[]>
|
|
2894
2996
|
/**
|
|
2895
|
-
*
|
|
2896
|
-
* @see https://github.
|
|
2997
|
+
* disallow unnecessary regex flags
|
|
2998
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-flag.html
|
|
2897
2999
|
*/
|
|
2898
|
-
'
|
|
3000
|
+
'regexp/no-useless-flag'?: Linter.RuleEntry<RegexpNoUselessFlag>
|
|
2899
3001
|
/**
|
|
2900
|
-
*
|
|
2901
|
-
* @see https://github.
|
|
3002
|
+
* disallow unnecessarily non-greedy quantifiers
|
|
3003
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-lazy.html
|
|
2902
3004
|
*/
|
|
2903
|
-
'
|
|
3005
|
+
'regexp/no-useless-lazy'?: Linter.RuleEntry<[]>
|
|
3006
|
+
/**
|
|
3007
|
+
* disallow unnecessary non-capturing group
|
|
3008
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html
|
|
3009
|
+
*/
|
|
3010
|
+
'regexp/no-useless-non-capturing-group'?: Linter.RuleEntry<RegexpNoUselessNonCapturingGroup>
|
|
3011
|
+
/**
|
|
3012
|
+
* disallow quantifiers that can be removed
|
|
3013
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-quantifier.html
|
|
3014
|
+
*/
|
|
3015
|
+
'regexp/no-useless-quantifier'?: Linter.RuleEntry<[]>
|
|
3016
|
+
/**
|
|
3017
|
+
* disallow unnecessary character ranges
|
|
3018
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html
|
|
3019
|
+
*/
|
|
3020
|
+
'regexp/no-useless-range'?: Linter.RuleEntry<[]>
|
|
3021
|
+
/**
|
|
3022
|
+
* disallow unnecessary elements in expression character classes
|
|
3023
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html
|
|
3024
|
+
*/
|
|
3025
|
+
'regexp/no-useless-set-operand'?: Linter.RuleEntry<[]>
|
|
3026
|
+
/**
|
|
3027
|
+
* disallow string disjunction of single characters in `\q{...}`
|
|
3028
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-string-literal.html
|
|
3029
|
+
*/
|
|
3030
|
+
'regexp/no-useless-string-literal'?: Linter.RuleEntry<[]>
|
|
3031
|
+
/**
|
|
3032
|
+
* disallow unnecessary `{n,m}` quantifier
|
|
3033
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html
|
|
3034
|
+
*/
|
|
3035
|
+
'regexp/no-useless-two-nums-quantifier'?: Linter.RuleEntry<[]>
|
|
3036
|
+
/**
|
|
3037
|
+
* disallow quantifiers with a maximum of zero
|
|
3038
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-zero-quantifier.html
|
|
3039
|
+
*/
|
|
3040
|
+
'regexp/no-zero-quantifier'?: Linter.RuleEntry<[]>
|
|
3041
|
+
/**
|
|
3042
|
+
* disallow the alternatives of lookarounds that end with a non-constant quantifier
|
|
3043
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html
|
|
3044
|
+
*/
|
|
3045
|
+
'regexp/optimal-lookaround-quantifier'?: Linter.RuleEntry<[]>
|
|
3046
|
+
/**
|
|
3047
|
+
* require optimal quantifiers for concatenated quantifiers
|
|
3048
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-quantifier-concatenation.html
|
|
3049
|
+
*/
|
|
3050
|
+
'regexp/optimal-quantifier-concatenation'?: Linter.RuleEntry<RegexpOptimalQuantifierConcatenation>
|
|
3051
|
+
/**
|
|
3052
|
+
* enforce using character class
|
|
3053
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html
|
|
3054
|
+
*/
|
|
3055
|
+
'regexp/prefer-character-class'?: Linter.RuleEntry<RegexpPreferCharacterClass>
|
|
3056
|
+
/**
|
|
3057
|
+
* enforce using `\d`
|
|
3058
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html
|
|
3059
|
+
*/
|
|
3060
|
+
'regexp/prefer-d'?: Linter.RuleEntry<RegexpPreferD>
|
|
3061
|
+
/**
|
|
3062
|
+
* enforces escape of replacement `$` character (`$$`).
|
|
3063
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-escape-replacement-dollar-char.html
|
|
3064
|
+
*/
|
|
3065
|
+
'regexp/prefer-escape-replacement-dollar-char'?: Linter.RuleEntry<[]>
|
|
3066
|
+
/**
|
|
3067
|
+
* prefer lookarounds over capturing group that do not replace
|
|
3068
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html
|
|
3069
|
+
*/
|
|
3070
|
+
'regexp/prefer-lookaround'?: Linter.RuleEntry<RegexpPreferLookaround>
|
|
3071
|
+
/**
|
|
3072
|
+
* enforce using named backreferences
|
|
3073
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-backreference.html
|
|
3074
|
+
*/
|
|
3075
|
+
'regexp/prefer-named-backreference'?: Linter.RuleEntry<[]>
|
|
3076
|
+
/**
|
|
3077
|
+
* enforce using named capture groups
|
|
3078
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-capture-group.html
|
|
3079
|
+
*/
|
|
3080
|
+
'regexp/prefer-named-capture-group'?: Linter.RuleEntry<[]>
|
|
2904
3081
|
/**
|
|
2905
|
-
*
|
|
2906
|
-
* @see https://github.
|
|
3082
|
+
* enforce using named replacement
|
|
3083
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-replacement.html
|
|
2907
3084
|
*/
|
|
2908
|
-
'
|
|
3085
|
+
'regexp/prefer-named-replacement'?: Linter.RuleEntry<RegexpPreferNamedReplacement>
|
|
2909
3086
|
/**
|
|
2910
|
-
*
|
|
2911
|
-
* @see https://github.
|
|
3087
|
+
* enforce using `+` quantifier
|
|
3088
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-plus-quantifier.html
|
|
2912
3089
|
*/
|
|
2913
|
-
'
|
|
3090
|
+
'regexp/prefer-plus-quantifier'?: Linter.RuleEntry<[]>
|
|
2914
3091
|
/**
|
|
2915
|
-
*
|
|
2916
|
-
* @see https://github.
|
|
3092
|
+
* prefer predefined assertion over equivalent lookarounds
|
|
3093
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-predefined-assertion.html
|
|
2917
3094
|
*/
|
|
2918
|
-
'
|
|
3095
|
+
'regexp/prefer-predefined-assertion'?: Linter.RuleEntry<[]>
|
|
2919
3096
|
/**
|
|
2920
|
-
*
|
|
2921
|
-
* @see https://github.
|
|
3097
|
+
* enforce using quantifier
|
|
3098
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
|
|
2922
3099
|
*/
|
|
2923
|
-
'
|
|
3100
|
+
'regexp/prefer-quantifier'?: Linter.RuleEntry<[]>
|
|
2924
3101
|
/**
|
|
2925
|
-
*
|
|
2926
|
-
* @see https://github.
|
|
3102
|
+
* enforce using `?` quantifier
|
|
3103
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
|
|
2927
3104
|
*/
|
|
2928
|
-
'
|
|
3105
|
+
'regexp/prefer-question-quantifier'?: Linter.RuleEntry<[]>
|
|
2929
3106
|
/**
|
|
2930
|
-
*
|
|
2931
|
-
* @see https://github.
|
|
3107
|
+
* enforce using character class range
|
|
3108
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-range.html
|
|
2932
3109
|
*/
|
|
2933
|
-
'
|
|
3110
|
+
'regexp/prefer-range'?: Linter.RuleEntry<RegexpPreferRange>
|
|
2934
3111
|
/**
|
|
2935
|
-
*
|
|
2936
|
-
* @see https://github.
|
|
3112
|
+
* enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
|
|
3113
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-exec.html
|
|
2937
3114
|
*/
|
|
2938
|
-
'
|
|
3115
|
+
'regexp/prefer-regexp-exec'?: Linter.RuleEntry<[]>
|
|
2939
3116
|
/**
|
|
2940
|
-
*
|
|
2941
|
-
* @see https://github.
|
|
3117
|
+
* enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
|
|
3118
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html
|
|
2942
3119
|
*/
|
|
2943
|
-
'
|
|
3120
|
+
'regexp/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
2944
3121
|
/**
|
|
2945
|
-
*
|
|
2946
|
-
* @see https://github.
|
|
3122
|
+
* enforce using result array `groups`
|
|
3123
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-result-array-groups.html
|
|
2947
3124
|
*/
|
|
2948
|
-
'
|
|
3125
|
+
'regexp/prefer-result-array-groups'?: Linter.RuleEntry<RegexpPreferResultArrayGroups>
|
|
2949
3126
|
/**
|
|
2950
|
-
*
|
|
2951
|
-
* @see https://github.
|
|
3127
|
+
* prefer character class set operations instead of lookarounds
|
|
3128
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-set-operation.html
|
|
2952
3129
|
*/
|
|
2953
|
-
'
|
|
3130
|
+
'regexp/prefer-set-operation'?: Linter.RuleEntry<[]>
|
|
2954
3131
|
/**
|
|
2955
|
-
*
|
|
2956
|
-
* @see https://github.
|
|
3132
|
+
* enforce using `*` quantifier
|
|
3133
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-star-quantifier.html
|
|
2957
3134
|
*/
|
|
2958
|
-
'
|
|
3135
|
+
'regexp/prefer-star-quantifier'?: Linter.RuleEntry<[]>
|
|
2959
3136
|
/**
|
|
2960
|
-
*
|
|
2961
|
-
* @see https://github.
|
|
3137
|
+
* enforce use of unicode codepoint escapes
|
|
3138
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-unicode-codepoint-escapes.html
|
|
2962
3139
|
*/
|
|
2963
|
-
'
|
|
3140
|
+
'regexp/prefer-unicode-codepoint-escapes'?: Linter.RuleEntry<[]>
|
|
2964
3141
|
/**
|
|
2965
|
-
*
|
|
2966
|
-
* @see https://github.
|
|
3142
|
+
* enforce using `\w`
|
|
3143
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-w.html
|
|
2967
3144
|
*/
|
|
2968
|
-
'
|
|
3145
|
+
'regexp/prefer-w'?: Linter.RuleEntry<[]>
|
|
2969
3146
|
/**
|
|
2970
|
-
*
|
|
2971
|
-
* @see https://github.
|
|
3147
|
+
* enforce the use of the `u` flag
|
|
3148
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html
|
|
2972
3149
|
*/
|
|
2973
|
-
'
|
|
3150
|
+
'regexp/require-unicode-regexp'?: Linter.RuleEntry<[]>
|
|
2974
3151
|
/**
|
|
2975
|
-
*
|
|
2976
|
-
* @see https://github.
|
|
3152
|
+
* enforce the use of the `v` flag
|
|
3153
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-sets-regexp.html
|
|
2977
3154
|
*/
|
|
2978
|
-
'
|
|
3155
|
+
'regexp/require-unicode-sets-regexp'?: Linter.RuleEntry<[]>
|
|
2979
3156
|
/**
|
|
2980
|
-
*
|
|
2981
|
-
* @see https://github.
|
|
3157
|
+
* require simplify set operations
|
|
3158
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/simplify-set-operations.html
|
|
2982
3159
|
*/
|
|
2983
|
-
'
|
|
3160
|
+
'regexp/simplify-set-operations'?: Linter.RuleEntry<[]>
|
|
2984
3161
|
/**
|
|
2985
|
-
*
|
|
2986
|
-
* @see https://github.
|
|
3162
|
+
* sort alternatives if order doesn't matter
|
|
3163
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html
|
|
2987
3164
|
*/
|
|
2988
|
-
'
|
|
3165
|
+
'regexp/sort-alternatives'?: Linter.RuleEntry<[]>
|
|
2989
3166
|
/**
|
|
2990
|
-
*
|
|
2991
|
-
* @see https://github.
|
|
3167
|
+
* enforces elements order in character class
|
|
3168
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-character-class-elements.html
|
|
2992
3169
|
*/
|
|
2993
|
-
'
|
|
3170
|
+
'regexp/sort-character-class-elements'?: Linter.RuleEntry<RegexpSortCharacterClassElements>
|
|
3171
|
+
/**
|
|
3172
|
+
* require regex flags to be sorted
|
|
3173
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-flags.html
|
|
3174
|
+
*/
|
|
3175
|
+
'regexp/sort-flags'?: Linter.RuleEntry<[]>
|
|
3176
|
+
/**
|
|
3177
|
+
* disallow not strictly valid regular expressions
|
|
3178
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/strict.html
|
|
3179
|
+
*/
|
|
3180
|
+
'regexp/strict'?: Linter.RuleEntry<[]>
|
|
3181
|
+
/**
|
|
3182
|
+
* enforce consistent usage of unicode escape or unicode codepoint escape
|
|
3183
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-escape.html
|
|
3184
|
+
*/
|
|
3185
|
+
'regexp/unicode-escape'?: Linter.RuleEntry<RegexpUnicodeEscape>
|
|
3186
|
+
/**
|
|
3187
|
+
* enforce consistent naming of unicode properties
|
|
3188
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-property.html
|
|
3189
|
+
*/
|
|
3190
|
+
'regexp/unicode-property'?: Linter.RuleEntry<RegexpUnicodeProperty>
|
|
3191
|
+
/**
|
|
3192
|
+
* use the `i` flag if it simplifies the pattern
|
|
3193
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
|
|
3194
|
+
*/
|
|
3195
|
+
'regexp/use-ignore-case'?: Linter.RuleEntry<[]>
|
|
2994
3196
|
/**
|
|
2995
3197
|
* Disallow assignments that can lead to race conditions due to usage of `await` or `yield`
|
|
2996
3198
|
* @see https://eslint.org/docs/latest/rules/require-atomic-updates
|
|
@@ -3287,6 +3489,11 @@ interface RuleOptions {
|
|
|
3287
3489
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-store-async/
|
|
3288
3490
|
*/
|
|
3289
3491
|
'svelte/no-store-async'?: Linter.RuleEntry<[]>
|
|
3492
|
+
/**
|
|
3493
|
+
* svelte/internal will be removed in Svelte 6.
|
|
3494
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-svelte-internal/
|
|
3495
|
+
*/
|
|
3496
|
+
'svelte/no-svelte-internal'?: Linter.RuleEntry<[]>
|
|
3290
3497
|
/**
|
|
3291
3498
|
* disallow `target="_blank"` attribute without `rel="noopener noreferrer"`
|
|
3292
3499
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-target-blank/
|
|
@@ -4436,652 +4643,677 @@ interface RuleOptions {
|
|
|
4436
4643
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
4437
4644
|
/**
|
|
4438
4645
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/better-regex.md
|
|
4440
4647
|
*/
|
|
4441
4648
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
4442
4649
|
/**
|
|
4443
4650
|
* Enforce a specific parameter name in catch clauses.
|
|
4444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/catch-error-name.md
|
|
4445
4652
|
*/
|
|
4446
4653
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
4447
4654
|
/**
|
|
4448
4655
|
* Use destructured variables over properties.
|
|
4449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-destructuring.md
|
|
4450
4657
|
*/
|
|
4451
4658
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
4659
|
+
/**
|
|
4660
|
+
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4662
|
+
*/
|
|
4663
|
+
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
4452
4664
|
/**
|
|
4453
4665
|
* Move function definitions to the highest possible scope.
|
|
4454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-function-scoping.md
|
|
4455
4667
|
*/
|
|
4456
4668
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
4457
4669
|
/**
|
|
4458
4670
|
* Enforce correct `Error` subclassing.
|
|
4459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/custom-error-definition.md
|
|
4460
4672
|
*/
|
|
4461
4673
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
4462
4674
|
/**
|
|
4463
4675
|
* Enforce no spaces between braces.
|
|
4464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/empty-brace-spaces.md
|
|
4465
4677
|
*/
|
|
4466
4678
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
4467
4679
|
/**
|
|
4468
4680
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/error-message.md
|
|
4470
4682
|
*/
|
|
4471
4683
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
4472
4684
|
/**
|
|
4473
4685
|
* Require escape sequences to use uppercase values.
|
|
4474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4686
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/escape-case.md
|
|
4475
4687
|
*/
|
|
4476
4688
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
4477
4689
|
/**
|
|
4478
4690
|
* Add expiration conditions to TODO comments.
|
|
4479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4691
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/expiring-todo-comments.md
|
|
4480
4692
|
*/
|
|
4481
4693
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
4482
4694
|
/**
|
|
4483
4695
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4696
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/explicit-length-check.md
|
|
4485
4697
|
*/
|
|
4486
4698
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
4487
4699
|
/**
|
|
4488
4700
|
* Enforce a case style for filenames.
|
|
4489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4701
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/filename-case.md
|
|
4490
4702
|
*/
|
|
4491
4703
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
4492
4704
|
/**
|
|
4493
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4705
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#import-index
|
|
4494
4706
|
* @deprecated
|
|
4495
4707
|
*/
|
|
4496
4708
|
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
4497
4709
|
/**
|
|
4498
4710
|
* Enforce specific import styles per module.
|
|
4499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/import-style.md
|
|
4500
4712
|
*/
|
|
4501
4713
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
4502
4714
|
/**
|
|
4503
4715
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/new-for-builtins.md
|
|
4505
4717
|
*/
|
|
4506
4718
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
4507
4719
|
/**
|
|
4508
4720
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4510
4722
|
*/
|
|
4511
4723
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
4512
4724
|
/**
|
|
4513
4725
|
* Disallow anonymous functions and classes as the default export.
|
|
4514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-anonymous-default-export.md
|
|
4515
4727
|
*/
|
|
4516
4728
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
4517
4729
|
/**
|
|
4518
4730
|
* Prevent passing a function reference directly to iterator methods.
|
|
4519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-callback-reference.md
|
|
4520
4732
|
*/
|
|
4521
4733
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
4522
4734
|
/**
|
|
4523
4735
|
* Prefer `for…of` over the `forEach` method.
|
|
4524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-for-each.md
|
|
4525
4737
|
*/
|
|
4526
4738
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
4527
4739
|
/**
|
|
4528
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4740
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
4529
4741
|
* @deprecated
|
|
4530
4742
|
*/
|
|
4531
4743
|
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
4532
4744
|
/**
|
|
4533
4745
|
* Disallow using the `this` argument in array methods.
|
|
4534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-method-this-argument.md
|
|
4535
4747
|
*/
|
|
4536
4748
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
4537
4749
|
/**
|
|
4538
4750
|
* Enforce combining multiple `Array#push()` into one call.
|
|
4539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-push-push.md
|
|
4540
4752
|
*/
|
|
4541
4753
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
4542
4754
|
/**
|
|
4543
4755
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-reduce.md
|
|
4545
4757
|
*/
|
|
4546
4758
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
4547
4759
|
/**
|
|
4548
4760
|
* Disallow member access from await expression.
|
|
4549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-expression-member.md
|
|
4550
4762
|
*/
|
|
4551
4763
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
4552
4764
|
/**
|
|
4553
4765
|
* Disallow using `await` in `Promise` method parameters.
|
|
4554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4555
4767
|
*/
|
|
4556
4768
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4557
4769
|
/**
|
|
4558
4770
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-console-spaces.md
|
|
4560
4772
|
*/
|
|
4561
4773
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
4562
4774
|
/**
|
|
4563
4775
|
* Do not use `document.cookie` directly.
|
|
4564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-document-cookie.md
|
|
4565
4777
|
*/
|
|
4566
4778
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
4567
4779
|
/**
|
|
4568
4780
|
* Disallow empty files.
|
|
4569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-empty-file.md
|
|
4570
4782
|
*/
|
|
4571
4783
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
4572
4784
|
/**
|
|
4573
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4785
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
4574
4786
|
* @deprecated
|
|
4575
4787
|
*/
|
|
4576
4788
|
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
4577
4789
|
/**
|
|
4578
4790
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-for-loop.md
|
|
4580
4792
|
*/
|
|
4581
4793
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
4582
4794
|
/**
|
|
4583
4795
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
4584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-hex-escape.md
|
|
4585
4797
|
*/
|
|
4586
4798
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
4587
4799
|
/**
|
|
4588
4800
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
4589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-instanceof-array.md
|
|
4590
4802
|
*/
|
|
4591
4803
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
4804
|
+
/**
|
|
4805
|
+
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
4806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-fetch-options.md
|
|
4807
|
+
*/
|
|
4808
|
+
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
4592
4809
|
/**
|
|
4593
4810
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
4595
4812
|
*/
|
|
4596
4813
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
4597
4814
|
/**
|
|
4598
4815
|
* Disallow identifiers starting with `new` or `class`.
|
|
4599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-keyword-prefix.md
|
|
4600
4817
|
*/
|
|
4601
4818
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
4602
4819
|
/**
|
|
4603
4820
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-lonely-if.md
|
|
4605
4822
|
*/
|
|
4606
4823
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
4824
|
+
/**
|
|
4825
|
+
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
4826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
4827
|
+
*/
|
|
4828
|
+
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
4607
4829
|
/**
|
|
4608
4830
|
* Disallow negated conditions.
|
|
4609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-negated-condition.md
|
|
4610
4832
|
*/
|
|
4611
4833
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
4612
4834
|
/**
|
|
4613
4835
|
* Disallow nested ternary expressions.
|
|
4614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-nested-ternary.md
|
|
4615
4837
|
*/
|
|
4616
4838
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
4617
4839
|
/**
|
|
4618
4840
|
* Disallow `new Array()`.
|
|
4619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-array.md
|
|
4620
4842
|
*/
|
|
4621
4843
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
4622
4844
|
/**
|
|
4623
4845
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-buffer.md
|
|
4625
4847
|
*/
|
|
4626
4848
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
4627
4849
|
/**
|
|
4628
4850
|
* Disallow the use of the `null` literal.
|
|
4629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-null.md
|
|
4630
4852
|
*/
|
|
4631
4853
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
4632
4854
|
/**
|
|
4633
4855
|
* Disallow the use of objects as default parameters.
|
|
4634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4635
4857
|
*/
|
|
4636
4858
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
4637
4859
|
/**
|
|
4638
4860
|
* Disallow `process.exit()`.
|
|
4639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-process-exit.md
|
|
4640
4862
|
*/
|
|
4641
4863
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
4642
4864
|
/**
|
|
4643
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4865
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-reduce
|
|
4644
4866
|
* @deprecated
|
|
4645
4867
|
*/
|
|
4646
4868
|
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
4647
4869
|
/**
|
|
4648
4870
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
4649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
4650
4872
|
*/
|
|
4651
4873
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4652
4874
|
/**
|
|
4653
4875
|
* Disallow classes that only have static members.
|
|
4654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-static-only-class.md
|
|
4655
4877
|
*/
|
|
4656
4878
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
4657
4879
|
/**
|
|
4658
4880
|
* Disallow `then` property.
|
|
4659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-thenable.md
|
|
4660
4882
|
*/
|
|
4661
4883
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
4662
4884
|
/**
|
|
4663
4885
|
* Disallow assigning `this` to a variable.
|
|
4664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-this-assignment.md
|
|
4665
4887
|
*/
|
|
4666
4888
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
4667
4889
|
/**
|
|
4668
4890
|
* Disallow comparing `undefined` using `typeof`.
|
|
4669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-typeof-undefined.md
|
|
4670
4892
|
*/
|
|
4671
4893
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
4672
4894
|
/**
|
|
4673
4895
|
* Disallow awaiting non-promise values.
|
|
4674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-await.md
|
|
4675
4897
|
*/
|
|
4676
4898
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
4677
4899
|
/**
|
|
4678
4900
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
4680
4902
|
*/
|
|
4681
4903
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
4682
4904
|
/**
|
|
4683
4905
|
* Disallow unreadable array destructuring.
|
|
4684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
4685
4907
|
*/
|
|
4686
4908
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
4687
4909
|
/**
|
|
4688
4910
|
* Disallow unreadable IIFEs.
|
|
4689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-iife.md
|
|
4690
4912
|
*/
|
|
4691
4913
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
4692
4914
|
/**
|
|
4693
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4915
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
4694
4916
|
* @deprecated
|
|
4695
4917
|
*/
|
|
4696
4918
|
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
4697
4919
|
/**
|
|
4698
4920
|
* Disallow unused object properties.
|
|
4699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unused-properties.md
|
|
4700
4922
|
*/
|
|
4701
4923
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
4702
4924
|
/**
|
|
4703
4925
|
* Disallow useless fallback when spreading in object literals.
|
|
4704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
4705
4927
|
*/
|
|
4706
4928
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
4707
4929
|
/**
|
|
4708
4930
|
* Disallow useless array length check.
|
|
4709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-length-check.md
|
|
4710
4932
|
*/
|
|
4711
4933
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
4712
4934
|
/**
|
|
4713
4935
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
4715
4937
|
*/
|
|
4716
4938
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
4717
4939
|
/**
|
|
4718
4940
|
* Disallow unnecessary spread.
|
|
4719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-spread.md
|
|
4720
4942
|
*/
|
|
4721
4943
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
4722
4944
|
/**
|
|
4723
4945
|
* Disallow useless case in switch statements.
|
|
4724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-switch-case.md
|
|
4725
4947
|
*/
|
|
4726
4948
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
4727
4949
|
/**
|
|
4728
4950
|
* Disallow useless `undefined`.
|
|
4729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-undefined.md
|
|
4730
4952
|
*/
|
|
4731
4953
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
4732
4954
|
/**
|
|
4733
4955
|
* Disallow number literals with zero fractions or dangling dots.
|
|
4734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-zero-fractions.md
|
|
4735
4957
|
*/
|
|
4736
4958
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
4737
4959
|
/**
|
|
4738
4960
|
* Enforce proper case for numeric literals.
|
|
4739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/number-literal-case.md
|
|
4740
4962
|
*/
|
|
4741
4963
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
4742
4964
|
/**
|
|
4743
4965
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/numeric-separators-style.md
|
|
4745
4967
|
*/
|
|
4746
4968
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
4747
4969
|
/**
|
|
4748
4970
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-add-event-listener.md
|
|
4750
4972
|
*/
|
|
4751
4973
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
4752
4974
|
/**
|
|
4753
4975
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-find.md
|
|
4755
4977
|
*/
|
|
4756
4978
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
4757
4979
|
/**
|
|
4758
4980
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat.md
|
|
4760
4982
|
*/
|
|
4761
4983
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
4762
4984
|
/**
|
|
4763
4985
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat-map.md
|
|
4765
4987
|
*/
|
|
4766
4988
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
4767
4989
|
/**
|
|
4768
4990
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
4769
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-index-of.md
|
|
4770
4992
|
*/
|
|
4771
4993
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
4772
4994
|
/**
|
|
4773
4995
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
|
|
4774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-some.md
|
|
4775
4997
|
*/
|
|
4776
4998
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
4777
4999
|
/**
|
|
4778
5000
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-at.md
|
|
4780
5002
|
*/
|
|
4781
5003
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
4782
5004
|
/**
|
|
4783
5005
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
4785
5007
|
*/
|
|
4786
5008
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
4787
5009
|
/**
|
|
4788
5010
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
4789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-code-point.md
|
|
4790
5012
|
*/
|
|
4791
5013
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
4792
5014
|
/**
|
|
4793
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
4794
5016
|
* @deprecated
|
|
4795
5017
|
*/
|
|
4796
5018
|
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
4797
5019
|
/**
|
|
4798
5020
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
4799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-date-now.md
|
|
4800
5022
|
*/
|
|
4801
5023
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
4802
5024
|
/**
|
|
4803
5025
|
* Prefer default parameters over reassignment.
|
|
4804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5026
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-default-parameters.md
|
|
4805
5027
|
*/
|
|
4806
5028
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
4807
5029
|
/**
|
|
4808
5030
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5031
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-append.md
|
|
4810
5032
|
*/
|
|
4811
5033
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
4812
5034
|
/**
|
|
4813
5035
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4814
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
4815
5037
|
*/
|
|
4816
5038
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
4817
5039
|
/**
|
|
4818
5040
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4819
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5041
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-remove.md
|
|
4820
5042
|
*/
|
|
4821
5043
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
4822
5044
|
/**
|
|
4823
5045
|
* Prefer `.textContent` over `.innerText`.
|
|
4824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
4825
5047
|
*/
|
|
4826
5048
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
4827
5049
|
/**
|
|
4828
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5050
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
4829
5051
|
* @deprecated
|
|
4830
5052
|
*/
|
|
4831
5053
|
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
4832
5054
|
/**
|
|
4833
5055
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
4834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-event-target.md
|
|
4835
5057
|
*/
|
|
4836
5058
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
4837
5059
|
/**
|
|
4838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5060
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
4839
5061
|
* @deprecated
|
|
4840
5062
|
*/
|
|
4841
5063
|
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
4842
5064
|
/**
|
|
4843
5065
|
* Prefer `export…from` when re-exporting.
|
|
4844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-export-from.md
|
|
4845
5067
|
*/
|
|
4846
5068
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
4847
5069
|
/**
|
|
4848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
4849
5071
|
* @deprecated
|
|
4850
5072
|
*/
|
|
4851
5073
|
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
4852
5074
|
/**
|
|
4853
5075
|
* Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
|
|
4854
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-includes.md
|
|
4855
5077
|
*/
|
|
4856
5078
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
4857
5079
|
/**
|
|
4858
5080
|
* Prefer reading a JSON file as a buffer.
|
|
4859
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5081
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
4860
5082
|
*/
|
|
4861
5083
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
4862
5084
|
/**
|
|
4863
5085
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
4864
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
4865
5087
|
*/
|
|
4866
5088
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
4867
5089
|
/**
|
|
4868
5090
|
* Prefer using a logical operator over a ternary.
|
|
4869
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5091
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
4870
5092
|
*/
|
|
4871
5093
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
4872
5094
|
/**
|
|
4873
5095
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
4874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-math-trunc.md
|
|
4875
5097
|
*/
|
|
4876
5098
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
4877
5099
|
/**
|
|
4878
5100
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
4879
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
4880
5102
|
*/
|
|
4881
5103
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
4882
5104
|
/**
|
|
4883
5105
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
4884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-math-apis.md
|
|
4885
5107
|
*/
|
|
4886
5108
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
4887
5109
|
/**
|
|
4888
5110
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
4889
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-module.md
|
|
4890
5112
|
*/
|
|
4891
5113
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
4892
5114
|
/**
|
|
4893
5115
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
4894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
4895
5117
|
*/
|
|
4896
5118
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
4897
5119
|
/**
|
|
4898
5120
|
* Prefer negative index over `.length - index` when possible.
|
|
4899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-negative-index.md
|
|
4900
5122
|
*/
|
|
4901
5123
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
4902
5124
|
/**
|
|
4903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
4904
5126
|
* @deprecated
|
|
4905
5127
|
*/
|
|
4906
5128
|
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
4907
5129
|
/**
|
|
4908
5130
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
4909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-node-protocol.md
|
|
4910
5132
|
*/
|
|
4911
5133
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
4912
5134
|
/**
|
|
4913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
4914
5136
|
* @deprecated
|
|
4915
5137
|
*/
|
|
4916
5138
|
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
4917
5139
|
/**
|
|
4918
5140
|
* Prefer `Number` static properties over global ones.
|
|
4919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-number-properties.md
|
|
4920
5142
|
*/
|
|
4921
5143
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
4922
5144
|
/**
|
|
4923
5145
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
4924
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-object-from-entries.md
|
|
4925
5147
|
*/
|
|
4926
5148
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
4927
5149
|
/**
|
|
4928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
4929
5151
|
* @deprecated
|
|
4930
5152
|
*/
|
|
4931
5153
|
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
4932
5154
|
/**
|
|
4933
5155
|
* Prefer omitting the `catch` binding parameter.
|
|
4934
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
4935
5157
|
*/
|
|
4936
5158
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
4937
5159
|
/**
|
|
4938
5160
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
4939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-prototype-methods.md
|
|
4940
5162
|
*/
|
|
4941
5163
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
4942
5164
|
/**
|
|
4943
5165
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
4944
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-query-selector.md
|
|
4945
5167
|
*/
|
|
4946
5168
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
4947
5169
|
/**
|
|
4948
5170
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
4949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-reflect-apply.md
|
|
4950
5172
|
*/
|
|
4951
5173
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
4952
5174
|
/**
|
|
4953
5175
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
4954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5176
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-regexp-test.md
|
|
4955
5177
|
*/
|
|
4956
5178
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
4957
5179
|
/**
|
|
4958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
4959
5181
|
* @deprecated
|
|
4960
5182
|
*/
|
|
4961
5183
|
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
4962
5184
|
/**
|
|
4963
5185
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
4964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-has.md
|
|
4965
5187
|
*/
|
|
4966
5188
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
4967
5189
|
/**
|
|
4968
5190
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
4969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5191
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-size.md
|
|
4970
5192
|
*/
|
|
4971
5193
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
4972
5194
|
/**
|
|
4973
5195
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
4974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-spread.md
|
|
4975
5197
|
*/
|
|
4976
5198
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
4977
5199
|
/**
|
|
4978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
4979
5201
|
* @deprecated
|
|
4980
5202
|
*/
|
|
4981
5203
|
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5204
|
+
/**
|
|
5205
|
+
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5206
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-raw.md
|
|
5207
|
+
*/
|
|
5208
|
+
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
4982
5209
|
/**
|
|
4983
5210
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
4984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5211
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-replace-all.md
|
|
4985
5212
|
*/
|
|
4986
5213
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
4987
5214
|
/**
|
|
4988
5215
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
4989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-slice.md
|
|
4990
5217
|
*/
|
|
4991
5218
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
4992
5219
|
/**
|
|
4993
5220
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
4994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5221
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
4995
5222
|
*/
|
|
4996
5223
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
4997
5224
|
/**
|
|
4998
5225
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
4999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5226
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5000
5227
|
*/
|
|
5001
5228
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5229
|
+
/**
|
|
5230
|
+
* Prefer using `structuredClone` to create a deep clone.
|
|
5231
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-structured-clone.md
|
|
5232
|
+
*/
|
|
5233
|
+
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
5002
5234
|
/**
|
|
5003
5235
|
* Prefer `switch` over multiple `else-if`.
|
|
5004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5236
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-switch.md
|
|
5005
5237
|
*/
|
|
5006
5238
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
5007
5239
|
/**
|
|
5008
5240
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5241
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-ternary.md
|
|
5010
5242
|
*/
|
|
5011
5243
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
5012
5244
|
/**
|
|
5013
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
5014
5246
|
* @deprecated
|
|
5015
5247
|
*/
|
|
5016
5248
|
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
5017
5249
|
/**
|
|
5018
5250
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5251
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-top-level-await.md
|
|
5020
5252
|
*/
|
|
5021
5253
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
5022
5254
|
/**
|
|
5023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5255
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
5024
5256
|
* @deprecated
|
|
5025
5257
|
*/
|
|
5026
5258
|
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5027
5259
|
/**
|
|
5028
5260
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5261
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-type-error.md
|
|
5030
5262
|
*/
|
|
5031
5263
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
5032
5264
|
/**
|
|
5033
5265
|
* Prevent abbreviations.
|
|
5034
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5266
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prevent-abbreviations.md
|
|
5035
5267
|
*/
|
|
5036
5268
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
5037
5269
|
/**
|
|
5038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5270
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
5039
5271
|
* @deprecated
|
|
5040
5272
|
*/
|
|
5041
5273
|
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
5042
5274
|
/**
|
|
5043
5275
|
* Enforce consistent relative URL style.
|
|
5044
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5276
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/relative-url-style.md
|
|
5045
5277
|
*/
|
|
5046
5278
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
5047
5279
|
/**
|
|
5048
5280
|
* Enforce using the separator argument with `Array#join()`.
|
|
5049
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5281
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-array-join-separator.md
|
|
5050
5282
|
*/
|
|
5051
5283
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
5052
5284
|
/**
|
|
5053
5285
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5286
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5055
5287
|
*/
|
|
5056
5288
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
5057
5289
|
/**
|
|
5058
5290
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5291
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-post-message-target-origin.md
|
|
5060
5292
|
*/
|
|
5061
5293
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
5062
5294
|
/**
|
|
5063
5295
|
* Enforce better string content.
|
|
5064
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5296
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/string-content.md
|
|
5065
5297
|
*/
|
|
5066
5298
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
5067
5299
|
/**
|
|
5068
5300
|
* Enforce consistent brace style for `case` clauses.
|
|
5069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5301
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/switch-case-braces.md
|
|
5070
5302
|
*/
|
|
5071
5303
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
5072
5304
|
/**
|
|
5073
5305
|
* Fix whitespace-insensitive template indentation.
|
|
5074
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5306
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/template-indent.md
|
|
5075
5307
|
*/
|
|
5076
5308
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
5077
5309
|
/**
|
|
5078
5310
|
* Enforce consistent case for text encoding identifiers.
|
|
5079
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5311
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5080
5312
|
*/
|
|
5081
5313
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
5082
5314
|
/**
|
|
5083
|
-
* Require `new` when
|
|
5084
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5315
|
+
* Require `new` when creating an error.
|
|
5316
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/throw-new-error.md
|
|
5085
5317
|
*/
|
|
5086
5318
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
5087
5319
|
/**
|
|
@@ -6574,6 +6806,9 @@ type _FuncNamesValue = ("always" | "as-needed" | "never")
|
|
|
6574
6806
|
// ----- func-style -----
|
|
6575
6807
|
type FuncStyle = []|[("declaration" | "expression")]|[("declaration" | "expression"), {
|
|
6576
6808
|
allowArrowFunctions?: boolean
|
|
6809
|
+
overrides?: {
|
|
6810
|
+
namedExports?: ("declaration" | "expression" | "ignore")
|
|
6811
|
+
}
|
|
6577
6812
|
}]
|
|
6578
6813
|
// ----- function-call-argument-newline -----
|
|
6579
6814
|
type FunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
|
|
@@ -8183,9 +8418,11 @@ type NoExtendNative = []|[{
|
|
|
8183
8418
|
exceptions?: string[]
|
|
8184
8419
|
}]
|
|
8185
8420
|
// ----- no-extra-boolean-cast -----
|
|
8186
|
-
type NoExtraBooleanCast = []|[{
|
|
8421
|
+
type NoExtraBooleanCast = []|[({
|
|
8422
|
+
enforceForInnerExpressions?: boolean
|
|
8423
|
+
} | {
|
|
8187
8424
|
enforceForLogicalOperands?: boolean
|
|
8188
|
-
}]
|
|
8425
|
+
})]
|
|
8189
8426
|
// ----- no-extra-parens -----
|
|
8190
8427
|
type NoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
8191
8428
|
conditionalAssign?: boolean
|
|
@@ -8259,6 +8496,10 @@ type NoMagicNumbers = []|[{
|
|
|
8259
8496
|
ignoreDefaultValues?: boolean
|
|
8260
8497
|
ignoreClassFieldInitialValues?: boolean
|
|
8261
8498
|
}]
|
|
8499
|
+
// ----- no-misleading-character-class -----
|
|
8500
|
+
type NoMisleadingCharacterClass = []|[{
|
|
8501
|
+
allowEscape?: boolean
|
|
8502
|
+
}]
|
|
8262
8503
|
// ----- no-mixed-operators -----
|
|
8263
8504
|
type NoMixedOperators = []|[{
|
|
8264
8505
|
groups?: [("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ...(("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"))[]][]
|
|
@@ -8315,8 +8556,10 @@ type NoRedeclare = []|[{
|
|
|
8315
8556
|
// ----- no-restricted-exports -----
|
|
8316
8557
|
type NoRestrictedExports = []|[({
|
|
8317
8558
|
restrictedNamedExports?: string[]
|
|
8559
|
+
restrictedNamedExportsPattern?: string
|
|
8318
8560
|
} | {
|
|
8319
8561
|
restrictedNamedExports?: string[]
|
|
8562
|
+
restrictedNamedExportsPattern?: string
|
|
8320
8563
|
restrictDefaultExports?: {
|
|
8321
8564
|
direct?: boolean
|
|
8322
8565
|
named?: boolean
|
|
@@ -8524,6 +8767,9 @@ type NodeHashbang = []|[{
|
|
|
8524
8767
|
})[]])
|
|
8525
8768
|
ignoreUnpublished?: boolean
|
|
8526
8769
|
additionalExecutables?: string[]
|
|
8770
|
+
executableMap?: {
|
|
8771
|
+
[k: string]: string
|
|
8772
|
+
}
|
|
8527
8773
|
}]
|
|
8528
8774
|
// ----- node/no-deprecated-api -----
|
|
8529
8775
|
type NodeNoDeprecatedApi = []|[{
|
|
@@ -8693,7 +8939,8 @@ type NodeNoUnsupportedFeaturesEsSyntax = []|[{
|
|
|
8693
8939
|
// ----- node/no-unsupported-features/node-builtins -----
|
|
8694
8940
|
type NodeNoUnsupportedFeaturesNodeBuiltins = []|[{
|
|
8695
8941
|
version?: string
|
|
8696
|
-
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CustomEvent" | "Event" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "process" | "process.allowedNodeEnvironmentFlags" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.constants" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.lutimes" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readdir" | "fs.promises.readFile" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rmdir" | "fs.promises.rm" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.promises.FileHandle" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.lchmod" | "fs.lchown" | "fs.lutimes" | "fs.link" | "fs.lstat" | "fs.mkdir" | "fs.mkdtemp" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.native" | "fs.rename" | "fs.rmdir" | "fs.rm" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.lutimesSync" | "fs.linkSync" | "fs.lstatSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statSync" | "fs.statfsSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.constants" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.lutimes" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readdir" | "fs/promises.readFile" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rmdir" | "fs/promises.rm" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "fs/promises.FileHandle" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.MockFunctionContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.MockFunctionContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
|
|
8942
|
+
allowExperimental?: boolean
|
|
8943
|
+
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CustomEvent" | "Event" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.suite" | "test.suite.skip" | "test.suite.todo" | "test.suite.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.MockFunctionContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.suite" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.MockFunctionContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
|
|
8697
8944
|
}]
|
|
8698
8945
|
// ----- node/prefer-global/buffer -----
|
|
8699
8946
|
type NodePreferGlobalBuffer = []|[("always" | "never")]
|
|
@@ -8733,6 +8980,9 @@ type NodeShebang = []|[{
|
|
|
8733
8980
|
})[]])
|
|
8734
8981
|
ignoreUnpublished?: boolean
|
|
8735
8982
|
additionalExecutables?: string[]
|
|
8983
|
+
executableMap?: {
|
|
8984
|
+
[k: string]: string
|
|
8985
|
+
}
|
|
8736
8986
|
}]
|
|
8737
8987
|
// ----- nonblock-statement-body-position -----
|
|
8738
8988
|
type NonblockStatementBodyPosition = []|[("beside" | "below" | "any")]|[("beside" | "below" | "any"), {
|
|
@@ -9075,442 +9325,145 @@ type ReactHooksExhaustiveDeps = []|[{
|
|
|
9075
9325
|
additionalHooks?: string
|
|
9076
9326
|
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean
|
|
9077
9327
|
}]
|
|
9328
|
+
// ----- react-naming-convention/component-name -----
|
|
9329
|
+
type ReactNamingConventionComponentName = []|[(("PascalCase" | "CONSTANT_CASE") | {
|
|
9330
|
+
excepts?: string[]
|
|
9331
|
+
rule?: ("PascalCase" | "CONSTANT_CASE")
|
|
9332
|
+
})]
|
|
9333
|
+
// ----- react-naming-convention/filename -----
|
|
9334
|
+
type ReactNamingConventionFilename = []|[(("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
9335
|
+
excepts?: string[]
|
|
9336
|
+
extensions?: string[]
|
|
9337
|
+
rule?: ("PascalCase" | "camelCase" | "kebab-case" | "snake_case")
|
|
9338
|
+
})]
|
|
9339
|
+
// ----- react-naming-convention/filename-extension -----
|
|
9340
|
+
type ReactNamingConventionFilenameExtension = []|[(("always" | "as-needed") | {
|
|
9341
|
+
allow?: ("always" | "as-needed")
|
|
9342
|
+
extensions?: string[]
|
|
9343
|
+
})]
|
|
9078
9344
|
// ----- react-refresh/only-export-components -----
|
|
9079
9345
|
type ReactRefreshOnlyExportComponents = []|[{
|
|
9080
9346
|
allowConstantExport?: boolean
|
|
9081
9347
|
checkJS?: boolean
|
|
9082
9348
|
allowExportNames?: string[]
|
|
9083
9349
|
}]
|
|
9084
|
-
// -----
|
|
9085
|
-
type
|
|
9350
|
+
// ----- regexp/hexadecimal-escape -----
|
|
9351
|
+
type RegexpHexadecimalEscape = []|[("always" | "never")]
|
|
9352
|
+
// ----- regexp/letter-case -----
|
|
9353
|
+
type RegexpLetterCase = []|[{
|
|
9354
|
+
caseInsensitive?: ("lowercase" | "uppercase" | "ignore")
|
|
9355
|
+
unicodeEscape?: ("lowercase" | "uppercase" | "ignore")
|
|
9356
|
+
hexadecimalEscape?: ("lowercase" | "uppercase" | "ignore")
|
|
9357
|
+
controlEscape?: ("lowercase" | "uppercase" | "ignore")
|
|
9358
|
+
}]
|
|
9359
|
+
// ----- regexp/match-any -----
|
|
9360
|
+
type RegexpMatchAny = []|[{
|
|
9086
9361
|
|
|
9087
|
-
|
|
9088
|
-
rule?: string
|
|
9089
|
-
message?: string
|
|
9090
|
-
validateNested?: boolean
|
|
9362
|
+
allows?: [("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"), ...(("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"))[]]
|
|
9091
9363
|
}]
|
|
9092
|
-
// -----
|
|
9093
|
-
type
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9364
|
+
// ----- regexp/no-dupe-disjunctions -----
|
|
9365
|
+
type RegexpNoDupeDisjunctions = []|[{
|
|
9366
|
+
report?: ("all" | "trivial" | "interesting")
|
|
9367
|
+
reportExponentialBacktracking?: ("none" | "certain" | "potential")
|
|
9368
|
+
reportUnreachable?: ("certain" | "potential")
|
|
9097
9369
|
}]
|
|
9098
|
-
// -----
|
|
9099
|
-
type
|
|
9100
|
-
|
|
9101
|
-
ignoreExclusiveCheckedAttribute?: boolean
|
|
9102
|
-
}]
|
|
9103
|
-
// ----- react/default-props-match-prop-types -----
|
|
9104
|
-
type ReactDefaultPropsMatchPropTypes = []|[{
|
|
9105
|
-
allowRequiredDefaults?: boolean
|
|
9106
|
-
}]
|
|
9107
|
-
// ----- react/destructuring-assignment -----
|
|
9108
|
-
type ReactDestructuringAssignment = []|[("always" | "never")]|[("always" | "never"), {
|
|
9109
|
-
ignoreClassFields?: boolean
|
|
9110
|
-
destructureInSignature?: ("always" | "ignore")
|
|
9111
|
-
}]
|
|
9112
|
-
// ----- react/display-name -----
|
|
9113
|
-
type ReactDisplayName = []|[{
|
|
9114
|
-
ignoreTranspilerName?: boolean
|
|
9115
|
-
checkContextObjects?: boolean
|
|
9116
|
-
}]
|
|
9117
|
-
// ----- react/forbid-component-props -----
|
|
9118
|
-
type ReactForbidComponentProps = []|[{
|
|
9119
|
-
forbid?: (string | {
|
|
9120
|
-
propName?: string
|
|
9121
|
-
allowedFor?: string[]
|
|
9122
|
-
message?: string
|
|
9123
|
-
} | {
|
|
9124
|
-
propName?: string
|
|
9125
|
-
|
|
9126
|
-
disallowedFor: [string, ...(string)[]]
|
|
9127
|
-
message?: string
|
|
9128
|
-
})[]
|
|
9129
|
-
[k: string]: unknown | undefined
|
|
9130
|
-
}]
|
|
9131
|
-
// ----- react/forbid-dom-props -----
|
|
9132
|
-
type ReactForbidDomProps = []|[{
|
|
9133
|
-
forbid?: (string | {
|
|
9134
|
-
propName?: string
|
|
9135
|
-
disallowedFor?: string[]
|
|
9136
|
-
message?: string
|
|
9137
|
-
[k: string]: unknown | undefined
|
|
9138
|
-
})[]
|
|
9370
|
+
// ----- regexp/no-lazy-ends -----
|
|
9371
|
+
type RegexpNoLazyEnds = []|[{
|
|
9372
|
+
ignorePartial?: boolean
|
|
9139
9373
|
}]
|
|
9140
|
-
// -----
|
|
9141
|
-
type
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
message?: string
|
|
9145
|
-
})[]
|
|
9374
|
+
// ----- regexp/no-legacy-features -----
|
|
9375
|
+
type RegexpNoLegacyFeatures = []|[{
|
|
9376
|
+
staticProperties?: ("input" | "$_" | "lastMatch" | "$&" | "lastParen" | "$+" | "leftContext" | "$`" | "rightContext" | "$'" | "$1" | "$2" | "$3" | "$4" | "$5" | "$6" | "$7" | "$8" | "$9")[]
|
|
9377
|
+
prototypeMethods?: ("compile")[]
|
|
9146
9378
|
}]
|
|
9147
|
-
// -----
|
|
9148
|
-
type
|
|
9149
|
-
|
|
9150
|
-
}]
|
|
9151
|
-
// ----- react/forbid-prop-types -----
|
|
9152
|
-
type ReactForbidPropTypes = []|[{
|
|
9153
|
-
forbid?: string[]
|
|
9154
|
-
checkContextTypes?: boolean
|
|
9155
|
-
checkChildContextTypes?: boolean
|
|
9156
|
-
[k: string]: unknown | undefined
|
|
9157
|
-
}]
|
|
9158
|
-
// ----- react/function-component-definition -----
|
|
9159
|
-
type ReactFunctionComponentDefinition = []|[{
|
|
9160
|
-
namedComponents?: (("function-declaration" | "arrow-function" | "function-expression") | ("function-declaration" | "arrow-function" | "function-expression")[])
|
|
9161
|
-
unnamedComponents?: (("arrow-function" | "function-expression") | ("arrow-function" | "function-expression")[])
|
|
9162
|
-
[k: string]: unknown | undefined
|
|
9379
|
+
// ----- regexp/no-misleading-capturing-group -----
|
|
9380
|
+
type RegexpNoMisleadingCapturingGroup = []|[{
|
|
9381
|
+
reportBacktrackingEnds?: boolean
|
|
9163
9382
|
}]
|
|
9164
|
-
// -----
|
|
9165
|
-
type
|
|
9166
|
-
|
|
9167
|
-
}]
|
|
9168
|
-
// ----- react/jsx-boolean-value -----
|
|
9169
|
-
type ReactJsxBooleanValue = ([]|[("always" | "never")] | []|["always"]|["always", {
|
|
9170
|
-
never?: string[]
|
|
9171
|
-
assumeUndefinedIsFalse?: boolean
|
|
9172
|
-
}] | []|["never"]|["never", {
|
|
9173
|
-
always?: string[]
|
|
9174
|
-
assumeUndefinedIsFalse?: boolean
|
|
9175
|
-
}])
|
|
9176
|
-
// ----- react/jsx-closing-bracket-location -----
|
|
9177
|
-
type ReactJsxClosingBracketLocation = []|[(("after-props" | "props-aligned" | "tag-aligned" | "line-aligned") | {
|
|
9178
|
-
location?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned")
|
|
9179
|
-
} | {
|
|
9180
|
-
nonEmpty?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned" | false)
|
|
9181
|
-
selfClosing?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned" | false)
|
|
9182
|
-
})]
|
|
9183
|
-
// ----- react/jsx-curly-brace-presence -----
|
|
9184
|
-
type ReactJsxCurlyBracePresence = []|[({
|
|
9185
|
-
props?: ("always" | "never" | "ignore")
|
|
9186
|
-
children?: ("always" | "never" | "ignore")
|
|
9187
|
-
propElementValues?: ("always" | "never" | "ignore")
|
|
9188
|
-
} | ("always" | "never" | "ignore"))]
|
|
9189
|
-
// ----- react/jsx-curly-newline -----
|
|
9190
|
-
type ReactJsxCurlyNewline = []|[(("consistent" | "never") | {
|
|
9191
|
-
singleline?: ("consistent" | "require" | "forbid")
|
|
9192
|
-
multiline?: ("consistent" | "require" | "forbid")
|
|
9193
|
-
})]
|
|
9194
|
-
// ----- react/jsx-curly-spacing -----
|
|
9195
|
-
type ReactJsxCurlySpacing = []|[((_ReactJsxCurlySpacing_BasicConfig & {
|
|
9196
|
-
attributes?: _ReactJsxCurlySpacingBasicConfigOrBoolean
|
|
9197
|
-
children?: _ReactJsxCurlySpacingBasicConfigOrBoolean
|
|
9198
|
-
[k: string]: unknown | undefined
|
|
9199
|
-
}) | ("always" | "never"))]|[((_ReactJsxCurlySpacing_BasicConfig & {
|
|
9200
|
-
attributes?: _ReactJsxCurlySpacingBasicConfigOrBoolean
|
|
9201
|
-
children?: _ReactJsxCurlySpacingBasicConfigOrBoolean
|
|
9202
|
-
[k: string]: unknown | undefined
|
|
9203
|
-
}) | ("always" | "never")), {
|
|
9204
|
-
allowMultiline?: boolean
|
|
9205
|
-
spacing?: {
|
|
9206
|
-
objectLiterals?: ("always" | "never")
|
|
9207
|
-
[k: string]: unknown | undefined
|
|
9208
|
-
}
|
|
9209
|
-
}]
|
|
9210
|
-
type _ReactJsxCurlySpacingBasicConfigOrBoolean = (_ReactJsxCurlySpacing_BasicConfig | boolean)
|
|
9211
|
-
interface _ReactJsxCurlySpacing_BasicConfig {
|
|
9212
|
-
when?: ("always" | "never")
|
|
9213
|
-
allowMultiline?: boolean
|
|
9214
|
-
spacing?: {
|
|
9215
|
-
objectLiterals?: ("always" | "never")
|
|
9216
|
-
[k: string]: unknown | undefined
|
|
9217
|
-
}
|
|
9218
|
-
[k: string]: unknown | undefined
|
|
9219
|
-
}
|
|
9220
|
-
// ----- react/jsx-equals-spacing -----
|
|
9221
|
-
type ReactJsxEqualsSpacing = []|[("always" | "never")]
|
|
9222
|
-
// ----- react/jsx-filename-extension -----
|
|
9223
|
-
type ReactJsxFilenameExtension = []|[{
|
|
9224
|
-
allow?: ("always" | "as-needed")
|
|
9225
|
-
extensions?: string[]
|
|
9226
|
-
ignoreFilesWithoutCode?: boolean
|
|
9227
|
-
}]
|
|
9228
|
-
// ----- react/jsx-first-prop-new-line -----
|
|
9229
|
-
type ReactJsxFirstPropNewLine = []|[("always" | "never" | "multiline" | "multiline-multiprop" | "multiprop")]
|
|
9230
|
-
// ----- react/jsx-fragments -----
|
|
9231
|
-
type ReactJsxFragments = []|[("syntax" | "element")]
|
|
9232
|
-
// ----- react/jsx-handler-names -----
|
|
9233
|
-
type ReactJsxHandlerNames = []|[({
|
|
9234
|
-
eventHandlerPrefix?: string
|
|
9235
|
-
eventHandlerPropPrefix?: string
|
|
9236
|
-
checkLocalVariables?: boolean
|
|
9237
|
-
checkInlineFunction?: boolean
|
|
9238
|
-
} | {
|
|
9239
|
-
eventHandlerPrefix?: string
|
|
9240
|
-
eventHandlerPropPrefix?: false
|
|
9241
|
-
checkLocalVariables?: boolean
|
|
9242
|
-
checkInlineFunction?: boolean
|
|
9243
|
-
} | {
|
|
9244
|
-
eventHandlerPrefix?: false
|
|
9245
|
-
eventHandlerPropPrefix?: string
|
|
9246
|
-
checkLocalVariables?: boolean
|
|
9247
|
-
checkInlineFunction?: boolean
|
|
9248
|
-
} | {
|
|
9249
|
-
checkLocalVariables?: boolean
|
|
9250
|
-
} | {
|
|
9251
|
-
checkInlineFunction?: boolean
|
|
9252
|
-
})]
|
|
9253
|
-
// ----- react/jsx-indent -----
|
|
9254
|
-
type ReactJsxIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
9255
|
-
checkAttributes?: boolean
|
|
9256
|
-
indentLogicalExpressions?: boolean
|
|
9257
|
-
}]
|
|
9258
|
-
// ----- react/jsx-indent-props -----
|
|
9259
|
-
type ReactJsxIndentProps = []|[(("tab" | "first") | number | {
|
|
9260
|
-
indentMode?: (("tab" | "first") | number)
|
|
9261
|
-
ignoreTernaryOperator?: boolean
|
|
9262
|
-
[k: string]: unknown | undefined
|
|
9263
|
-
})]
|
|
9264
|
-
// ----- react/jsx-key -----
|
|
9265
|
-
type ReactJsxKey = []|[{
|
|
9266
|
-
checkFragmentShorthand?: boolean
|
|
9267
|
-
checkKeyMustBeforeSpread?: boolean
|
|
9268
|
-
warnOnDuplicates?: boolean
|
|
9269
|
-
}]
|
|
9270
|
-
// ----- react/jsx-max-depth -----
|
|
9271
|
-
type ReactJsxMaxDepth = []|[{
|
|
9272
|
-
max?: number
|
|
9273
|
-
}]
|
|
9274
|
-
// ----- react/jsx-max-props-per-line -----
|
|
9275
|
-
type ReactJsxMaxPropsPerLine = []|[({
|
|
9276
|
-
maximum?: {
|
|
9277
|
-
single?: number
|
|
9278
|
-
multi?: number
|
|
9279
|
-
[k: string]: unknown | undefined
|
|
9280
|
-
}
|
|
9281
|
-
} | {
|
|
9282
|
-
maximum?: number
|
|
9283
|
-
when?: ("always" | "multiline")
|
|
9284
|
-
})]
|
|
9285
|
-
// ----- react/jsx-newline -----
|
|
9286
|
-
type ReactJsxNewline = []|[{
|
|
9287
|
-
prevent?: boolean
|
|
9288
|
-
allowMultilines?: boolean
|
|
9289
|
-
}]
|
|
9290
|
-
// ----- react/jsx-no-bind -----
|
|
9291
|
-
type ReactJsxNoBind = []|[{
|
|
9292
|
-
allowArrowFunctions?: boolean
|
|
9293
|
-
allowBind?: boolean
|
|
9294
|
-
allowFunctions?: boolean
|
|
9295
|
-
ignoreRefs?: boolean
|
|
9296
|
-
ignoreDOMComponents?: boolean
|
|
9297
|
-
}]
|
|
9298
|
-
// ----- react/jsx-no-constructed-context-values -----
|
|
9299
|
-
interface ReactJsxNoConstructedContextValues {
|
|
9300
|
-
[k: string]: unknown | undefined
|
|
9301
|
-
}
|
|
9302
|
-
// ----- react/jsx-no-duplicate-props -----
|
|
9303
|
-
type ReactJsxNoDuplicateProps = []|[{
|
|
9304
|
-
ignoreCase?: boolean
|
|
9305
|
-
}]
|
|
9306
|
-
// ----- react/jsx-no-leaked-render -----
|
|
9307
|
-
type ReactJsxNoLeakedRender = []|[{
|
|
9308
|
-
validStrategies?: ("ternary" | "coerce")[]
|
|
9309
|
-
}]
|
|
9310
|
-
// ----- react/jsx-no-literals -----
|
|
9311
|
-
type ReactJsxNoLiterals = []|[{
|
|
9312
|
-
noStrings?: boolean
|
|
9313
|
-
allowedStrings?: string[]
|
|
9314
|
-
ignoreProps?: boolean
|
|
9315
|
-
noAttributeStrings?: boolean
|
|
9316
|
-
}]
|
|
9317
|
-
// ----- react/jsx-no-script-url -----
|
|
9318
|
-
type ReactJsxNoScriptUrl = ([]|[{
|
|
9319
|
-
name: string
|
|
9320
|
-
props: string[]
|
|
9321
|
-
}[]]|[{
|
|
9322
|
-
name: string
|
|
9323
|
-
props: string[]
|
|
9324
|
-
}[], {
|
|
9325
|
-
includeFromSettings?: boolean
|
|
9326
|
-
[k: string]: unknown | undefined
|
|
9327
|
-
}] | []|[{
|
|
9328
|
-
includeFromSettings?: boolean
|
|
9329
|
-
[k: string]: unknown | undefined
|
|
9330
|
-
}])
|
|
9331
|
-
// ----- react/jsx-no-target-blank -----
|
|
9332
|
-
type ReactJsxNoTargetBlank = []|[{
|
|
9333
|
-
allowReferrer?: boolean
|
|
9334
|
-
enforceDynamicLinks?: ("always" | "never")
|
|
9335
|
-
warnOnSpreadAttributes?: boolean
|
|
9336
|
-
links?: boolean
|
|
9337
|
-
forms?: boolean
|
|
9338
|
-
}]
|
|
9339
|
-
// ----- react/jsx-no-undef -----
|
|
9340
|
-
type ReactJsxNoUndef = []|[{
|
|
9341
|
-
allowGlobals?: boolean
|
|
9342
|
-
}]
|
|
9343
|
-
// ----- react/jsx-no-useless-fragment -----
|
|
9344
|
-
type ReactJsxNoUselessFragment = []|[{
|
|
9345
|
-
allowExpressions?: boolean
|
|
9346
|
-
[k: string]: unknown | undefined
|
|
9347
|
-
}]
|
|
9348
|
-
// ----- react/jsx-one-expression-per-line -----
|
|
9349
|
-
type ReactJsxOneExpressionPerLine = []|[{
|
|
9350
|
-
allow?: ("none" | "literal" | "single-child" | "non-jsx")
|
|
9351
|
-
}]
|
|
9352
|
-
// ----- react/jsx-pascal-case -----
|
|
9353
|
-
type ReactJsxPascalCase = []|[{
|
|
9354
|
-
allowAllCaps?: boolean
|
|
9355
|
-
allowLeadingUnderscore?: boolean
|
|
9356
|
-
allowNamespace?: boolean
|
|
9357
|
-
|
|
9358
|
-
ignore?: []|[string]
|
|
9359
|
-
}]
|
|
9360
|
-
// ----- react/jsx-props-no-spreading -----
|
|
9361
|
-
type ReactJsxPropsNoSpreading = []|[({
|
|
9362
|
-
html?: ("enforce" | "ignore")
|
|
9363
|
-
custom?: ("enforce" | "ignore")
|
|
9364
|
-
exceptions?: string[]
|
|
9365
|
-
[k: string]: unknown | undefined
|
|
9366
|
-
} & {
|
|
9367
|
-
[k: string]: unknown | undefined
|
|
9368
|
-
})]
|
|
9369
|
-
// ----- react/jsx-sort-default-props -----
|
|
9370
|
-
type ReactJsxSortDefaultProps = []|[{
|
|
9371
|
-
ignoreCase?: boolean
|
|
9383
|
+
// ----- regexp/no-misleading-unicode-character -----
|
|
9384
|
+
type RegexpNoMisleadingUnicodeCharacter = []|[{
|
|
9385
|
+
fixable?: boolean
|
|
9372
9386
|
}]
|
|
9373
|
-
// -----
|
|
9374
|
-
type
|
|
9375
|
-
|
|
9376
|
-
shorthandFirst?: boolean
|
|
9377
|
-
shorthandLast?: boolean
|
|
9378
|
-
multiline?: ("ignore" | "first" | "last")
|
|
9379
|
-
ignoreCase?: boolean
|
|
9380
|
-
noSortAlphabetically?: boolean
|
|
9381
|
-
reservedFirst?: (unknown[] | boolean)
|
|
9382
|
-
locale?: string
|
|
9383
|
-
}]
|
|
9384
|
-
// ----- react/jsx-space-before-closing -----
|
|
9385
|
-
type ReactJsxSpaceBeforeClosing = []|[("always" | "never")]
|
|
9386
|
-
// ----- react/jsx-tag-spacing -----
|
|
9387
|
-
type ReactJsxTagSpacing = []|[{
|
|
9388
|
-
closingSlash?: ("always" | "never" | "allow")
|
|
9389
|
-
beforeSelfClosing?: ("always" | "proportional-always" | "never" | "allow")
|
|
9390
|
-
afterOpening?: ("always" | "allow-multiline" | "never" | "allow")
|
|
9391
|
-
beforeClosing?: ("always" | "proportional-always" | "never" | "allow")
|
|
9392
|
-
}]
|
|
9393
|
-
// ----- react/jsx-wrap-multilines -----
|
|
9394
|
-
type ReactJsxWrapMultilines = []|[{
|
|
9395
|
-
declaration?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
9396
|
-
assignment?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
9397
|
-
return?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
9398
|
-
arrow?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
9399
|
-
condition?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
9400
|
-
logical?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
9401
|
-
prop?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
|
|
9402
|
-
}]
|
|
9403
|
-
// ----- react/no-children-prop -----
|
|
9404
|
-
type ReactNoChildrenProp = []|[{
|
|
9405
|
-
allowFunctions?: boolean
|
|
9406
|
-
}]
|
|
9407
|
-
// ----- react/no-did-mount-set-state -----
|
|
9408
|
-
type ReactNoDidMountSetState = []|["disallow-in-func"]
|
|
9409
|
-
// ----- react/no-did-update-set-state -----
|
|
9410
|
-
type ReactNoDidUpdateSetState = []|["disallow-in-func"]
|
|
9411
|
-
// ----- react/no-invalid-html-attribute -----
|
|
9412
|
-
type ReactNoInvalidHtmlAttribute = []|[("rel")[]]
|
|
9413
|
-
// ----- react/no-multi-comp -----
|
|
9414
|
-
type ReactNoMultiComp = []|[{
|
|
9415
|
-
ignoreStateless?: boolean
|
|
9416
|
-
}]
|
|
9417
|
-
// ----- react/no-string-refs -----
|
|
9418
|
-
type ReactNoStringRefs = []|[{
|
|
9419
|
-
noTemplateLiterals?: boolean
|
|
9420
|
-
}]
|
|
9421
|
-
// ----- react/no-unescaped-entities -----
|
|
9422
|
-
type ReactNoUnescapedEntities = []|[{
|
|
9423
|
-
forbid?: (string | {
|
|
9424
|
-
char?: string
|
|
9425
|
-
alternatives?: string[]
|
|
9426
|
-
[k: string]: unknown | undefined
|
|
9427
|
-
})[]
|
|
9387
|
+
// ----- regexp/no-missing-g-flag -----
|
|
9388
|
+
type RegexpNoMissingGFlag = []|[{
|
|
9389
|
+
strictTypes?: boolean
|
|
9428
9390
|
}]
|
|
9429
|
-
// -----
|
|
9430
|
-
type
|
|
9431
|
-
|
|
9432
|
-
requireDataLowercase?: boolean
|
|
9391
|
+
// ----- regexp/no-obscure-range -----
|
|
9392
|
+
type RegexpNoObscureRange = []|[{
|
|
9393
|
+
allowed?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
|
|
9433
9394
|
}]
|
|
9434
|
-
// -----
|
|
9435
|
-
type
|
|
9436
|
-
|
|
9395
|
+
// ----- regexp/no-super-linear-backtracking -----
|
|
9396
|
+
type RegexpNoSuperLinearBacktracking = []|[{
|
|
9397
|
+
report?: ("certain" | "potential")
|
|
9437
9398
|
}]
|
|
9438
|
-
// -----
|
|
9439
|
-
type
|
|
9440
|
-
|
|
9441
|
-
|
|
9399
|
+
// ----- regexp/no-super-linear-move -----
|
|
9400
|
+
type RegexpNoSuperLinearMove = []|[{
|
|
9401
|
+
report?: ("certain" | "potential")
|
|
9402
|
+
ignoreSticky?: boolean
|
|
9403
|
+
ignorePartial?: boolean
|
|
9442
9404
|
}]
|
|
9443
|
-
// -----
|
|
9444
|
-
type
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
skipShapeProps?: boolean
|
|
9448
|
-
}]
|
|
9449
|
-
// ----- react/no-will-update-set-state -----
|
|
9450
|
-
type ReactNoWillUpdateSetState = []|["disallow-in-func"]
|
|
9451
|
-
// ----- react/prefer-es6-class -----
|
|
9452
|
-
type ReactPreferEs6Class = []|[("always" | "never")]
|
|
9453
|
-
// ----- react/prefer-stateless-function -----
|
|
9454
|
-
type ReactPreferStatelessFunction = []|[{
|
|
9455
|
-
ignorePureComponents?: boolean
|
|
9456
|
-
}]
|
|
9457
|
-
// ----- react/prop-types -----
|
|
9458
|
-
type ReactPropTypes = []|[{
|
|
9459
|
-
ignore?: string[]
|
|
9460
|
-
customValidators?: string[]
|
|
9461
|
-
skipUndeclared?: boolean
|
|
9462
|
-
}]
|
|
9463
|
-
// ----- react/require-default-props -----
|
|
9464
|
-
type ReactRequireDefaultProps = []|[{
|
|
9465
|
-
forbidDefaultForRequired?: boolean
|
|
9466
|
-
classes?: ("defaultProps" | "ignore")
|
|
9467
|
-
functions?: ("defaultArguments" | "defaultProps" | "ignore")
|
|
9468
|
-
ignoreFunctionalComponents?: boolean
|
|
9469
|
-
}]
|
|
9470
|
-
// ----- react/require-optimization -----
|
|
9471
|
-
type ReactRequireOptimization = []|[{
|
|
9472
|
-
allowDecorators?: string[]
|
|
9473
|
-
}]
|
|
9474
|
-
// ----- react/self-closing-comp -----
|
|
9475
|
-
type ReactSelfClosingComp = []|[{
|
|
9476
|
-
component?: boolean
|
|
9477
|
-
html?: boolean
|
|
9478
|
-
}]
|
|
9479
|
-
// ----- react/sort-comp -----
|
|
9480
|
-
type ReactSortComp = []|[{
|
|
9481
|
-
order?: string[]
|
|
9482
|
-
groups?: {
|
|
9483
|
-
[k: string]: string[]
|
|
9484
|
-
}
|
|
9405
|
+
// ----- regexp/no-unused-capturing-group -----
|
|
9406
|
+
type RegexpNoUnusedCapturingGroup = []|[{
|
|
9407
|
+
fixable?: boolean
|
|
9408
|
+
allowNamed?: boolean
|
|
9485
9409
|
}]
|
|
9486
|
-
// -----
|
|
9487
|
-
type
|
|
9488
|
-
|
|
9410
|
+
// ----- regexp/no-useless-character-class -----
|
|
9411
|
+
type RegexpNoUselessCharacterClass = []|[{
|
|
9412
|
+
ignores?: string[]
|
|
9489
9413
|
}]
|
|
9490
|
-
// -----
|
|
9491
|
-
type
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
}]
|
|
9499
|
-
// -----
|
|
9500
|
-
type
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9414
|
+
// ----- regexp/no-useless-flag -----
|
|
9415
|
+
type RegexpNoUselessFlag = []|[{
|
|
9416
|
+
ignore?: ("i" | "m" | "s" | "g" | "y")[]
|
|
9417
|
+
strictTypes?: boolean
|
|
9418
|
+
}]
|
|
9419
|
+
// ----- regexp/no-useless-non-capturing-group -----
|
|
9420
|
+
type RegexpNoUselessNonCapturingGroup = []|[{
|
|
9421
|
+
allowTop?: (boolean | ("always" | "never" | "partial"))
|
|
9422
|
+
}]
|
|
9423
|
+
// ----- regexp/optimal-quantifier-concatenation -----
|
|
9424
|
+
type RegexpOptimalQuantifierConcatenation = []|[{
|
|
9425
|
+
capturingGroups?: ("ignore" | "report")
|
|
9426
|
+
}]
|
|
9427
|
+
// ----- regexp/prefer-character-class -----
|
|
9428
|
+
type RegexpPreferCharacterClass = []|[{
|
|
9429
|
+
minAlternatives?: number
|
|
9430
|
+
}]
|
|
9431
|
+
// ----- regexp/prefer-d -----
|
|
9432
|
+
type RegexpPreferD = []|[{
|
|
9433
|
+
insideCharacterClass?: ("ignore" | "range" | "d")
|
|
9434
|
+
}]
|
|
9435
|
+
// ----- regexp/prefer-lookaround -----
|
|
9436
|
+
type RegexpPreferLookaround = []|[{
|
|
9437
|
+
lookbehind?: boolean
|
|
9438
|
+
strictTypes?: boolean
|
|
9439
|
+
}]
|
|
9440
|
+
// ----- regexp/prefer-named-replacement -----
|
|
9441
|
+
type RegexpPreferNamedReplacement = []|[{
|
|
9442
|
+
strictTypes?: boolean
|
|
9443
|
+
}]
|
|
9444
|
+
// ----- regexp/prefer-range -----
|
|
9445
|
+
type RegexpPreferRange = []|[{
|
|
9446
|
+
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
|
|
9447
|
+
}]
|
|
9448
|
+
// ----- regexp/prefer-result-array-groups -----
|
|
9449
|
+
type RegexpPreferResultArrayGroups = []|[{
|
|
9450
|
+
strictTypes?: boolean
|
|
9451
|
+
}]
|
|
9452
|
+
// ----- regexp/sort-character-class-elements -----
|
|
9453
|
+
type RegexpSortCharacterClassElements = []|[{
|
|
9454
|
+
order?: ("\\s" | "\\w" | "\\d" | "\\p" | "*" | "\\q" | "[]")[]
|
|
9455
|
+
}]
|
|
9456
|
+
// ----- regexp/unicode-escape -----
|
|
9457
|
+
type RegexpUnicodeEscape = []|[("unicodeCodePointEscape" | "unicodeEscape")]
|
|
9458
|
+
// ----- regexp/unicode-property -----
|
|
9459
|
+
type RegexpUnicodeProperty = []|[{
|
|
9460
|
+
generalCategory?: ("always" | "never" | "ignore")
|
|
9461
|
+
key?: ("short" | "long" | "ignore")
|
|
9462
|
+
property?: (("short" | "long" | "ignore") | {
|
|
9463
|
+
binary?: ("short" | "long" | "ignore")
|
|
9464
|
+
generalCategory?: ("short" | "long" | "ignore")
|
|
9465
|
+
script?: ("short" | "long" | "ignore")
|
|
9466
|
+
})
|
|
9514
9467
|
}]
|
|
9515
9468
|
// ----- require-atomic-updates -----
|
|
9516
9469
|
type RequireAtomicUpdates = []|[{
|
|
@@ -11461,11 +11414,16 @@ type UnicornPreferExportFrom = []|[{
|
|
|
11461
11414
|
// ----- unicorn/prefer-number-properties -----
|
|
11462
11415
|
type UnicornPreferNumberProperties = []|[{
|
|
11463
11416
|
checkInfinity?: boolean
|
|
11417
|
+
checkNaN?: boolean
|
|
11464
11418
|
}]
|
|
11465
11419
|
// ----- unicorn/prefer-object-from-entries -----
|
|
11466
11420
|
type UnicornPreferObjectFromEntries = []|[{
|
|
11467
11421
|
functions?: unknown[]
|
|
11468
11422
|
}]
|
|
11423
|
+
// ----- unicorn/prefer-structured-clone -----
|
|
11424
|
+
type UnicornPreferStructuredClone = []|[{
|
|
11425
|
+
functions?: unknown[]
|
|
11426
|
+
}]
|
|
11469
11427
|
// ----- unicorn/prefer-switch -----
|
|
11470
11428
|
type UnicornPreferSwitch = []|[{
|
|
11471
11429
|
minimumCases?: number
|
|
@@ -12738,7 +12696,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
12738
12696
|
onlyEquality?: boolean
|
|
12739
12697
|
}]
|
|
12740
12698
|
// Names of all the configs
|
|
12741
|
-
type ConfigNames = 'coderwyd/eslint-comments/rules' | 'coderwyd/formatter/setup' | 'coderwyd/imports/rules' | 'coderwyd/imports/disables/bin' | 'coderwyd/javascript/rules' | 'coderwyd/javascript/disables/cli' | 'coderwyd/javascript/disables/test' | 'coderwyd/jsdoc/rules' | 'coderwyd/jsonc/setup' | 'coderwyd/jsonc/rules' | 'coderwyd/node/rules' | 'coderwyd/perfectionist/setup' | 'coderwyd/react/setup' | 'coderwyd/react/rules' | 'coderwyd/sort/package-json' | 'coderwyd/prettier/setup' | 'coderwyd/prettier/rules' | 'coderwyd/svelte/setup' | 'coderwyd/svelte/rules' | 'coderwyd/test/setup' | 'coderwyd/test/rules' | 'coderwyd/typescript/setup' | 'coderwyd/typescript/parser' | 'coderwyd/typescript/rules' | 'coderwyd/typescript/disables/dts' | 'coderwyd/typescript/disables/test' | 'coderwyd/typescript/disables/cjs' | 'coderwyd/unicorn/rules' | 'coderwyd/unocss/rules' | 'coderwyd/vue/setup' | 'coderwyd/vue/rules' | 'coderwyd/command/rules'
|
|
12699
|
+
type ConfigNames = 'coderwyd/eslint-comments/rules' | 'coderwyd/formatter/setup' | 'coderwyd/imports/rules' | 'coderwyd/imports/disables/bin' | 'coderwyd/javascript/rules' | 'coderwyd/javascript/disables/cli' | 'coderwyd/javascript/disables/test' | 'coderwyd/jsdoc/rules' | 'coderwyd/jsonc/setup' | 'coderwyd/jsonc/rules' | 'coderwyd/node/rules' | 'coderwyd/perfectionist/setup' | 'coderwyd/react/setup' | 'coderwyd/react/rules' | 'coderwyd/sort/package-json' | 'coderwyd/prettier/setup' | 'coderwyd/prettier/rules' | 'coderwyd/svelte/setup' | 'coderwyd/svelte/rules' | 'coderwyd/test/setup' | 'coderwyd/test/rules' | 'coderwyd/typescript/setup' | 'coderwyd/typescript/parser' | 'coderwyd/typescript/rules' | 'coderwyd/typescript/disables/dts' | 'coderwyd/typescript/disables/test' | 'coderwyd/typescript/disables/cjs' | 'coderwyd/unicorn/rules' | 'coderwyd/unocss/rules' | 'coderwyd/vue/setup' | 'coderwyd/vue/rules' | 'coderwyd/command/rules' | 'coderwyd/regexp/rules'
|
|
12742
12700
|
|
|
12743
12701
|
type Rules = RuleOptions;
|
|
12744
12702
|
|
|
@@ -12827,6 +12785,12 @@ interface OptionsIsInEditor {
|
|
|
12827
12785
|
interface OptionsOverrides {
|
|
12828
12786
|
overrides?: TypedFlatConfigItem['rules'];
|
|
12829
12787
|
}
|
|
12788
|
+
interface OptionsRegExp {
|
|
12789
|
+
/**
|
|
12790
|
+
* Override rulelevels
|
|
12791
|
+
*/
|
|
12792
|
+
level?: 'error' | 'warn';
|
|
12793
|
+
}
|
|
12830
12794
|
interface OptionsUnoCSS extends OptionsOverrides {
|
|
12831
12795
|
/**
|
|
12832
12796
|
* Enable attributify support.
|
|
@@ -12897,7 +12861,7 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
12897
12861
|
* Enable react rules.
|
|
12898
12862
|
*
|
|
12899
12863
|
* Requires installing:
|
|
12900
|
-
* -
|
|
12864
|
+
* - `@eslint-react/eslint-plugin`
|
|
12901
12865
|
* - `eslint-plugin-react-hooks`
|
|
12902
12866
|
* - `eslint-plugin-react-refresh`
|
|
12903
12867
|
*
|
|
@@ -12928,6 +12892,13 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
12928
12892
|
* @default false
|
|
12929
12893
|
*/
|
|
12930
12894
|
unocss?: boolean | OptionsUnoCSS;
|
|
12895
|
+
/**
|
|
12896
|
+
* Enable regexp rules.
|
|
12897
|
+
*
|
|
12898
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/
|
|
12899
|
+
* @default true
|
|
12900
|
+
*/
|
|
12901
|
+
regexp?: boolean | (OptionsRegExp & OptionsOverrides);
|
|
12931
12902
|
/**
|
|
12932
12903
|
* Whether to use prettierrc
|
|
12933
12904
|
*
|
|
@@ -13075,4 +13046,4 @@ declare const defaultPluginRenaming: {
|
|
|
13075
13046
|
*/
|
|
13076
13047
|
declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.FlatConfig[]>[]): Promise<TypedFlatConfigItem[]>;
|
|
13077
13048
|
|
|
13078
|
-
export { type Awaitable, type ConfigNames, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type PartialPrettierExtendedOptions, type PrettierOptions, type PrettierParser, type ResolvedOptions, type Rules, type TypedFlatConfigItem, combine, defaultPluginRenaming, defineConfig, ensurePackages, getOverrides, getVueVersion, interopDefault, loadPrettierConfig, parserPlain, renamePluginInConfigs, renameRules, resolveSubOptions, toArray };
|
|
13049
|
+
export { type Awaitable, type ConfigNames, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsRegExp, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type PartialPrettierExtendedOptions, type PrettierOptions, type PrettierParser, type ResolvedOptions, type Rules, type TypedFlatConfigItem, combine, defaultPluginRenaming, defineConfig, ensurePackages, getOverrides, getVueVersion, interopDefault, loadPrettierConfig, parserPlain, renamePluginInConfigs, renameRules, resolveSubOptions, toArray };
|