@2digits/eslint-config 2.3.4 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +251 -176
- package/dist/index.d.ts +251 -176
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +22 -22
package/dist/index.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
|
10
10
|
interface RuleOptions {
|
|
11
11
|
/**
|
|
12
12
|
* Enforce giving proper names to type parameters when there are two or more
|
|
13
|
-
* @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.1.
|
|
13
|
+
* @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.1.5/packages/eslint/src/rules/type-param-names.ts
|
|
14
14
|
*/
|
|
15
15
|
'@2digits/type-param-names'?: Linter.RuleEntry<[]>
|
|
16
16
|
/**
|
|
@@ -775,6 +775,11 @@ Backward pagination arguments
|
|
|
775
775
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
|
|
776
776
|
*/
|
|
777
777
|
'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
|
|
778
|
+
/**
|
|
779
|
+
* Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
|
|
780
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
781
|
+
*/
|
|
782
|
+
'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
|
|
778
783
|
/**
|
|
779
784
|
* Reports invalid types.
|
|
780
785
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-types.md#repos-sticky-header
|
|
@@ -2462,17 +2467,17 @@ Backward pagination arguments
|
|
|
2462
2467
|
*/
|
|
2463
2468
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2464
2469
|
/**
|
|
2465
|
-
*
|
|
2470
|
+
* avoid using shorthand boolean attribute
|
|
2466
2471
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
|
|
2467
2472
|
*/
|
|
2468
2473
|
'react-extra/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2469
2474
|
/**
|
|
2470
|
-
*
|
|
2475
|
+
* avoid using shorthand fragment syntax
|
|
2471
2476
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
|
|
2472
2477
|
*/
|
|
2473
2478
|
'react-extra/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2474
2479
|
/**
|
|
2475
|
-
* require
|
|
2480
|
+
* require a 'ref' parameter to be set when using 'forwardRef'
|
|
2476
2481
|
* @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
|
|
2477
2482
|
*/
|
|
2478
2483
|
'react-extra/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
@@ -2482,47 +2487,47 @@ Backward pagination arguments
|
|
|
2482
2487
|
*/
|
|
2483
2488
|
'react-extra/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
|
|
2484
2489
|
/**
|
|
2485
|
-
* disallow using Array index as key
|
|
2490
|
+
* disallow using Array index as 'key'
|
|
2486
2491
|
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
2487
2492
|
*/
|
|
2488
2493
|
'react-extra/no-array-index-key'?: Linter.RuleEntry<[]>
|
|
2489
2494
|
/**
|
|
2490
|
-
* disallow 'Children.count'
|
|
2495
|
+
* disallow using 'Children.count'
|
|
2491
2496
|
* @see https://eslint-react.xyz/docs/rules/no-children-count
|
|
2492
2497
|
*/
|
|
2493
2498
|
'react-extra/no-children-count'?: Linter.RuleEntry<[]>
|
|
2494
2499
|
/**
|
|
2495
|
-
* disallow 'Children.forEach'
|
|
2500
|
+
* disallow using 'Children.forEach'
|
|
2496
2501
|
* @see https://eslint-react.xyz/docs/rules/no-children-for-each
|
|
2497
2502
|
*/
|
|
2498
2503
|
'react-extra/no-children-for-each'?: Linter.RuleEntry<[]>
|
|
2499
2504
|
/**
|
|
2500
|
-
* disallow 'Children.map'
|
|
2505
|
+
* disallow using 'Children.map'
|
|
2501
2506
|
* @see https://eslint-react.xyz/docs/rules/no-children-map
|
|
2502
2507
|
*/
|
|
2503
2508
|
'react-extra/no-children-map'?: Linter.RuleEntry<[]>
|
|
2504
2509
|
/**
|
|
2505
|
-
* disallow 'Children.only'
|
|
2510
|
+
* disallow using 'Children.only'
|
|
2506
2511
|
* @see https://eslint-react.xyz/docs/rules/no-children-only
|
|
2507
2512
|
*/
|
|
2508
2513
|
'react-extra/no-children-only'?: Linter.RuleEntry<[]>
|
|
2509
2514
|
/**
|
|
2510
|
-
* disallow passing
|
|
2515
|
+
* disallow passing 'children' as props
|
|
2511
2516
|
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
2512
2517
|
*/
|
|
2513
2518
|
'react-extra/no-children-prop'?: Linter.RuleEntry<[]>
|
|
2514
2519
|
/**
|
|
2515
|
-
* disallow 'Children.toArray'
|
|
2520
|
+
* disallow using 'Children.toArray'
|
|
2516
2521
|
* @see https://eslint-react.xyz/docs/rules/no-children-to-array
|
|
2517
2522
|
*/
|
|
2518
2523
|
'react-extra/no-children-to-array'?: Linter.RuleEntry<[]>
|
|
2519
2524
|
/**
|
|
2520
|
-
* disallow class
|
|
2525
|
+
* disallow using class components
|
|
2521
2526
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2522
2527
|
*/
|
|
2523
2528
|
'react-extra/no-class-component'?: Linter.RuleEntry<[]>
|
|
2524
2529
|
/**
|
|
2525
|
-
* disallow 'cloneElement'
|
|
2530
|
+
* disallow using 'cloneElement'
|
|
2526
2531
|
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
2527
2532
|
*/
|
|
2528
2533
|
'react-extra/no-clone-element'?: Linter.RuleEntry<[]>
|
|
@@ -2532,31 +2537,42 @@ Backward pagination arguments
|
|
|
2532
2537
|
*/
|
|
2533
2538
|
'react-extra/no-comment-textnodes'?: Linter.RuleEntry<[]>
|
|
2534
2539
|
/**
|
|
2535
|
-
* disallow
|
|
2536
|
-
* @see https://eslint-react.xyz/docs/rules/no-
|
|
2540
|
+
* disallow complex conditional rendering
|
|
2541
|
+
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
2542
|
+
* @deprecated
|
|
2543
|
+
*/
|
|
2544
|
+
'react-extra/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2545
|
+
/**
|
|
2546
|
+
* disallow complex conditional rendering
|
|
2547
|
+
* @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
|
|
2537
2548
|
* @deprecated
|
|
2538
2549
|
*/
|
|
2539
2550
|
'react-extra/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2540
2551
|
/**
|
|
2541
|
-
* disallow
|
|
2552
|
+
* disallow using 'componentWillMount'
|
|
2542
2553
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
2543
2554
|
*/
|
|
2544
2555
|
'react-extra/no-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2545
2556
|
/**
|
|
2546
|
-
* disallow
|
|
2557
|
+
* disallow using 'componentWillReceiveProps'
|
|
2547
2558
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
2548
2559
|
*/
|
|
2549
2560
|
'react-extra/no-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2550
2561
|
/**
|
|
2551
|
-
* disallow
|
|
2562
|
+
* disallow using 'componentWillReceiveProps'
|
|
2552
2563
|
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
2553
2564
|
*/
|
|
2554
2565
|
'react-extra/no-component-will-update'?: Linter.RuleEntry<[]>
|
|
2555
2566
|
/**
|
|
2556
|
-
* disallow 'createRef' in function components
|
|
2567
|
+
* disallow using 'createRef' in function components
|
|
2557
2568
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
2558
2569
|
*/
|
|
2559
2570
|
'react-extra/no-create-ref'?: Linter.RuleEntry<[]>
|
|
2571
|
+
/**
|
|
2572
|
+
* disallow using 'defaultProps' property in components
|
|
2573
|
+
* @see https://eslint-react.xyz/docs/rules/no-default-props
|
|
2574
|
+
*/
|
|
2575
|
+
'react-extra/no-default-props'?: Linter.RuleEntry<[]>
|
|
2560
2576
|
/**
|
|
2561
2577
|
* disallow direct mutation of state
|
|
2562
2578
|
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
@@ -2568,9 +2584,8 @@ Backward pagination arguments
|
|
|
2568
2584
|
*/
|
|
2569
2585
|
'react-extra/no-duplicate-key'?: Linter.RuleEntry<[]>
|
|
2570
2586
|
/**
|
|
2571
|
-
* disallow
|
|
2587
|
+
* disallow implicit 'key' props
|
|
2572
2588
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
2573
|
-
* @deprecated
|
|
2574
2589
|
*/
|
|
2575
2590
|
'react-extra/no-implicit-key'?: Linter.RuleEntry<[]>
|
|
2576
2591
|
/**
|
|
@@ -2579,7 +2594,7 @@ Backward pagination arguments
|
|
|
2579
2594
|
*/
|
|
2580
2595
|
'react-extra/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2581
2596
|
/**
|
|
2582
|
-
* require 'displayName' for memo and forwardRef components
|
|
2597
|
+
* require 'displayName' for 'memo' and 'forwardRef' components
|
|
2583
2598
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
2584
2599
|
*/
|
|
2585
2600
|
'react-extra/no-missing-component-display-name'?: Linter.RuleEntry<[]>
|
|
@@ -2589,27 +2604,32 @@ Backward pagination arguments
|
|
|
2589
2604
|
*/
|
|
2590
2605
|
'react-extra/no-missing-key'?: Linter.RuleEntry<[]>
|
|
2591
2606
|
/**
|
|
2592
|
-
* disallow
|
|
2607
|
+
* disallow using unstable nested components
|
|
2593
2608
|
* @see https://eslint-react.xyz/docs/rules/no-nested-components
|
|
2594
2609
|
*/
|
|
2595
2610
|
'react-extra/no-nested-components'?: Linter.RuleEntry<[]>
|
|
2596
2611
|
/**
|
|
2597
|
-
* disallow
|
|
2612
|
+
* disallow using 'propTypes' property in components
|
|
2613
|
+
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
2614
|
+
*/
|
|
2615
|
+
'react-extra/no-prop-types'?: Linter.RuleEntry<[]>
|
|
2616
|
+
/**
|
|
2617
|
+
* disallow using 'shouldComponentUpdate' in class component extends 'React.PureComponent'
|
|
2598
2618
|
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
2599
2619
|
*/
|
|
2600
2620
|
'react-extra/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
|
|
2601
2621
|
/**
|
|
2602
|
-
* disallow 'setState' in 'componentDidMount'
|
|
2622
|
+
* disallow using 'setState' in 'componentDidMount'
|
|
2603
2623
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
|
|
2604
2624
|
*/
|
|
2605
2625
|
'react-extra/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
|
|
2606
2626
|
/**
|
|
2607
|
-
* disallow 'setState' in 'componentDidUpdate'
|
|
2627
|
+
* disallow using 'setState' in 'componentDidUpdate'
|
|
2608
2628
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
2609
2629
|
*/
|
|
2610
2630
|
'react-extra/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
|
2611
2631
|
/**
|
|
2612
|
-
* disallow 'setState' in 'componentWillUpdate'
|
|
2632
|
+
* disallow using 'setState' in 'componentWillUpdate'
|
|
2613
2633
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
2614
2634
|
*/
|
|
2615
2635
|
'react-extra/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
|
|
@@ -2619,17 +2639,17 @@ Backward pagination arguments
|
|
|
2619
2639
|
*/
|
|
2620
2640
|
'react-extra/no-string-refs'?: Linter.RuleEntry<[]>
|
|
2621
2641
|
/**
|
|
2622
|
-
* disallow
|
|
2642
|
+
* disallow using 'UNSAFE_componentWillMount'
|
|
2623
2643
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
2624
2644
|
*/
|
|
2625
2645
|
'react-extra/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2626
2646
|
/**
|
|
2627
|
-
* disallow
|
|
2647
|
+
* disallow using 'UNSAFE_componentWillReceiveProps'
|
|
2628
2648
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
|
|
2629
2649
|
*/
|
|
2630
2650
|
'react-extra/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2631
2651
|
/**
|
|
2632
|
-
* disallow
|
|
2652
|
+
* disallow using 'UNSAFE_componentWillUpdate'
|
|
2633
2653
|
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
|
|
2634
2654
|
*/
|
|
2635
2655
|
'react-extra/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>
|
|
@@ -2639,7 +2659,7 @@ Backward pagination arguments
|
|
|
2639
2659
|
*/
|
|
2640
2660
|
'react-extra/no-unstable-context-value'?: Linter.RuleEntry<[]>
|
|
2641
2661
|
/**
|
|
2642
|
-
* disallow
|
|
2662
|
+
* disallow using unstable value as default param in function component
|
|
2643
2663
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
|
|
2644
2664
|
*/
|
|
2645
2665
|
'react-extra/no-unstable-default-props'?: Linter.RuleEntry<[]>
|
|
@@ -2649,7 +2669,7 @@ Backward pagination arguments
|
|
|
2649
2669
|
*/
|
|
2650
2670
|
'react-extra/no-unused-class-component-members'?: Linter.RuleEntry<[]>
|
|
2651
2671
|
/**
|
|
2652
|
-
*
|
|
2672
|
+
* disallow unused state of class component
|
|
2653
2673
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
2654
2674
|
*/
|
|
2655
2675
|
'react-extra/no-unused-state'?: Linter.RuleEntry<[]>
|
|
@@ -2664,17 +2684,17 @@ Backward pagination arguments
|
|
|
2664
2684
|
*/
|
|
2665
2685
|
'react-extra/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
|
|
2666
2686
|
/**
|
|
2667
|
-
* enforce
|
|
2687
|
+
* enforce read-only props in components
|
|
2668
2688
|
* @see https://eslint-react.xyz/docs/rules/prefer-read-only-props
|
|
2669
2689
|
*/
|
|
2670
2690
|
'react-extra/prefer-read-only-props'?: Linter.RuleEntry<[]>
|
|
2671
2691
|
/**
|
|
2672
|
-
* enforce boolean attributes
|
|
2692
|
+
* enforce using shorthand boolean attributes
|
|
2673
2693
|
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
|
|
2674
2694
|
*/
|
|
2675
2695
|
'react-extra/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2676
2696
|
/**
|
|
2677
|
-
* enforce using fragment syntax instead of Fragment component
|
|
2697
|
+
* enforce using fragment syntax instead of 'Fragment' component
|
|
2678
2698
|
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
|
|
2679
2699
|
*/
|
|
2680
2700
|
'react-extra/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
@@ -2693,6 +2713,16 @@ Backward pagination arguments
|
|
|
2693
2713
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
2694
2714
|
*/
|
|
2695
2715
|
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2716
|
+
/**
|
|
2717
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
2718
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
2719
|
+
*/
|
|
2720
|
+
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
2721
|
+
/**
|
|
2722
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
|
|
2723
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
|
|
2724
|
+
*/
|
|
2725
|
+
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
2696
2726
|
/**
|
|
2697
2727
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
2698
2728
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
@@ -2817,7 +2847,7 @@ Backward pagination arguments
|
|
|
2817
2847
|
* Enforce closing tag location for multiline JSX
|
|
2818
2848
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-closing-tag-location.md
|
|
2819
2849
|
*/
|
|
2820
|
-
'react/jsx-closing-tag-location'?: Linter.RuleEntry<
|
|
2850
|
+
'react/jsx-closing-tag-location'?: Linter.RuleEntry<ReactJsxClosingTagLocation>
|
|
2821
2851
|
/**
|
|
2822
2852
|
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
2823
2853
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-curly-brace-presence.md
|
|
@@ -2953,6 +2983,11 @@ Backward pagination arguments
|
|
|
2953
2983
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-multi-spaces.md
|
|
2954
2984
|
*/
|
|
2955
2985
|
'react/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>
|
|
2986
|
+
/**
|
|
2987
|
+
* Disallow JSX prop spreading the same identifier multiple times
|
|
2988
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-spread-multi.md
|
|
2989
|
+
*/
|
|
2990
|
+
'react/jsx-props-no-spread-multi'?: Linter.RuleEntry<[]>
|
|
2956
2991
|
/**
|
|
2957
2992
|
* Disallow JSX prop spreading
|
|
2958
2993
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-spreading.md
|
|
@@ -3024,7 +3059,7 @@ Backward pagination arguments
|
|
|
3024
3059
|
* Disallow usage of dangerous JSX properties
|
|
3025
3060
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger.md
|
|
3026
3061
|
*/
|
|
3027
|
-
'react/no-danger'?: Linter.RuleEntry<
|
|
3062
|
+
'react/no-danger'?: Linter.RuleEntry<ReactNoDanger>
|
|
3028
3063
|
/**
|
|
3029
3064
|
* Disallow when a DOM element is using both children and dangerouslySetInnerHTML
|
|
3030
3065
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger-with-children.md
|
|
@@ -4123,6 +4158,11 @@ Backward pagination arguments
|
|
|
4123
4158
|
* @see https://typescript-eslint.io/rules/no-unsafe-enum-comparison
|
|
4124
4159
|
*/
|
|
4125
4160
|
'ts/no-unsafe-enum-comparison'?: Linter.RuleEntry<[]>
|
|
4161
|
+
/**
|
|
4162
|
+
* Disallow using the unsafe built-in Function type
|
|
4163
|
+
* @see https://typescript-eslint.io/rules/no-unsafe-function-type
|
|
4164
|
+
*/
|
|
4165
|
+
'ts/no-unsafe-function-type'?: Linter.RuleEntry<[]>
|
|
4126
4166
|
/**
|
|
4127
4167
|
* Disallow member access on a value with type `any`
|
|
4128
4168
|
* @see https://typescript-eslint.io/rules/no-unsafe-member-access
|
|
@@ -4174,6 +4214,11 @@ Backward pagination arguments
|
|
|
4174
4214
|
* @see https://typescript-eslint.io/rules/no-var-requires
|
|
4175
4215
|
*/
|
|
4176
4216
|
'ts/no-var-requires'?: Linter.RuleEntry<TsNoVarRequires>
|
|
4217
|
+
/**
|
|
4218
|
+
* Disallow using confusing built-in primitive class wrappers
|
|
4219
|
+
* @see https://typescript-eslint.io/rules/no-wrapper-object-types
|
|
4220
|
+
*/
|
|
4221
|
+
'ts/no-wrapper-object-types'?: Linter.RuleEntry<[]>
|
|
4177
4222
|
/**
|
|
4178
4223
|
* Enforce non-null assertions over explicit type casts
|
|
4179
4224
|
* @see https://typescript-eslint.io/rules/non-nullable-type-assertion-style
|
|
@@ -4416,682 +4461,687 @@ Backward pagination arguments
|
|
|
4416
4461
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
4417
4462
|
/**
|
|
4418
4463
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4419
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/better-regex.md
|
|
4420
4465
|
*/
|
|
4421
4466
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
4422
4467
|
/**
|
|
4423
4468
|
* Enforce a specific parameter name in catch clauses.
|
|
4424
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/catch-error-name.md
|
|
4425
4470
|
*/
|
|
4426
4471
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
4427
4472
|
/**
|
|
4428
4473
|
* Use destructured variables over properties.
|
|
4429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-destructuring.md
|
|
4430
4475
|
*/
|
|
4431
4476
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
4432
4477
|
/**
|
|
4433
4478
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4479
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4435
4480
|
*/
|
|
4436
4481
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
4437
4482
|
/**
|
|
4438
4483
|
* Move function definitions to the highest possible scope.
|
|
4439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-function-scoping.md
|
|
4440
4485
|
*/
|
|
4441
4486
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
4442
4487
|
/**
|
|
4443
4488
|
* Enforce correct `Error` subclassing.
|
|
4444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/custom-error-definition.md
|
|
4445
4490
|
*/
|
|
4446
4491
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
4447
4492
|
/**
|
|
4448
4493
|
* Enforce no spaces between braces.
|
|
4449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4494
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/empty-brace-spaces.md
|
|
4450
4495
|
*/
|
|
4451
4496
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
4452
4497
|
/**
|
|
4453
4498
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/error-message.md
|
|
4455
4500
|
*/
|
|
4456
4501
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
4457
4502
|
/**
|
|
4458
4503
|
* Require escape sequences to use uppercase values.
|
|
4459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4504
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/escape-case.md
|
|
4460
4505
|
*/
|
|
4461
4506
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
4462
4507
|
/**
|
|
4463
4508
|
* Add expiration conditions to TODO comments.
|
|
4464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/expiring-todo-comments.md
|
|
4465
4510
|
*/
|
|
4466
4511
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
4467
4512
|
/**
|
|
4468
4513
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/explicit-length-check.md
|
|
4470
4515
|
*/
|
|
4471
4516
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
4472
4517
|
/**
|
|
4473
4518
|
* Enforce a case style for filenames.
|
|
4474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/filename-case.md
|
|
4475
4520
|
*/
|
|
4476
4521
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
4477
4522
|
/**
|
|
4478
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4523
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#import-index
|
|
4479
4524
|
* @deprecated
|
|
4480
4525
|
*/
|
|
4481
4526
|
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
4482
4527
|
/**
|
|
4483
4528
|
* Enforce specific import styles per module.
|
|
4484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/import-style.md
|
|
4485
4530
|
*/
|
|
4486
4531
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
4487
4532
|
/**
|
|
4488
4533
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/new-for-builtins.md
|
|
4490
4535
|
*/
|
|
4491
4536
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
4492
4537
|
/**
|
|
4493
4538
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4495
4540
|
*/
|
|
4496
4541
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
4497
4542
|
/**
|
|
4498
4543
|
* Disallow anonymous functions and classes as the default export.
|
|
4499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-anonymous-default-export.md
|
|
4500
4545
|
*/
|
|
4501
4546
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
4502
4547
|
/**
|
|
4503
4548
|
* Prevent passing a function reference directly to iterator methods.
|
|
4504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-callback-reference.md
|
|
4505
4550
|
*/
|
|
4506
4551
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
4507
4552
|
/**
|
|
4508
4553
|
* Prefer `for…of` over the `forEach` method.
|
|
4509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-for-each.md
|
|
4510
4555
|
*/
|
|
4511
4556
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
4512
4557
|
/**
|
|
4513
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4558
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
4514
4559
|
* @deprecated
|
|
4515
4560
|
*/
|
|
4516
4561
|
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
4517
4562
|
/**
|
|
4518
4563
|
* Disallow using the `this` argument in array methods.
|
|
4519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-method-this-argument.md
|
|
4520
4565
|
*/
|
|
4521
4566
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
4522
4567
|
/**
|
|
4523
4568
|
* Enforce combining multiple `Array#push()` into one call.
|
|
4524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-push-push.md
|
|
4525
4570
|
*/
|
|
4526
4571
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
4527
4572
|
/**
|
|
4528
4573
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-reduce.md
|
|
4530
4575
|
*/
|
|
4531
4576
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
4532
4577
|
/**
|
|
4533
4578
|
* Disallow member access from await expression.
|
|
4534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-await-expression-member.md
|
|
4535
4580
|
*/
|
|
4536
4581
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
4537
4582
|
/**
|
|
4538
4583
|
* Disallow using `await` in `Promise` method parameters.
|
|
4539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4540
4585
|
*/
|
|
4541
4586
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4542
4587
|
/**
|
|
4543
4588
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-console-spaces.md
|
|
4545
4590
|
*/
|
|
4546
4591
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
4547
4592
|
/**
|
|
4548
4593
|
* Do not use `document.cookie` directly.
|
|
4549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-document-cookie.md
|
|
4550
4595
|
*/
|
|
4551
4596
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
4552
4597
|
/**
|
|
4553
4598
|
* Disallow empty files.
|
|
4554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4599
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-empty-file.md
|
|
4555
4600
|
*/
|
|
4556
4601
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
4557
4602
|
/**
|
|
4558
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4603
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
4559
4604
|
* @deprecated
|
|
4560
4605
|
*/
|
|
4561
4606
|
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
4562
4607
|
/**
|
|
4563
4608
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-for-loop.md
|
|
4565
4610
|
*/
|
|
4566
4611
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
4567
4612
|
/**
|
|
4568
4613
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
4569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-hex-escape.md
|
|
4570
4615
|
*/
|
|
4571
4616
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
4572
4617
|
/**
|
|
4573
4618
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
4574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-instanceof-array.md
|
|
4575
4620
|
*/
|
|
4576
4621
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
4577
4622
|
/**
|
|
4578
4623
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
4579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-invalid-fetch-options.md
|
|
4580
4625
|
*/
|
|
4581
4626
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
4582
4627
|
/**
|
|
4583
4628
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
4585
4630
|
*/
|
|
4586
4631
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
4587
4632
|
/**
|
|
4588
4633
|
* Disallow identifiers starting with `new` or `class`.
|
|
4589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-keyword-prefix.md
|
|
4590
4635
|
*/
|
|
4591
4636
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
4637
|
+
/**
|
|
4638
|
+
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
4639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-length-as-slice-end.md
|
|
4640
|
+
*/
|
|
4641
|
+
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
4592
4642
|
/**
|
|
4593
4643
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-lonely-if.md
|
|
4595
4645
|
*/
|
|
4596
4646
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
4597
4647
|
/**
|
|
4598
4648
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
4599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
4600
4650
|
*/
|
|
4601
4651
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
4602
4652
|
/**
|
|
4603
4653
|
* Disallow negated conditions.
|
|
4604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-negated-condition.md
|
|
4605
4655
|
*/
|
|
4606
4656
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
4607
4657
|
/**
|
|
4608
4658
|
* Disallow negated expression in equality check.
|
|
4609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-negation-in-equality-check.md
|
|
4610
4660
|
*/
|
|
4611
4661
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
4612
4662
|
/**
|
|
4613
4663
|
* Disallow nested ternary expressions.
|
|
4614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-nested-ternary.md
|
|
4615
4665
|
*/
|
|
4616
4666
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
4617
4667
|
/**
|
|
4618
4668
|
* Disallow `new Array()`.
|
|
4619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-new-array.md
|
|
4620
4670
|
*/
|
|
4621
4671
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
4622
4672
|
/**
|
|
4623
4673
|
* 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/
|
|
4674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-new-buffer.md
|
|
4625
4675
|
*/
|
|
4626
4676
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
4627
4677
|
/**
|
|
4628
4678
|
* Disallow the use of the `null` literal.
|
|
4629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-null.md
|
|
4630
4680
|
*/
|
|
4631
4681
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
4632
4682
|
/**
|
|
4633
4683
|
* Disallow the use of objects as default parameters.
|
|
4634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4635
4685
|
*/
|
|
4636
4686
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
4637
4687
|
/**
|
|
4638
4688
|
* Disallow `process.exit()`.
|
|
4639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-process-exit.md
|
|
4640
4690
|
*/
|
|
4641
4691
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
4642
4692
|
/**
|
|
4643
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4693
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-reduce
|
|
4644
4694
|
* @deprecated
|
|
4645
4695
|
*/
|
|
4646
4696
|
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
4647
4697
|
/**
|
|
4648
4698
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
4649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
4650
4700
|
*/
|
|
4651
4701
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4652
4702
|
/**
|
|
4653
4703
|
* Disallow classes that only have static members.
|
|
4654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-static-only-class.md
|
|
4655
4705
|
*/
|
|
4656
4706
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
4657
4707
|
/**
|
|
4658
4708
|
* Disallow `then` property.
|
|
4659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-thenable.md
|
|
4660
4710
|
*/
|
|
4661
4711
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
4662
4712
|
/**
|
|
4663
4713
|
* Disallow assigning `this` to a variable.
|
|
4664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-this-assignment.md
|
|
4665
4715
|
*/
|
|
4666
4716
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
4667
4717
|
/**
|
|
4668
4718
|
* Disallow comparing `undefined` using `typeof`.
|
|
4669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4719
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-typeof-undefined.md
|
|
4670
4720
|
*/
|
|
4671
4721
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
4672
4722
|
/**
|
|
4673
4723
|
* Disallow awaiting non-promise values.
|
|
4674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unnecessary-await.md
|
|
4675
4725
|
*/
|
|
4676
4726
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
4677
4727
|
/**
|
|
4678
4728
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4729
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
4680
4730
|
*/
|
|
4681
4731
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
4682
4732
|
/**
|
|
4683
4733
|
* Disallow unreadable array destructuring.
|
|
4684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
4685
4735
|
*/
|
|
4686
4736
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
4687
4737
|
/**
|
|
4688
4738
|
* Disallow unreadable IIFEs.
|
|
4689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4739
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unreadable-iife.md
|
|
4690
4740
|
*/
|
|
4691
4741
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
4692
4742
|
/**
|
|
4693
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
4694
4744
|
* @deprecated
|
|
4695
4745
|
*/
|
|
4696
4746
|
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
4697
4747
|
/**
|
|
4698
4748
|
* Disallow unused object properties.
|
|
4699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4749
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unused-properties.md
|
|
4700
4750
|
*/
|
|
4701
4751
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
4702
4752
|
/**
|
|
4703
4753
|
* Disallow useless fallback when spreading in object literals.
|
|
4704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4754
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
4705
4755
|
*/
|
|
4706
4756
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
4707
4757
|
/**
|
|
4708
4758
|
* Disallow useless array length check.
|
|
4709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4759
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-length-check.md
|
|
4710
4760
|
*/
|
|
4711
4761
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
4712
4762
|
/**
|
|
4713
4763
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4764
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
4715
4765
|
*/
|
|
4716
4766
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
4717
4767
|
/**
|
|
4718
4768
|
* Disallow unnecessary spread.
|
|
4719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4769
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-spread.md
|
|
4720
4770
|
*/
|
|
4721
4771
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
4722
4772
|
/**
|
|
4723
4773
|
* Disallow useless case in switch statements.
|
|
4724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4774
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-switch-case.md
|
|
4725
4775
|
*/
|
|
4726
4776
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
4727
4777
|
/**
|
|
4728
4778
|
* Disallow useless `undefined`.
|
|
4729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4779
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-undefined.md
|
|
4730
4780
|
*/
|
|
4731
4781
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
4732
4782
|
/**
|
|
4733
4783
|
* Disallow number literals with zero fractions or dangling dots.
|
|
4734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4784
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-zero-fractions.md
|
|
4735
4785
|
*/
|
|
4736
4786
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
4737
4787
|
/**
|
|
4738
4788
|
* Enforce proper case for numeric literals.
|
|
4739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4789
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/number-literal-case.md
|
|
4740
4790
|
*/
|
|
4741
4791
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
4742
4792
|
/**
|
|
4743
4793
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4794
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/numeric-separators-style.md
|
|
4745
4795
|
*/
|
|
4746
4796
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
4747
4797
|
/**
|
|
4748
4798
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4799
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-add-event-listener.md
|
|
4750
4800
|
*/
|
|
4751
4801
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
4752
4802
|
/**
|
|
4753
4803
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4804
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-find.md
|
|
4755
4805
|
*/
|
|
4756
4806
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
4757
4807
|
/**
|
|
4758
4808
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4809
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-flat.md
|
|
4760
4810
|
*/
|
|
4761
4811
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
4762
4812
|
/**
|
|
4763
4813
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-flat-map.md
|
|
4765
4815
|
*/
|
|
4766
4816
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
4767
4817
|
/**
|
|
4768
4818
|
* 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/
|
|
4819
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-index-of.md
|
|
4770
4820
|
*/
|
|
4771
4821
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
4772
4822
|
/**
|
|
4773
4823
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
4774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4824
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-some.md
|
|
4775
4825
|
*/
|
|
4776
4826
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
4777
4827
|
/**
|
|
4778
4828
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4829
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-at.md
|
|
4780
4830
|
*/
|
|
4781
4831
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
4782
4832
|
/**
|
|
4783
4833
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4834
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
4785
4835
|
*/
|
|
4786
4836
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
4787
4837
|
/**
|
|
4788
4838
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
4789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4839
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-code-point.md
|
|
4790
4840
|
*/
|
|
4791
4841
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
4792
4842
|
/**
|
|
4793
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
4794
4844
|
* @deprecated
|
|
4795
4845
|
*/
|
|
4796
4846
|
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
4797
4847
|
/**
|
|
4798
4848
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
4799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4849
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-date-now.md
|
|
4800
4850
|
*/
|
|
4801
4851
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
4802
4852
|
/**
|
|
4803
4853
|
* Prefer default parameters over reassignment.
|
|
4804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4854
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-default-parameters.md
|
|
4805
4855
|
*/
|
|
4806
4856
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
4807
4857
|
/**
|
|
4808
4858
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4859
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-append.md
|
|
4810
4860
|
*/
|
|
4811
4861
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
4812
4862
|
/**
|
|
4813
4863
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4814
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4864
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
4815
4865
|
*/
|
|
4816
4866
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
4817
4867
|
/**
|
|
4818
4868
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4819
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4869
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-remove.md
|
|
4820
4870
|
*/
|
|
4821
4871
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
4822
4872
|
/**
|
|
4823
4873
|
* Prefer `.textContent` over `.innerText`.
|
|
4824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4874
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
4825
4875
|
*/
|
|
4826
4876
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
4827
4877
|
/**
|
|
4828
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
4829
4879
|
* @deprecated
|
|
4830
4880
|
*/
|
|
4831
4881
|
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
4832
4882
|
/**
|
|
4833
4883
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
4834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4884
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-event-target.md
|
|
4835
4885
|
*/
|
|
4836
4886
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
4837
4887
|
/**
|
|
4838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
4839
4889
|
* @deprecated
|
|
4840
4890
|
*/
|
|
4841
4891
|
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
4842
4892
|
/**
|
|
4843
4893
|
* Prefer `export…from` when re-exporting.
|
|
4844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4894
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-export-from.md
|
|
4845
4895
|
*/
|
|
4846
4896
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
4847
4897
|
/**
|
|
4848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4898
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
4849
4899
|
* @deprecated
|
|
4850
4900
|
*/
|
|
4851
4901
|
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
4852
4902
|
/**
|
|
4853
4903
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
4854
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4904
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-includes.md
|
|
4855
4905
|
*/
|
|
4856
4906
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
4857
4907
|
/**
|
|
4858
4908
|
* Prefer reading a JSON file as a buffer.
|
|
4859
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4909
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
4860
4910
|
*/
|
|
4861
4911
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
4862
4912
|
/**
|
|
4863
4913
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
4864
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4914
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
4865
4915
|
*/
|
|
4866
4916
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
4867
4917
|
/**
|
|
4868
4918
|
* Prefer using a logical operator over a ternary.
|
|
4869
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4919
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
4870
4920
|
*/
|
|
4871
4921
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
4872
4922
|
/**
|
|
4873
4923
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
4874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4924
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-math-trunc.md
|
|
4875
4925
|
*/
|
|
4876
4926
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
4877
4927
|
/**
|
|
4878
4928
|
* 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/
|
|
4929
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
4880
4930
|
*/
|
|
4881
4931
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
4882
4932
|
/**
|
|
4883
4933
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
4884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4934
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-modern-math-apis.md
|
|
4885
4935
|
*/
|
|
4886
4936
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
4887
4937
|
/**
|
|
4888
4938
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
4889
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4939
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-module.md
|
|
4890
4940
|
*/
|
|
4891
4941
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
4892
4942
|
/**
|
|
4893
4943
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
4894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4944
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
4895
4945
|
*/
|
|
4896
4946
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
4897
4947
|
/**
|
|
4898
4948
|
* Prefer negative index over `.length - index` when possible.
|
|
4899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4949
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-negative-index.md
|
|
4900
4950
|
*/
|
|
4901
4951
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
4902
4952
|
/**
|
|
4903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4953
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
4904
4954
|
* @deprecated
|
|
4905
4955
|
*/
|
|
4906
4956
|
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
4907
4957
|
/**
|
|
4908
4958
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
4909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4959
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-node-protocol.md
|
|
4910
4960
|
*/
|
|
4911
4961
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
4912
4962
|
/**
|
|
4913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4963
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
4914
4964
|
* @deprecated
|
|
4915
4965
|
*/
|
|
4916
4966
|
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
4917
4967
|
/**
|
|
4918
4968
|
* Prefer `Number` static properties over global ones.
|
|
4919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4969
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-number-properties.md
|
|
4920
4970
|
*/
|
|
4921
4971
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
4922
4972
|
/**
|
|
4923
4973
|
* 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/
|
|
4974
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-object-from-entries.md
|
|
4925
4975
|
*/
|
|
4926
4976
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
4927
4977
|
/**
|
|
4928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4978
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
4929
4979
|
* @deprecated
|
|
4930
4980
|
*/
|
|
4931
4981
|
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
4932
4982
|
/**
|
|
4933
4983
|
* Prefer omitting the `catch` binding parameter.
|
|
4934
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4984
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
4935
4985
|
*/
|
|
4936
4986
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
4937
4987
|
/**
|
|
4938
4988
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
4939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4989
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-prototype-methods.md
|
|
4940
4990
|
*/
|
|
4941
4991
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
4942
4992
|
/**
|
|
4943
4993
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
4944
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4994
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-query-selector.md
|
|
4945
4995
|
*/
|
|
4946
4996
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
4947
4997
|
/**
|
|
4948
4998
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
4949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4999
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-reflect-apply.md
|
|
4950
5000
|
*/
|
|
4951
5001
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
4952
5002
|
/**
|
|
4953
5003
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
4954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5004
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-regexp-test.md
|
|
4955
5005
|
*/
|
|
4956
5006
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
4957
5007
|
/**
|
|
4958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5008
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
4959
5009
|
* @deprecated
|
|
4960
5010
|
*/
|
|
4961
5011
|
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
4962
5012
|
/**
|
|
4963
5013
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
4964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5014
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-set-has.md
|
|
4965
5015
|
*/
|
|
4966
5016
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
4967
5017
|
/**
|
|
4968
5018
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
4969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5019
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-set-size.md
|
|
4970
5020
|
*/
|
|
4971
5021
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
4972
5022
|
/**
|
|
4973
5023
|
* 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/
|
|
5024
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-spread.md
|
|
4975
5025
|
*/
|
|
4976
5026
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
4977
5027
|
/**
|
|
4978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5028
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
4979
5029
|
* @deprecated
|
|
4980
5030
|
*/
|
|
4981
5031
|
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
4982
5032
|
/**
|
|
4983
5033
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
4984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5034
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-raw.md
|
|
4985
5035
|
*/
|
|
4986
5036
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
4987
5037
|
/**
|
|
4988
5038
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
4989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5039
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-replace-all.md
|
|
4990
5040
|
*/
|
|
4991
5041
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
4992
5042
|
/**
|
|
4993
5043
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
4994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5044
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-slice.md
|
|
4995
5045
|
*/
|
|
4996
5046
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
4997
5047
|
/**
|
|
4998
5048
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
4999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5049
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5000
5050
|
*/
|
|
5001
5051
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5002
5052
|
/**
|
|
5003
5053
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5054
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5005
5055
|
*/
|
|
5006
5056
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5007
5057
|
/**
|
|
5008
5058
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5059
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-structured-clone.md
|
|
5010
5060
|
*/
|
|
5011
5061
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
5012
5062
|
/**
|
|
5013
5063
|
* Prefer `switch` over multiple `else-if`.
|
|
5014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5064
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-switch.md
|
|
5015
5065
|
*/
|
|
5016
5066
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
5017
5067
|
/**
|
|
5018
5068
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5069
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-ternary.md
|
|
5020
5070
|
*/
|
|
5021
5071
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
5022
5072
|
/**
|
|
5023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
5024
5074
|
* @deprecated
|
|
5025
5075
|
*/
|
|
5026
5076
|
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
5027
5077
|
/**
|
|
5028
5078
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-top-level-await.md
|
|
5030
5080
|
*/
|
|
5031
5081
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
5032
5082
|
/**
|
|
5033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
5034
5084
|
* @deprecated
|
|
5035
5085
|
*/
|
|
5036
5086
|
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5037
5087
|
/**
|
|
5038
5088
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5039
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5089
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-type-error.md
|
|
5040
5090
|
*/
|
|
5041
5091
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
5042
5092
|
/**
|
|
5043
5093
|
* Prevent abbreviations.
|
|
5044
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5094
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prevent-abbreviations.md
|
|
5045
5095
|
*/
|
|
5046
5096
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
5047
5097
|
/**
|
|
5048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
5049
5099
|
* @deprecated
|
|
5050
5100
|
*/
|
|
5051
5101
|
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
5052
5102
|
/**
|
|
5053
5103
|
* Enforce consistent relative URL style.
|
|
5054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5104
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/relative-url-style.md
|
|
5055
5105
|
*/
|
|
5056
5106
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
5057
5107
|
/**
|
|
5058
5108
|
* Enforce using the separator argument with `Array#join()`.
|
|
5059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5109
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-array-join-separator.md
|
|
5060
5110
|
*/
|
|
5061
5111
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
5062
5112
|
/**
|
|
5063
5113
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5064
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5114
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5065
5115
|
*/
|
|
5066
5116
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
5067
5117
|
/**
|
|
5068
5118
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-post-message-target-origin.md
|
|
5070
5120
|
*/
|
|
5071
5121
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
5072
5122
|
/**
|
|
5073
5123
|
* Enforce better string content.
|
|
5074
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/string-content.md
|
|
5075
5125
|
*/
|
|
5076
5126
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
5077
5127
|
/**
|
|
5078
5128
|
* Enforce consistent brace style for `case` clauses.
|
|
5079
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/switch-case-braces.md
|
|
5080
5130
|
*/
|
|
5081
5131
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
5082
5132
|
/**
|
|
5083
5133
|
* Fix whitespace-insensitive template indentation.
|
|
5084
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/template-indent.md
|
|
5085
5135
|
*/
|
|
5086
5136
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
5087
5137
|
/**
|
|
5088
5138
|
* Enforce consistent case for text encoding identifiers.
|
|
5089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5090
5140
|
*/
|
|
5091
5141
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
5092
5142
|
/**
|
|
5093
5143
|
* Require `new` when creating an error.
|
|
5094
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/throw-new-error.md
|
|
5095
5145
|
*/
|
|
5096
5146
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
5097
5147
|
/**
|
|
@@ -7162,7 +7212,7 @@ type NodeNoUnsupportedFeaturesEsSyntax = []|[{
|
|
|
7162
7212
|
type NodeNoUnsupportedFeaturesNodeBuiltins = []|[{
|
|
7163
7213
|
version?: string
|
|
7164
7214
|
allowExperimental?: boolean
|
|
7165
|
-
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.crc32" | "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")[]
|
|
7215
|
+
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" | "localStorage" | "sessionStorage" | "Storage" | "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.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "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.matchesGlob" | "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.matchesGlob" | "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.matchesGlob" | "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.matchesGlob" | "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.matchesGlob" | "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.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.MockFunctionContext" | "test.MockModuleContext" | "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.snapshot" | "test.test.MockFunctionContext" | "test.test.MockModuleContext" | "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.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.crc32" | "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")[]
|
|
7166
7216
|
}]
|
|
7167
7217
|
// ----- node/prefer-global/buffer -----
|
|
7168
7218
|
type NodePreferGlobalBuffer = []|[("always" | "never")]
|
|
@@ -7432,6 +7482,15 @@ type ReactForbidComponentProps = []|[{
|
|
|
7432
7482
|
} | {
|
|
7433
7483
|
propName?: string
|
|
7434
7484
|
|
|
7485
|
+
disallowedFor: [string, ...(string)[]]
|
|
7486
|
+
message?: string
|
|
7487
|
+
} | {
|
|
7488
|
+
propNamePattern?: string
|
|
7489
|
+
allowedFor?: string[]
|
|
7490
|
+
message?: string
|
|
7491
|
+
} | {
|
|
7492
|
+
propNamePattern?: string
|
|
7493
|
+
|
|
7435
7494
|
disallowedFor: [string, ...(string)[]]
|
|
7436
7495
|
message?: string
|
|
7437
7496
|
})[]
|
|
@@ -7489,6 +7548,10 @@ type ReactJsxClosingBracketLocation = []|[(("after-props" | "props-aligned" | "t
|
|
|
7489
7548
|
nonEmpty?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned" | false)
|
|
7490
7549
|
selfClosing?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned" | false)
|
|
7491
7550
|
})]
|
|
7551
|
+
// ----- react/jsx-closing-tag-location -----
|
|
7552
|
+
type ReactJsxClosingTagLocation = []|[(("tag-aligned" | "line-aligned") | {
|
|
7553
|
+
location?: ("tag-aligned" | "line-aligned")
|
|
7554
|
+
})]
|
|
7492
7555
|
// ----- react/jsx-curly-brace-presence -----
|
|
7493
7556
|
type ReactJsxCurlyBracePresence = []|[({
|
|
7494
7557
|
props?: ("always" | "never" | "ignore")
|
|
@@ -7544,20 +7607,26 @@ type ReactJsxHandlerNames = []|[({
|
|
|
7544
7607
|
eventHandlerPropPrefix?: string
|
|
7545
7608
|
checkLocalVariables?: boolean
|
|
7546
7609
|
checkInlineFunction?: boolean
|
|
7610
|
+
ignoreComponentNames?: string[]
|
|
7547
7611
|
} | {
|
|
7548
7612
|
eventHandlerPrefix?: string
|
|
7549
7613
|
eventHandlerPropPrefix?: false
|
|
7550
7614
|
checkLocalVariables?: boolean
|
|
7551
7615
|
checkInlineFunction?: boolean
|
|
7616
|
+
ignoreComponentNames?: string[]
|
|
7552
7617
|
} | {
|
|
7553
7618
|
eventHandlerPrefix?: false
|
|
7554
7619
|
eventHandlerPropPrefix?: string
|
|
7555
7620
|
checkLocalVariables?: boolean
|
|
7556
7621
|
checkInlineFunction?: boolean
|
|
7622
|
+
ignoreComponentNames?: string[]
|
|
7557
7623
|
} | {
|
|
7558
7624
|
checkLocalVariables?: boolean
|
|
7559
7625
|
} | {
|
|
7560
7626
|
checkInlineFunction?: boolean
|
|
7627
|
+
} | {
|
|
7628
|
+
ignoreComponentNames?: string[]
|
|
7629
|
+
[k: string]: unknown | undefined
|
|
7561
7630
|
})]
|
|
7562
7631
|
// ----- react/jsx-indent -----
|
|
7563
7632
|
type ReactJsxIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
@@ -7709,6 +7778,12 @@ type ReactJsxWrapMultilines = []|[{
|
|
|
7709
7778
|
type ReactNoChildrenProp = []|[{
|
|
7710
7779
|
allowFunctions?: boolean
|
|
7711
7780
|
}]
|
|
7781
|
+
// ----- react/no-danger -----
|
|
7782
|
+
type ReactNoDanger = []|[{
|
|
7783
|
+
|
|
7784
|
+
customComponentNames?: string[]
|
|
7785
|
+
[k: string]: unknown | undefined
|
|
7786
|
+
}]
|
|
7712
7787
|
// ----- react/no-did-mount-set-state -----
|
|
7713
7788
|
type ReactNoDidMountSetState = []|["disallow-in-func"]
|
|
7714
7789
|
// ----- react/no-did-update-set-state -----
|
|
@@ -9431,7 +9506,7 @@ type TsRestrictTemplateExpressions = []|[{
|
|
|
9431
9506
|
allowNever?: boolean
|
|
9432
9507
|
}]
|
|
9433
9508
|
// ----- ts/return-await -----
|
|
9434
|
-
type TsReturnAwait = []|[("in-try-catch" | "always" | "never")]
|
|
9509
|
+
type TsReturnAwait = []|[("in-try-catch" | "always" | "never" | "error-handling-correctness-only")]
|
|
9435
9510
|
// ----- ts/semi -----
|
|
9436
9511
|
type TsSemi = ([]|["never"]|["never", {
|
|
9437
9512
|
beforeStatementContinuationChars?: ("always" | "any" | "never")
|
|
@@ -9761,7 +9836,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
9761
9836
|
type ConfigNames = '2digits:comments' | '2digits:graphql' | '2digits:ignores' | '2digits:gitignore' | '2digits:javascript' | '2digits:jsdoc' | '2digits:next/setup' | '2digits:next/rules' | '2digits:node' | '2digits:prettier' | '2digits:react/setup' | '2digits:react/rules' | '2digits:sonar' | '2digits:storybook/setup' | '2digits:storybook/rules' | '2digits:storybook/disables' | '2digits:storybook/config' | '2digits:tailwind' | '2digits:tanstack' | '2digits:turbo' | '2digits:typescript/setup' | '2digits:typescript/rules' | '2digits:typescript/disables/dts' | '2digits:typescript/disables/test' | '2digits:typescript/disables/cjs' | '2digits:unicorn'
|
|
9762
9837
|
|
|
9763
9838
|
type Rules = RuleOptions;
|
|
9764
|
-
interface TypedFlatConfigItem extends Omit<Linter.
|
|
9839
|
+
interface TypedFlatConfigItem extends Omit<Linter.Config<Linter.RulesRecord & Rules>, 'plugins' | 'languageOptions'> {
|
|
9765
9840
|
/**
|
|
9766
9841
|
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is
|
|
9767
9842
|
* specified, these plugins are only available to the matching files.
|