@lincy/eslint-config 4.3.1 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2149,6 +2149,11 @@ interface RuleOptions {
2149
2149
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/handle-callback-err.md
2150
2150
  */
2151
2151
  'node/handle-callback-err'?: Linter.RuleEntry<NodeHandleCallbackErr>
2152
+ /**
2153
+ * require correct usage of hashbang
2154
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md
2155
+ */
2156
+ 'node/hashbang'?: Linter.RuleEntry<NodeHashbang>
2152
2157
  /**
2153
2158
  * enforce Node.js-style error-first callback pattern is followed
2154
2159
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-callback-literal.md
@@ -2245,12 +2250,6 @@ interface RuleOptions {
2245
2250
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-require.md
2246
2251
  */
2247
2252
  'node/no-unpublished-require'?: Linter.RuleEntry<NodeNoUnpublishedRequire>
2248
- /**
2249
- * disallow unsupported ECMAScript features on the specified version
2250
- * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features.md
2251
- * @deprecated
2252
- */
2253
- 'node/no-unsupported-features'?: Linter.RuleEntry<NodeNoUnsupportedFeatures>
2254
2253
  /**
2255
2254
  * disallow unsupported ECMAScript built-ins on the specified version
2256
2255
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/es-builtins.md
@@ -2301,6 +2300,11 @@ interface RuleOptions {
2301
2300
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
2302
2301
  */
2303
2302
  'node/prefer-global/url-search-params'?: Linter.RuleEntry<NodePreferGlobalUrlSearchParams>
2303
+ /**
2304
+ * enforce using the `node:` protocol when importing Node.js builtin modules.
2305
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
2306
+ */
2307
+ 'node/prefer-node-protocol'?: Linter.RuleEntry<NodePreferNodeProtocol>
2304
2308
  /**
2305
2309
  * enforce `require("dns").promises`
2306
2310
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
@@ -2317,8 +2321,9 @@ interface RuleOptions {
2317
2321
  */
2318
2322
  'node/process-exit-as-throw'?: Linter.RuleEntry<[]>
2319
2323
  /**
2320
- * require correct usage of shebang
2321
- * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/shebang.md
2324
+ * require correct usage of hashbang
2325
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md
2326
+ * @deprecated
2322
2327
  */
2323
2328
  'node/shebang'?: Linter.RuleEntry<NodeShebang>
2324
2329
  /**
@@ -2419,6 +2424,11 @@ interface RuleOptions {
2419
2424
  * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-interfaces
2420
2425
  */
2421
2426
  'perfectionist/sort-interfaces'?: Linter.RuleEntry<PerfectionistSortInterfaces>
2427
+ /**
2428
+ * enforce sorted intersection types
2429
+ * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-intersection-types
2430
+ */
2431
+ 'perfectionist/sort-intersection-types'?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>
2422
2432
  /**
2423
2433
  * enforce sorted JSX props
2424
2434
  * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-jsx-props
@@ -3660,103 +3670,103 @@ interface RuleOptions {
3660
3670
  */
3661
3671
  'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>
3662
3672
  /**
3663
- * forbidden .spec test file pattern
3673
+ * require .spec test file pattern
3664
3674
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
3665
3675
  */
3666
3676
  'test/consistent-test-filename'?: Linter.RuleEntry<TestConsistentTestFilename>
3667
3677
  /**
3668
- * Prefer test or it but not both
3678
+ * enforce using test or it but not both
3669
3679
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
3670
3680
  */
3671
3681
  'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>
3672
3682
  /**
3673
- * Enforce having expectation in test body
3683
+ * enforce having expectation in test body
3674
3684
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
3675
3685
  */
3676
3686
  'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
3677
3687
  /**
3678
- * Enforce a maximum number of expect per test
3688
+ * enforce a maximum number of expect per test
3679
3689
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
3680
3690
  */
3681
3691
  'test/max-expects'?: Linter.RuleEntry<TestMaxExpects>
3682
3692
  /**
3683
- * Nested describe block should be less than set max value or default value
3693
+ * require describe block to be less than set max value or default value
3684
3694
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
3685
3695
  */
3686
3696
  'test/max-nested-describe'?: Linter.RuleEntry<TestMaxNestedDescribe>
3687
3697
  /**
3688
- * Disallow alias methods
3698
+ * disallow alias methods
3689
3699
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
3690
3700
  */
3691
3701
  'test/no-alias-methods'?: Linter.RuleEntry<[]>
3692
3702
  /**
3693
- * Disallow commented out tests
3703
+ * disallow commented out tests
3694
3704
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
3695
3705
  */
3696
3706
  'test/no-commented-out-tests'?: Linter.RuleEntry<[]>
3697
3707
  /**
3698
- * Disallow conditional expects
3708
+ * disallow conditional expects
3699
3709
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
3700
3710
  */
3701
3711
  'test/no-conditional-expect'?: Linter.RuleEntry<[]>
3702
3712
  /**
3703
- * Disallow conditional tests
3713
+ * disallow conditional tests
3704
3714
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
3705
3715
  */
3706
3716
  'test/no-conditional-in-test'?: Linter.RuleEntry<[]>
3707
3717
  /**
3708
- * Disallow conditional tests
3718
+ * disallow conditional tests
3709
3719
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
3710
3720
  */
3711
3721
  'test/no-conditional-tests'?: Linter.RuleEntry<[]>
3712
3722
  /**
3713
- * Disallow disabled tests
3723
+ * disallow disabled tests
3714
3724
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
3715
3725
  */
3716
3726
  'test/no-disabled-tests'?: Linter.RuleEntry<[]>
3717
3727
  /**
3718
- * Disallow using a callback in asynchronous tests and hooks
3728
+ * disallow using a callback in asynchronous tests and hooks
3719
3729
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
3720
3730
  * @deprecated
3721
3731
  */
3722
3732
  'test/no-done-callback'?: Linter.RuleEntry<[]>
3723
3733
  /**
3724
- * Disallow duplicate hooks and teardown hooks
3734
+ * disallow duplicate hooks and teardown hooks
3725
3735
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
3726
3736
  */
3727
3737
  'test/no-duplicate-hooks'?: Linter.RuleEntry<[]>
3728
3738
  /**
3729
- * Disallow focused tests
3739
+ * disallow focused tests
3730
3740
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
3731
3741
  */
3732
- 'test/no-focused-tests'?: Linter.RuleEntry<[]>
3742
+ 'test/no-focused-tests'?: Linter.RuleEntry<TestNoFocusedTests>
3733
3743
  /**
3734
- * Disallow setup and teardown hooks
3744
+ * disallow setup and teardown hooks
3735
3745
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
3736
3746
  */
3737
3747
  'test/no-hooks'?: Linter.RuleEntry<TestNoHooks>
3738
3748
  /**
3739
- * Disallow identical titles
3749
+ * disallow identical titles
3740
3750
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
3741
3751
  */
3742
3752
  'test/no-identical-title'?: Linter.RuleEntry<[]>
3743
3753
  /**
3744
- * Disallow importing `node:test`
3754
+ * disallow importing `node:test`
3745
3755
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
3746
3756
  */
3747
3757
  'test/no-import-node-test'?: Linter.RuleEntry<[]>
3748
3758
  /**
3749
- * Disallow string interpolation in snapshots
3759
+ * disallow string interpolation in snapshots
3750
3760
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
3751
3761
  */
3752
3762
  'test/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>
3753
3763
  /**
3754
- * Disallow large snapshots
3764
+ * disallow large snapshots
3755
3765
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
3756
3766
  */
3757
3767
  'test/no-large-snapshots'?: Linter.RuleEntry<TestNoLargeSnapshots>
3758
3768
  /**
3759
- * Disallow importing from __mocks__ directory
3769
+ * disallow importing from __mocks__ directory
3760
3770
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
3761
3771
  */
3762
3772
  'test/no-mocks-import'?: Linter.RuleEntry<[]>
@@ -3766,162 +3776,162 @@ interface RuleOptions {
3766
3776
  */
3767
3777
  'test/no-only-tests'?: Linter.RuleEntry<TestNoOnlyTests>
3768
3778
  /**
3769
- * Disallow the use of certain matchers
3779
+ * disallow the use of certain matchers
3770
3780
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
3771
3781
  */
3772
3782
  'test/no-restricted-matchers'?: Linter.RuleEntry<TestNoRestrictedMatchers>
3773
3783
  /**
3774
- * Disallow specific `vi.` methods
3784
+ * disallow specific `vi.` methods
3775
3785
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
3776
3786
  */
3777
3787
  'test/no-restricted-vi-methods'?: Linter.RuleEntry<TestNoRestrictedViMethods>
3778
3788
  /**
3779
- * Disallow using `expect` outside of `it` or `test` blocks
3789
+ * disallow using `expect` outside of `it` or `test` blocks
3780
3790
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
3781
3791
  */
3782
3792
  'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
3783
3793
  /**
3784
- * Disallow using `test` as a prefix
3794
+ * disallow using `test` as a prefix
3785
3795
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
3786
3796
  */
3787
3797
  'test/no-test-prefixes'?: Linter.RuleEntry<[]>
3788
3798
  /**
3789
- * Disallow return statements in tests
3799
+ * disallow return statements in tests
3790
3800
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
3791
3801
  */
3792
3802
  'test/no-test-return-statement'?: Linter.RuleEntry<[]>
3793
3803
  /**
3794
- * Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`
3804
+ * enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
3795
3805
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
3796
3806
  */
3797
3807
  'test/prefer-called-with'?: Linter.RuleEntry<[]>
3798
3808
  /**
3799
- * Suggest using the built-in comparison matchers
3809
+ * enforce using the built-in comparison matchers
3800
3810
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
3801
3811
  */
3802
3812
  'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
3803
3813
  /**
3804
- * Prefer `each` rather than manual loops
3814
+ * enforce using `each` rather than manual loops
3805
3815
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
3806
3816
  */
3807
3817
  'test/prefer-each'?: Linter.RuleEntry<[]>
3808
3818
  /**
3809
- * Suggest using the built-in quality matchers
3819
+ * enforce using the built-in quality matchers
3810
3820
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
3811
3821
  */
3812
3822
  'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>
3813
3823
  /**
3814
- * Suggest using expect assertions instead of callbacks
3824
+ * enforce using expect assertions instead of callbacks
3815
3825
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
3816
3826
  */
3817
3827
  'test/prefer-expect-assertions'?: Linter.RuleEntry<TestPreferExpectAssertions>
3818
3828
  /**
3819
- * Suggest using `expect().resolves` over `expect(await ...)` syntax
3829
+ * enforce using `expect().resolves` over `expect(await ...)` syntax
3820
3830
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
3821
3831
  */
3822
3832
  'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>
3823
3833
  /**
3824
- * Prefer having hooks in consistent order
3834
+ * enforce having hooks in consistent order
3825
3835
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
3826
3836
  */
3827
3837
  'test/prefer-hooks-in-order'?: Linter.RuleEntry<[]>
3828
3838
  /**
3829
- * Suggest having hooks before any test cases
3839
+ * enforce having hooks before any test cases
3830
3840
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
3831
3841
  */
3832
3842
  'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
3833
3843
  /**
3834
- * Enforce lowercase titles
3844
+ * enforce lowercase titles
3835
3845
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
3836
3846
  */
3837
3847
  'test/prefer-lowercase-title'?: Linter.RuleEntry<TestPreferLowercaseTitle>
3838
3848
  /**
3839
- * Prefer mock resolved/rejected shorthands for promises
3849
+ * enforce mock resolved/rejected shorthands for promises
3840
3850
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
3841
3851
  */
3842
3852
  'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>
3843
3853
  /**
3844
- * Prefer including a hint with external snapshots
3854
+ * enforce including a hint with external snapshots
3845
3855
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
3846
3856
  */
3847
3857
  'test/prefer-snapshot-hint'?: Linter.RuleEntry<TestPreferSnapshotHint>
3848
3858
  /**
3849
- * Suggest using `vi.spyOn`
3859
+ * enforce using `vi.spyOn`
3850
3860
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
3851
3861
  */
3852
3862
  'test/prefer-spy-on'?: Linter.RuleEntry<[]>
3853
3863
  /**
3854
- * Prefer strict equal over equal
3864
+ * enforce strict equal over equal
3855
3865
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
3856
3866
  */
3857
3867
  'test/prefer-strict-equal'?: Linter.RuleEntry<[]>
3858
3868
  /**
3859
- * Suggest using toBe()
3869
+ * enforce using toBe()
3860
3870
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
3861
3871
  */
3862
3872
  'test/prefer-to-be'?: Linter.RuleEntry<[]>
3863
3873
  /**
3864
- * Suggest using toBeFalsy()
3874
+ * enforce using toBeFalsy()
3865
3875
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
3866
3876
  */
3867
3877
  'test/prefer-to-be-falsy'?: Linter.RuleEntry<[]>
3868
3878
  /**
3869
- * Prefer toBeObject()
3879
+ * enforce using toBeObject()
3870
3880
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
3871
3881
  */
3872
3882
  'test/prefer-to-be-object'?: Linter.RuleEntry<[]>
3873
3883
  /**
3874
- * Suggest using `toBeTruthy`
3884
+ * enforce using `toBeTruthy`
3875
3885
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
3876
3886
  */
3877
3887
  'test/prefer-to-be-truthy'?: Linter.RuleEntry<[]>
3878
3888
  /**
3879
- * Prefer using toContain()
3889
+ * enforce using toContain()
3880
3890
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
3881
3891
  */
3882
3892
  'test/prefer-to-contain'?: Linter.RuleEntry<[]>
3883
3893
  /**
3884
- * Suggest using toHaveLength()
3894
+ * enforce using toHaveLength()
3885
3895
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
3886
3896
  */
3887
3897
  'test/prefer-to-have-length'?: Linter.RuleEntry<[]>
3888
3898
  /**
3889
- * Suggest using `test.todo`
3899
+ * enforce using `test.todo`
3890
3900
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
3891
3901
  */
3892
3902
  'test/prefer-todo'?: Linter.RuleEntry<[]>
3893
3903
  /**
3894
- * Require setup and teardown to be within a hook
3904
+ * require setup and teardown to be within a hook
3895
3905
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
3896
3906
  */
3897
3907
  'test/require-hook'?: Linter.RuleEntry<TestRequireHook>
3898
3908
  /**
3899
- * Require local Test Context for concurrent snapshot tests
3909
+ * require local Test Context for concurrent snapshot tests
3900
3910
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
3901
3911
  */
3902
3912
  'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
3903
3913
  /**
3904
- * Require toThrow() to be called with an error message
3914
+ * require toThrow() to be called with an error message
3905
3915
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
3906
3916
  */
3907
3917
  'test/require-to-throw-message'?: Linter.RuleEntry<[]>
3908
3918
  /**
3909
- * Enforce that all tests are in a top-level describe
3919
+ * enforce that all tests are in a top-level describe
3910
3920
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
3911
3921
  */
3912
3922
  'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>
3913
3923
  /**
3914
- * Enforce valid describe callback
3924
+ * enforce valid describe callback
3915
3925
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
3916
3926
  */
3917
3927
  'test/valid-describe-callback'?: Linter.RuleEntry<[]>
3918
3928
  /**
3919
- * Enforce valid `expect()` usage
3929
+ * enforce valid `expect()` usage
3920
3930
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
3921
3931
  */
3922
3932
  'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>
3923
3933
  /**
3924
- * Enforce valid titles
3934
+ * enforce valid titles
3925
3935
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
3926
3936
  */
3927
3937
  'test/valid-title'?: Linter.RuleEntry<TestValidTitle>
@@ -4781,637 +4791,652 @@ interface RuleOptions {
4781
4791
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4782
4792
  /**
4783
4793
  * Improve regexes by making them shorter, consistent, and safer.
4784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/better-regex.md
4794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/better-regex.md
4785
4795
  */
4786
4796
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4787
4797
  /**
4788
4798
  * Enforce a specific parameter name in catch clauses.
4789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/catch-error-name.md
4799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/catch-error-name.md
4790
4800
  */
4791
4801
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4792
4802
  /**
4793
4803
  * Use destructured variables over properties.
4794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/consistent-destructuring.md
4804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/consistent-destructuring.md
4795
4805
  */
4796
4806
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4797
4807
  /**
4798
4808
  * Move function definitions to the highest possible scope.
4799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/consistent-function-scoping.md
4809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/consistent-function-scoping.md
4800
4810
  */
4801
4811
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4802
4812
  /**
4803
4813
  * Enforce correct `Error` subclassing.
4804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/custom-error-definition.md
4814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/custom-error-definition.md
4805
4815
  */
4806
4816
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4807
4817
  /**
4808
4818
  * Enforce no spaces between braces.
4809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/empty-brace-spaces.md
4819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/empty-brace-spaces.md
4810
4820
  */
4811
4821
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
4812
4822
  /**
4813
4823
  * Enforce passing a `message` value when creating a built-in error.
4814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/error-message.md
4824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/error-message.md
4815
4825
  */
4816
4826
  'unicorn/error-message'?: Linter.RuleEntry<[]>
4817
4827
  /**
4818
4828
  * Require escape sequences to use uppercase values.
4819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/escape-case.md
4829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/escape-case.md
4820
4830
  */
4821
4831
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
4822
4832
  /**
4823
4833
  * Add expiration conditions to TODO comments.
4824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/expiring-todo-comments.md
4834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/expiring-todo-comments.md
4825
4835
  */
4826
4836
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
4827
4837
  /**
4828
4838
  * Enforce explicitly comparing the `length` or `size` property of a value.
4829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/explicit-length-check.md
4839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/explicit-length-check.md
4830
4840
  */
4831
4841
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
4832
4842
  /**
4833
4843
  * Enforce a case style for filenames.
4834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/filename-case.md
4844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/filename-case.md
4835
4845
  */
4836
4846
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
4837
4847
  /**
4838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#import-index
4848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#import-index
4839
4849
  * @deprecated
4840
4850
  */
4841
4851
  'unicorn/import-index'?: Linter.RuleEntry<[]>
4842
4852
  /**
4843
4853
  * Enforce specific import styles per module.
4844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/import-style.md
4854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/import-style.md
4845
4855
  */
4846
4856
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
4847
4857
  /**
4848
4858
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/new-for-builtins.md
4859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/new-for-builtins.md
4850
4860
  */
4851
4861
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
4852
4862
  /**
4853
4863
  * Enforce specifying rules to disable in `eslint-disable` comments.
4854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-abusive-eslint-disable.md
4864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-abusive-eslint-disable.md
4855
4865
  */
4856
4866
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
4867
+ /**
4868
+ * Disallow anonymous functions and classes as the default export.
4869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-anonymous-default-export.md
4870
+ */
4871
+ 'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
4857
4872
  /**
4858
4873
  * Prevent passing a function reference directly to iterator methods.
4859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-array-callback-reference.md
4874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-callback-reference.md
4860
4875
  */
4861
4876
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
4862
4877
  /**
4863
4878
  * Prefer `for…of` over the `forEach` method.
4864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-array-for-each.md
4879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-for-each.md
4865
4880
  */
4866
4881
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
4867
4882
  /**
4868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#no-array-instanceof
4883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-array-instanceof
4869
4884
  * @deprecated
4870
4885
  */
4871
4886
  'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
4872
4887
  /**
4873
4888
  * Disallow using the `this` argument in array methods.
4874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-array-method-this-argument.md
4889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-method-this-argument.md
4875
4890
  */
4876
4891
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
4877
4892
  /**
4878
4893
  * Enforce combining multiple `Array#push()` into one call.
4879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-array-push-push.md
4894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-push-push.md
4880
4895
  */
4881
4896
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
4882
4897
  /**
4883
4898
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-array-reduce.md
4899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-reduce.md
4885
4900
  */
4886
4901
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
4887
4902
  /**
4888
4903
  * Disallow member access from await expression.
4889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-await-expression-member.md
4904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-await-expression-member.md
4890
4905
  */
4891
4906
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
4907
+ /**
4908
+ * Disallow using `await` in `Promise` method parameters.
4909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-await-in-promise-methods.md
4910
+ */
4911
+ 'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
4892
4912
  /**
4893
4913
  * Do not use leading/trailing space between `console.log` parameters.
4894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-console-spaces.md
4914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-console-spaces.md
4895
4915
  */
4896
4916
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
4897
4917
  /**
4898
4918
  * Do not use `document.cookie` directly.
4899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-document-cookie.md
4919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-document-cookie.md
4900
4920
  */
4901
4921
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
4902
4922
  /**
4903
4923
  * Disallow empty files.
4904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-empty-file.md
4924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-empty-file.md
4905
4925
  */
4906
4926
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
4907
4927
  /**
4908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
4928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
4909
4929
  * @deprecated
4910
4930
  */
4911
4931
  'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
4912
4932
  /**
4913
4933
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-for-loop.md
4934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-for-loop.md
4915
4935
  */
4916
4936
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
4917
4937
  /**
4918
4938
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-hex-escape.md
4939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-hex-escape.md
4920
4940
  */
4921
4941
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
4922
4942
  /**
4923
4943
  * Require `Array.isArray()` instead of `instanceof Array`.
4924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-instanceof-array.md
4944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-instanceof-array.md
4925
4945
  */
4926
4946
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
4927
4947
  /**
4928
4948
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-invalid-remove-event-listener.md
4949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-invalid-remove-event-listener.md
4930
4950
  */
4931
4951
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
4932
4952
  /**
4933
4953
  * Disallow identifiers starting with `new` or `class`.
4934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-keyword-prefix.md
4954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-keyword-prefix.md
4935
4955
  */
4936
4956
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
4937
4957
  /**
4938
4958
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-lonely-if.md
4959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-lonely-if.md
4940
4960
  */
4941
4961
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
4942
4962
  /**
4943
4963
  * Disallow negated conditions.
4944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-negated-condition.md
4964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-negated-condition.md
4945
4965
  */
4946
4966
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
4947
4967
  /**
4948
4968
  * Disallow nested ternary expressions.
4949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-nested-ternary.md
4969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-nested-ternary.md
4950
4970
  */
4951
4971
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
4952
4972
  /**
4953
4973
  * Disallow `new Array()`.
4954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-new-array.md
4974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-new-array.md
4955
4975
  */
4956
4976
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
4957
4977
  /**
4958
4978
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-new-buffer.md
4979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-new-buffer.md
4960
4980
  */
4961
4981
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
4962
4982
  /**
4963
4983
  * Disallow the use of the `null` literal.
4964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-null.md
4984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-null.md
4965
4985
  */
4966
4986
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
4967
4987
  /**
4968
4988
  * Disallow the use of objects as default parameters.
4969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-object-as-default-parameter.md
4989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-object-as-default-parameter.md
4970
4990
  */
4971
4991
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
4972
4992
  /**
4973
4993
  * Disallow `process.exit()`.
4974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-process-exit.md
4994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-process-exit.md
4975
4995
  */
4976
4996
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
4977
4997
  /**
4978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#no-reduce
4998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-reduce
4979
4999
  * @deprecated
4980
5000
  */
4981
5001
  'unicorn/no-reduce'?: Linter.RuleEntry<[]>
5002
+ /**
5003
+ * Disallow passing single-element arrays to `Promise` methods.
5004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-single-promise-in-promise-methods.md
5005
+ */
5006
+ 'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
4982
5007
  /**
4983
5008
  * Disallow classes that only have static members.
4984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-static-only-class.md
5009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-static-only-class.md
4985
5010
  */
4986
5011
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
4987
5012
  /**
4988
5013
  * Disallow `then` property.
4989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-thenable.md
5014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-thenable.md
4990
5015
  */
4991
5016
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
4992
5017
  /**
4993
5018
  * Disallow assigning `this` to a variable.
4994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-this-assignment.md
5019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-this-assignment.md
4995
5020
  */
4996
5021
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
4997
5022
  /**
4998
5023
  * Disallow comparing `undefined` using `typeof`.
4999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-typeof-undefined.md
5024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-typeof-undefined.md
5000
5025
  */
5001
5026
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5002
5027
  /**
5003
5028
  * Disallow awaiting non-promise values.
5004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-unnecessary-await.md
5029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unnecessary-await.md
5005
5030
  */
5006
5031
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5007
5032
  /**
5008
5033
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-unnecessary-polyfills.md
5034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unnecessary-polyfills.md
5010
5035
  */
5011
5036
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5012
5037
  /**
5013
5038
  * Disallow unreadable array destructuring.
5014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-unreadable-array-destructuring.md
5039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unreadable-array-destructuring.md
5015
5040
  */
5016
5041
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5017
5042
  /**
5018
5043
  * Disallow unreadable IIFEs.
5019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-unreadable-iife.md
5044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unreadable-iife.md
5020
5045
  */
5021
5046
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5022
5047
  /**
5023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#no-unsafe-regex
5048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-unsafe-regex
5024
5049
  * @deprecated
5025
5050
  */
5026
5051
  'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
5027
5052
  /**
5028
5053
  * Disallow unused object properties.
5029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-unused-properties.md
5054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unused-properties.md
5030
5055
  */
5031
5056
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5032
5057
  /**
5033
5058
  * Disallow useless fallback when spreading in object literals.
5034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-fallback-in-spread.md
5059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-fallback-in-spread.md
5035
5060
  */
5036
5061
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5037
5062
  /**
5038
5063
  * Disallow useless array length check.
5039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-length-check.md
5064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-length-check.md
5040
5065
  */
5041
5066
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5042
5067
  /**
5043
5068
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-promise-resolve-reject.md
5069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-promise-resolve-reject.md
5045
5070
  */
5046
5071
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5047
5072
  /**
5048
5073
  * Disallow unnecessary spread.
5049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-spread.md
5074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-spread.md
5050
5075
  */
5051
5076
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5052
5077
  /**
5053
5078
  * Disallow useless case in switch statements.
5054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-switch-case.md
5079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-switch-case.md
5055
5080
  */
5056
5081
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5057
5082
  /**
5058
5083
  * Disallow useless `undefined`.
5059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-undefined.md
5084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-undefined.md
5060
5085
  */
5061
5086
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5062
5087
  /**
5063
5088
  * Disallow number literals with zero fractions or dangling dots.
5064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-zero-fractions.md
5089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-zero-fractions.md
5065
5090
  */
5066
5091
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5067
5092
  /**
5068
5093
  * Enforce proper case for numeric literals.
5069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/number-literal-case.md
5094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/number-literal-case.md
5070
5095
  */
5071
5096
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
5072
5097
  /**
5073
5098
  * Enforce the style of numeric separators by correctly grouping digits.
5074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/numeric-separators-style.md
5099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/numeric-separators-style.md
5075
5100
  */
5076
5101
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5077
5102
  /**
5078
5103
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-add-event-listener.md
5104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-add-event-listener.md
5080
5105
  */
5081
5106
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5082
5107
  /**
5083
5108
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-array-find.md
5109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-find.md
5085
5110
  */
5086
5111
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5087
5112
  /**
5088
5113
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-array-flat.md
5114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-flat.md
5090
5115
  */
5091
5116
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5092
5117
  /**
5093
5118
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-array-flat-map.md
5119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-flat-map.md
5095
5120
  */
5096
5121
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5097
5122
  /**
5098
5123
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-array-index-of.md
5124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-index-of.md
5100
5125
  */
5101
5126
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5102
5127
  /**
5103
5128
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
5104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-array-some.md
5129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-some.md
5105
5130
  */
5106
5131
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5107
5132
  /**
5108
5133
  * Prefer `.at()` method for index access and `String#charAt()`.
5109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-at.md
5134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-at.md
5110
5135
  */
5111
5136
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5112
5137
  /**
5113
5138
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-blob-reading-methods.md
5139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-blob-reading-methods.md
5115
5140
  */
5116
5141
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5117
5142
  /**
5118
5143
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-code-point.md
5144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-code-point.md
5120
5145
  */
5121
5146
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5122
5147
  /**
5123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-dataset
5148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-dataset
5124
5149
  * @deprecated
5125
5150
  */
5126
5151
  'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
5127
5152
  /**
5128
5153
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-date-now.md
5154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-date-now.md
5130
5155
  */
5131
5156
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5132
5157
  /**
5133
5158
  * Prefer default parameters over reassignment.
5134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-default-parameters.md
5159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-default-parameters.md
5135
5160
  */
5136
5161
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5137
5162
  /**
5138
5163
  * Prefer `Node#append()` over `Node#appendChild()`.
5139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-dom-node-append.md
5164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-append.md
5140
5165
  */
5141
5166
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5142
5167
  /**
5143
5168
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-dom-node-dataset.md
5169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-dataset.md
5145
5170
  */
5146
5171
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5147
5172
  /**
5148
5173
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-dom-node-remove.md
5174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-remove.md
5150
5175
  */
5151
5176
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5152
5177
  /**
5153
5178
  * Prefer `.textContent` over `.innerText`.
5154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-dom-node-text-content.md
5179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-text-content.md
5155
5180
  */
5156
5181
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5157
5182
  /**
5158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-event-key
5183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-event-key
5159
5184
  * @deprecated
5160
5185
  */
5161
5186
  'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
5162
5187
  /**
5163
5188
  * Prefer `EventTarget` over `EventEmitter`.
5164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-event-target.md
5189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-event-target.md
5165
5190
  */
5166
5191
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5167
5192
  /**
5168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
5193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
5169
5194
  * @deprecated
5170
5195
  */
5171
5196
  'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
5172
5197
  /**
5173
5198
  * Prefer `export…from` when re-exporting.
5174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-export-from.md
5199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-export-from.md
5175
5200
  */
5176
5201
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5177
5202
  /**
5178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-flat-map
5203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-flat-map
5179
5204
  * @deprecated
5180
5205
  */
5181
5206
  'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
5182
5207
  /**
5183
5208
  * Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
5184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-includes.md
5209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-includes.md
5185
5210
  */
5186
5211
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5187
5212
  /**
5188
5213
  * Prefer reading a JSON file as a buffer.
5189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-json-parse-buffer.md
5214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-json-parse-buffer.md
5190
5215
  */
5191
5216
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5192
5217
  /**
5193
5218
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-keyboard-event-key.md
5219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-keyboard-event-key.md
5195
5220
  */
5196
5221
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5197
5222
  /**
5198
5223
  * Prefer using a logical operator over a ternary.
5199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-logical-operator-over-ternary.md
5224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5200
5225
  */
5201
5226
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5202
5227
  /**
5203
5228
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-math-trunc.md
5229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-math-trunc.md
5205
5230
  */
5206
5231
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5207
5232
  /**
5208
5233
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-modern-dom-apis.md
5234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-modern-dom-apis.md
5210
5235
  */
5211
5236
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5212
5237
  /**
5213
5238
  * Prefer modern `Math` APIs over legacy patterns.
5214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-modern-math-apis.md
5239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-modern-math-apis.md
5215
5240
  */
5216
5241
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5217
5242
  /**
5218
5243
  * Prefer JavaScript modules (ESM) over CommonJS.
5219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-module.md
5244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-module.md
5220
5245
  */
5221
5246
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5222
5247
  /**
5223
5248
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-native-coercion-functions.md
5249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-native-coercion-functions.md
5225
5250
  */
5226
5251
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5227
5252
  /**
5228
5253
  * Prefer negative index over `.length - index` when possible.
5229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-negative-index.md
5254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-negative-index.md
5230
5255
  */
5231
5256
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5232
5257
  /**
5233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-node-append
5258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-node-append
5234
5259
  * @deprecated
5235
5260
  */
5236
5261
  'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
5237
5262
  /**
5238
5263
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-node-protocol.md
5264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-node-protocol.md
5240
5265
  */
5241
5266
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5242
5267
  /**
5243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-node-remove
5268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-node-remove
5244
5269
  * @deprecated
5245
5270
  */
5246
5271
  'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
5247
5272
  /**
5248
5273
  * Prefer `Number` static properties over global ones.
5249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-number-properties.md
5274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-number-properties.md
5250
5275
  */
5251
5276
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5252
5277
  /**
5253
5278
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-object-from-entries.md
5279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-object-from-entries.md
5255
5280
  */
5256
5281
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
5257
5282
  /**
5258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-object-has-own
5283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-object-has-own
5259
5284
  * @deprecated
5260
5285
  */
5261
5286
  'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
5262
5287
  /**
5263
5288
  * Prefer omitting the `catch` binding parameter.
5264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-optional-catch-binding.md
5289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-optional-catch-binding.md
5265
5290
  */
5266
5291
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
5267
5292
  /**
5268
5293
  * Prefer borrowing methods from the prototype instead of the instance.
5269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-prototype-methods.md
5294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-prototype-methods.md
5270
5295
  */
5271
5296
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
5272
5297
  /**
5273
5298
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
5274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-query-selector.md
5299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-query-selector.md
5275
5300
  */
5276
5301
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
5277
5302
  /**
5278
5303
  * Prefer `Reflect.apply()` over `Function#apply()`.
5279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-reflect-apply.md
5304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-reflect-apply.md
5280
5305
  */
5281
5306
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
5282
5307
  /**
5283
5308
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-regexp-test.md
5309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-regexp-test.md
5285
5310
  */
5286
5311
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
5287
5312
  /**
5288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-replace-all
5313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-replace-all
5289
5314
  * @deprecated
5290
5315
  */
5291
5316
  'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
5292
5317
  /**
5293
5318
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-set-has.md
5319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-set-has.md
5295
5320
  */
5296
5321
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
5297
5322
  /**
5298
5323
  * Prefer using `Set#size` instead of `Array#length`.
5299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-set-size.md
5324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-set-size.md
5300
5325
  */
5301
5326
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
5302
5327
  /**
5303
5328
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-spread.md
5329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-spread.md
5305
5330
  */
5306
5331
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
5307
5332
  /**
5308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
5333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
5309
5334
  * @deprecated
5310
5335
  */
5311
5336
  'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
5312
5337
  /**
5313
5338
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-string-replace-all.md
5339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-replace-all.md
5315
5340
  */
5316
5341
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
5317
5342
  /**
5318
5343
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-string-slice.md
5344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-slice.md
5320
5345
  */
5321
5346
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
5322
5347
  /**
5323
5348
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-string-starts-ends-with.md
5349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-starts-ends-with.md
5325
5350
  */
5326
5351
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
5327
5352
  /**
5328
5353
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-string-trim-start-end.md
5354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-trim-start-end.md
5330
5355
  */
5331
5356
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
5332
5357
  /**
5333
5358
  * Prefer `switch` over multiple `else-if`.
5334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-switch.md
5359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-switch.md
5335
5360
  */
5336
5361
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
5337
5362
  /**
5338
5363
  * Prefer ternary expressions over simple `if-else` statements.
5339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-ternary.md
5364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-ternary.md
5340
5365
  */
5341
5366
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
5342
5367
  /**
5343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-text-content
5368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-text-content
5344
5369
  * @deprecated
5345
5370
  */
5346
5371
  'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
5347
5372
  /**
5348
5373
  * Prefer top-level await over top-level promises and async function calls.
5349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-top-level-await.md
5374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-top-level-await.md
5350
5375
  */
5351
5376
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
5352
5377
  /**
5353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-trim-start-end
5378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-trim-start-end
5354
5379
  * @deprecated
5355
5380
  */
5356
5381
  'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
5357
5382
  /**
5358
5383
  * Enforce throwing `TypeError` in type checking conditions.
5359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-type-error.md
5384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-type-error.md
5360
5385
  */
5361
5386
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
5362
5387
  /**
5363
5388
  * Prevent abbreviations.
5364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prevent-abbreviations.md
5389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prevent-abbreviations.md
5365
5390
  */
5366
5391
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
5367
5392
  /**
5368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#regex-shorthand
5393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#regex-shorthand
5369
5394
  * @deprecated
5370
5395
  */
5371
5396
  'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
5372
5397
  /**
5373
5398
  * Enforce consistent relative URL style.
5374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/relative-url-style.md
5399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/relative-url-style.md
5375
5400
  */
5376
5401
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
5377
5402
  /**
5378
5403
  * Enforce using the separator argument with `Array#join()`.
5379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/require-array-join-separator.md
5404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-array-join-separator.md
5380
5405
  */
5381
5406
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
5382
5407
  /**
5383
5408
  * Enforce using the digits argument with `Number#toFixed()`.
5384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/require-number-to-fixed-digits-argument.md
5409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5385
5410
  */
5386
5411
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
5387
5412
  /**
5388
5413
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/require-post-message-target-origin.md
5414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-post-message-target-origin.md
5390
5415
  */
5391
5416
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
5392
5417
  /**
5393
5418
  * Enforce better string content.
5394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/string-content.md
5419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/string-content.md
5395
5420
  */
5396
5421
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
5397
5422
  /**
5398
5423
  * Enforce consistent brace style for `case` clauses.
5399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/switch-case-braces.md
5424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/switch-case-braces.md
5400
5425
  */
5401
5426
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
5402
5427
  /**
5403
5428
  * Fix whitespace-insensitive template indentation.
5404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/template-indent.md
5429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/template-indent.md
5405
5430
  */
5406
5431
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
5407
5432
  /**
5408
5433
  * Enforce consistent case for text encoding identifiers.
5409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/text-encoding-identifier-case.md
5434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/text-encoding-identifier-case.md
5410
5435
  */
5411
5436
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
5412
5437
  /**
5413
5438
  * Require `new` when throwing an error.
5414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/throw-new-error.md
5439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/throw-new-error.md
5415
5440
  */
5416
5441
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
5417
5442
  /**
@@ -8981,6 +9006,27 @@ type NodeFileExtensionInImport = []|[("always" | "never")]|[("always" | "never")
8981
9006
  }]
8982
9007
  // ----- node/handle-callback-err -----
8983
9008
  type NodeHandleCallbackErr = []|[string]
9009
+ // ----- node/hashbang -----
9010
+ type NodeHashbang = []|[{
9011
+ convertPath?: ({
9012
+
9013
+ [k: string]: [string, string]
9014
+ } | [{
9015
+
9016
+ include: [string, ...(string)[]]
9017
+ exclude?: string[]
9018
+
9019
+ replace: [string, string]
9020
+ }, ...({
9021
+
9022
+ include: [string, ...(string)[]]
9023
+ exclude?: string[]
9024
+
9025
+ replace: [string, string]
9026
+ })[]])
9027
+ ignoreUnpublished?: boolean
9028
+ additionalExecutables?: string[]
9029
+ }]
8984
9030
  // ----- node/no-deprecated-api -----
8985
9031
  type NodeNoDeprecatedApi = []|[{
8986
9032
  version?: string
@@ -9041,8 +9087,9 @@ type NodeNoHideCoreModules = []|[{
9041
9087
  type NodeNoMissingImport = []|[{
9042
9088
  allowModules?: string[]
9043
9089
  resolvePaths?: string[]
9044
- typescriptExtensionMap?: (unknown[][] | ("react" | "react-jsx" | "react-jsxdev" | "react-native" | "preserve"))
9090
+ tryExtensions?: string[]
9045
9091
  tsconfigPath?: string
9092
+ typescriptExtensionMap?: (unknown[][] | ("react" | "react-jsx" | "react-jsxdev" | "react-native" | "preserve"))
9046
9093
  }]
9047
9094
  // ----- node/no-missing-require -----
9048
9095
  type NodeNoMissingRequire = []|[{
@@ -9135,25 +9182,20 @@ type NodeNoUnpublishedRequire = []|[{
9135
9182
  resolvePaths?: string[]
9136
9183
  tryExtensions?: string[]
9137
9184
  }]
9138
- // ----- node/no-unsupported-features -----
9139
- type NodeNoUnsupportedFeatures = []|[((0.1 | 0.12 | 4 | 5 | 6 | 6.5 | 7 | 7.6 | 8 | 8.3 | 9 | 10) | string | {
9140
- version?: ((0.1 | 0.12 | 4 | 5 | 6 | 6.5 | 7 | 7.6 | 8 | 8.3 | 9 | 10) | string)
9141
- ignores?: ("syntax" | "defaultParameters" | "restParameters" | "spreadOperators" | "objectLiteralExtensions" | "objectPropertyShorthandOfGetSet" | "forOf" | "binaryNumberLiterals" | "octalNumberLiterals" | "templateStrings" | "regexpY" | "regexpU" | "destructuring" | "unicodeCodePointEscapes" | "new.target" | "const" | "let" | "blockScopedFunctions" | "arrowFunctions" | "generatorFunctions" | "classes" | "modules" | "exponentialOperators" | "asyncAwait" | "trailingCommasInFunctions" | "templateLiteralRevision" | "regexpS" | "regexpNamedCaptureGroups" | "regexpLookbehind" | "regexpUnicodeProperties" | "restProperties" | "spreadProperties" | "asyncGenerators" | "forAwaitOf" | "runtime" | "globalObjects" | "typedArrays" | "Int8Array" | "Uint8Array" | "Uint8ClampedArray" | "Int16Array" | "Uint16Array" | "Int32Array" | "Uint32Array" | "Float32Array" | "Float64Array" | "DataView" | "Map" | "Set" | "WeakMap" | "WeakSet" | "Proxy" | "Reflect" | "Promise" | "Symbol" | "SharedArrayBuffer" | "Atomics" | "staticMethods" | "Object.*" | "Object.assign" | "Object.is" | "Object.getOwnPropertySymbols" | "Object.setPrototypeOf" | "Object.values" | "Object.entries" | "Object.getOwnPropertyDescriptors" | "String.*" | "String.raw" | "String.fromCodePoint" | "Array.*" | "Array.from" | "Array.of" | "Number.*" | "Number.isFinite" | "Number.isInteger" | "Number.isSafeInteger" | "Number.isNaN" | "Number.EPSILON" | "Number.MIN_SAFE_INTEGER" | "Number.MAX_SAFE_INTEGER" | "Math.*" | "Math.clz32" | "Math.imul" | "Math.sign" | "Math.log10" | "Math.log2" | "Math.log1p" | "Math.expm1" | "Math.cosh" | "Math.sinh" | "Math.tanh" | "Math.acosh" | "Math.asinh" | "Math.atanh" | "Math.trunc" | "Math.fround" | "Math.cbrt" | "Math.hypot" | "Symbol.*" | "Symbol.hasInstance" | "Symbol.isConcatSpreadablec" | "Symbol.iterator" | "Symbol.species" | "Symbol.replace" | "Symbol.search" | "Symbol.split" | "Symbol.match" | "Symbol.toPrimitive" | "Symbol.toStringTag" | "Symbol.unscopables" | "Atomics.*" | "Atomics.add" | "Atomics.and" | "Atomics.compareExchange" | "Atomics.exchange" | "Atomics.wait" | "Atomics.wake" | "Atomics.isLockFree" | "Atomics.load" | "Atomics.or" | "Atomics.store" | "Atomics.sub" | "Atomics.xor" | "extends" | "extendsArray" | "extendsRegExp" | "extendsFunction" | "extendsPromise" | "extendsBoolean" | "extendsNumber" | "extendsString" | "extendsMap" | "extendsSet" | "extendsNull")[]
9142
- })]
9143
9185
  // ----- node/no-unsupported-features/es-builtins -----
9144
9186
  type NodeNoUnsupportedFeaturesEsBuiltins = []|[{
9145
9187
  version?: string
9146
- ignores?: ("AggregateError" | "Array.from" | "Array.of" | "BigInt" | "FinalizationRegistry" | "Map" | "Math.acosh" | "Math.asinh" | "Math.atanh" | "Math.cbrt" | "Math.clz32" | "Math.cosh" | "Math.expm1" | "Math.fround" | "Math.hypot" | "Math.imul" | "Math.log10" | "Math.log1p" | "Math.log2" | "Math.sign" | "Math.sinh" | "Math.tanh" | "Math.trunc" | "Number.EPSILON" | "Number.isFinite" | "Number.isInteger" | "Number.isNaN" | "Number.isSafeInteger" | "Number.MAX_SAFE_INTEGER" | "Number.MIN_SAFE_INTEGER" | "Number.parseFloat" | "Number.parseInt" | "Object.assign" | "Object.fromEntries" | "Object.getOwnPropertySymbols" | "Object.is" | "Object.setPrototypeOf" | "Object.values" | "Object.entries" | "Object.getOwnPropertyDescriptors" | "Promise" | "Promise.allSettled" | "Promise.any" | "Proxy" | "Reflect" | "Set" | "String.fromCodePoint" | "String.raw" | "Symbol" | "Int8Array" | "Uint8Array" | "Uint8ClampedArray" | "Int16Array" | "Uint16Array" | "Int32Array" | "Uint32Array" | "BigInt64Array" | "BigUint64Array" | "Float32Array" | "Float64Array" | "DataView" | "WeakMap" | "WeakRef" | "WeakSet" | "Atomics" | "SharedArrayBuffer" | "globalThis")[]
9188
+ ignores?: ("AggregateError" | "Array" | "Array.from" | "Array.isArray" | "Array.length" | "Array.of" | "Array.toLocaleString" | "ArrayBuffer" | "ArrayBuffer.isView" | "Atomics" | "Atomics.add" | "Atomics.and" | "Atomics.compareExchange" | "Atomics.exchange" | "Atomics.isLockFree" | "Atomics.load" | "Atomics.notify" | "Atomics.or" | "Atomics.store" | "Atomics.sub" | "Atomics.wait" | "Atomics.waitAsync" | "Atomics.xor" | "BigInt" | "BigInt.asIntN" | "BigInt.asUintN" | "BigInt64Array" | "BigInt64Array.BYTES_PER_ELEMENT" | "BigInt64Array.from" | "BigInt64Array.name" | "BigInt64Array.of" | "BigUint64Array" | "BigUint64Array.BYTES_PER_ELEMENT" | "BigUint64Array.from" | "BigUint64Array.name" | "BigUint64Array.of" | "Boolean" | "DataView" | "Date" | "Date.UTC" | "Date.now" | "Date.parse" | "Date.toLocaleDateString" | "Date.toLocaleString" | "Date.toLocaleTimeString" | "Error" | "Error.cause" | "EvalError" | "FinalizationRegistry" | "Float32Array" | "Float32Array.BYTES_PER_ELEMENT" | "Float32Array.from" | "Float32Array.name" | "Float32Array.of" | "Float64Array" | "Float64Array.BYTES_PER_ELEMENT" | "Float64Array.from" | "Float64Array.name" | "Float64Array.of" | "Function" | "Function.length" | "Function.name" | "Infinity" | "Int16Array" | "Int16Array.BYTES_PER_ELEMENT" | "Int16Array.from" | "Int16Array.name" | "Int16Array.of" | "Int32Array" | "Int32Array.BYTES_PER_ELEMENT" | "Int32Array.from" | "Int32Array.name" | "Int32Array.of" | "Int8Array" | "Int8Array.BYTES_PER_ELEMENT" | "Int8Array.from" | "Int8Array.name" | "Int8Array.of" | "Intl" | "Intl.Collator" | "Intl.DateTimeFormat" | "Intl.DisplayNames" | "Intl.ListFormat" | "Intl.Locale" | "Intl.NumberFormat" | "Intl.PluralRules" | "Intl.RelativeTimeFormat" | "Intl.Segmenter" | "Intl.Segments" | "Intl.getCanonicalLocales" | "Intl.supportedValuesOf" | "JSON" | "JSON.parse" | "JSON.stringify" | "Map" | "Map.groupBy" | "Math" | "Math.E" | "Math.LN10" | "Math.LN2" | "Math.LOG10E" | "Math.LOG2E" | "Math.PI" | "Math.SQRT1_2" | "Math.SQRT2" | "Math.abs" | "Math.acos" | "Math.acosh" | "Math.asin" | "Math.asinh" | "Math.atan" | "Math.atan2" | "Math.atanh" | "Math.cbrt" | "Math.ceil" | "Math.clz32" | "Math.cos" | "Math.cosh" | "Math.exp" | "Math.expm1" | "Math.floor" | "Math.fround" | "Math.hypot" | "Math.imul" | "Math.log" | "Math.log10" | "Math.log1p" | "Math.log2" | "Math.max" | "Math.min" | "Math.pow" | "Math.random" | "Math.round" | "Math.sign" | "Math.sin" | "Math.sinh" | "Math.sqrt" | "Math.tan" | "Math.tanh" | "Math.trunc" | "NaN" | "Number.EPSILON" | "Number.MAX_SAFE_INTEGER" | "Number.MAX_VALUE" | "Number.MIN_SAFE_INTEGER" | "Number.MIN_VALUE" | "Number.NEGATIVE_INFINITY" | "Number.NaN" | "Number.POSITIVE_INFINITY" | "Number.isFinite" | "Number.isInteger" | "Number.isNaN" | "Number.isSafeInteger" | "Number.parseFloat" | "Number.parseInt" | "Number.toLocaleString" | "Object.assign" | "Object.create" | "Object.defineGetter" | "Object.defineProperties" | "Object.defineProperty" | "Object.defineSetter" | "Object.entries" | "Object.freeze" | "Object.fromEntries" | "Object.getOwnPropertyDescriptor" | "Object.getOwnPropertyDescriptors" | "Object.getOwnPropertyNames" | "Object.getOwnPropertySymbols" | "Object.getPrototypeOf" | "Object.groupBy" | "Object.hasOwn" | "Object.is" | "Object.isExtensible" | "Object.isFrozen" | "Object.isSealed" | "Object.keys" | "Object.lookupGetter" | "Object.lookupSetter" | "Object.preventExtensions" | "Object.proto" | "Object.seal" | "Object.setPrototypeOf" | "Object.values" | "Promise" | "Promise.all" | "Promise.allSettled" | "Promise.any" | "Promise.race" | "Promise.reject" | "Promise.resolve" | "Proxy" | "Proxy.revocable" | "RangeError" | "ReferenceError" | "Reflect" | "Reflect.apply" | "Reflect.construct" | "Reflect.defineProperty" | "Reflect.deleteProperty" | "Reflect.get" | "Reflect.getOwnPropertyDescriptor" | "Reflect.getPrototypeOf" | "Reflect.has" | "Reflect.isExtensible" | "Reflect.ownKeys" | "Reflect.preventExtensions" | "Reflect.set" | "Reflect.setPrototypeOf" | "RegExp" | "RegExp.dotAll" | "RegExp.hasIndices" | "RegExp.input" | "RegExp.lastIndex" | "RegExp.lastMatch" | "RegExp.lastParen" | "RegExp.leftContext" | "RegExp.n" | "RegExp.rightContext" | "Set" | "SharedArrayBuffer" | "String" | "String.fromCharCode" | "String.fromCodePoint" | "String.length" | "String.localeCompare" | "String.raw" | "String.toLocaleLowerCase" | "String.toLocaleUpperCase" | "Symbol" | "Symbol.asyncIterator" | "Symbol.for" | "Symbol.hasInstance" | "Symbol.isConcatSpreadable" | "Symbol.iterator" | "Symbol.keyFor" | "Symbol.match" | "Symbol.matchAll" | "Symbol.replace" | "Symbol.search" | "Symbol.species" | "Symbol.split" | "Symbol.toPrimitive" | "Symbol.toStringTag" | "Symbol.unscopables" | "SyntaxError" | "TypeError" | "URIError" | "Uint16Array" | "Uint16Array.BYTES_PER_ELEMENT" | "Uint16Array.from" | "Uint16Array.name" | "Uint16Array.of" | "Uint32Array" | "Uint32Array.BYTES_PER_ELEMENT" | "Uint32Array.from" | "Uint32Array.name" | "Uint32Array.of" | "Uint8Array" | "Uint8Array.BYTES_PER_ELEMENT" | "Uint8Array.from" | "Uint8Array.name" | "Uint8Array.of" | "Uint8ClampedArray" | "Uint8ClampedArray.BYTES_PER_ELEMENT" | "Uint8ClampedArray.from" | "Uint8ClampedArray.name" | "Uint8ClampedArray.of" | "WeakMap" | "WeakRef" | "WeakSet" | "decodeURI" | "decodeURIComponent" | "encodeURI" | "encodeURIComponent" | "escape" | "eval" | "globalThis" | "isFinite" | "isNaN" | "parseFloat" | "parseInt" | "unescape" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.any" | "AbortSignal.timeout" | "Blob" | "BroadcastChannel" | "ByteLengthQueuingStrategy" | "CompressionStream" | "CountQueuingStrategy" | "Crypto" | "CryptoKey" | "CustomEvent" | "DOMException" | "DecompressionStream" | "Event" | "EventTarget" | "FormData" | "Headers" | "MessageChannel" | "MessageEvent" | "MessagePort" | "Performance" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserver.supportedEntryTypes" | "PerformanceObserverEntryList" | "ReadableByteStreamController" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamBYOBReader" | "ReadableStreamBYOBRequest" | "ReadableStreamDefaultController" | "ReadableStreamDefaultReader" | "Request" | "Response" | "SubtleCrypto" | "TextDecoder" | "TextDecoderStream" | "TextEncoder" | "TextEncoderStream" | "TransformStream" | "TransformStreamDefaultController" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "Worker" | "WritableStream" | "WritableStreamDefaultController" | "WritableStreamDefaultWriter" | "atob" | "btoa" | "clearInterval" | "clearTimeout" | "console" | "console.assert" | "console.clear" | "console.countReset" | "console.count" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.groupCollapsed" | "console.groupEnd" | "console.group" | "console.info" | "console.log" | "console.table" | "console.timeEnd" | "console.timeLog" | "console.time" | "console.trace" | "console.warn" | "fetch" | "queueMicrotask" | "setInterval" | "setTimeout" | "structuredClone")[]
9147
9189
  }]
9148
9190
  // ----- node/no-unsupported-features/es-syntax -----
9149
9191
  type NodeNoUnsupportedFeaturesEsSyntax = []|[{
9150
9192
  version?: string
9151
- ignores?: ("arrowFunctions" | "binaryNumericLiterals" | "blockScopedFunctions" | "blockScopedVariables" | "classes" | "computedProperties" | "defaultParameters" | "destructuring" | "forOfLoops" | "generators" | "modules" | "new.target" | "objectSuperProperties" | "octalNumericLiterals" | "propertyShorthands" | "regexpU" | "regexpY" | "restParameters" | "spreadElements" | "templateLiterals" | "unicodeCodePointEscapes" | "exponentialOperators" | "asyncFunctions" | "trailingCommasInFunctions" | "asyncIteration" | "malformedTemplateLiterals" | "regexpLookbehind" | "regexpNamedCaptureGroups" | "regexpS" | "regexpUnicodeProperties" | "restSpreadProperties" | "jsonSuperset" | "optionalCatchBinding" | "bigint" | "dynamicImport" | "optionalChaining" | "nullishCoalescingOperators" | "logicalAssignmentOperators" | "numericSeparators")[]
9193
+ ignores?: ("no-accessor-properties" | "accessor-properties" | "accessorProperties" | "no-arbitrary-module-namespace-names" | "arbitrary-module-namespace-names" | "arbitraryModuleNamespaceNames" | "no-array-from" | "array-from" | "arrayFrom" | "no-array-isarray" | "array-isarray" | "arrayIsarray" | "no-array-of" | "array-of" | "arrayOf" | "no-array-prototype-copywithin" | "array-prototype-copywithin" | "arrayPrototypeCopywithin" | "no-array-prototype-entries" | "array-prototype-entries" | "arrayPrototypeEntries" | "no-array-prototype-every" | "array-prototype-every" | "arrayPrototypeEvery" | "no-array-prototype-fill" | "array-prototype-fill" | "arrayPrototypeFill" | "no-array-prototype-filter" | "array-prototype-filter" | "arrayPrototypeFilter" | "no-array-prototype-find" | "array-prototype-find" | "arrayPrototypeFind" | "no-array-prototype-findindex" | "array-prototype-findindex" | "arrayPrototypeFindindex" | "no-array-prototype-findlast-findlastindex" | "array-prototype-findlast-findlastindex" | "arrayPrototypeFindlastFindlastindex" | "no-array-prototype-flat" | "array-prototype-flat" | "arrayPrototypeFlat" | "no-array-prototype-foreach" | "array-prototype-foreach" | "arrayPrototypeForeach" | "no-array-prototype-includes" | "array-prototype-includes" | "arrayPrototypeIncludes" | "no-array-prototype-indexof" | "array-prototype-indexof" | "arrayPrototypeIndexof" | "no-array-prototype-keys" | "array-prototype-keys" | "arrayPrototypeKeys" | "no-array-prototype-lastindexof" | "array-prototype-lastindexof" | "arrayPrototypeLastindexof" | "no-array-prototype-map" | "array-prototype-map" | "arrayPrototypeMap" | "no-array-prototype-reduce" | "array-prototype-reduce" | "arrayPrototypeReduce" | "no-array-prototype-reduceright" | "array-prototype-reduceright" | "arrayPrototypeReduceright" | "no-array-prototype-some" | "array-prototype-some" | "arrayPrototypeSome" | "no-array-prototype-toreversed" | "array-prototype-toreversed" | "arrayPrototypeToreversed" | "no-array-prototype-tosorted" | "array-prototype-tosorted" | "arrayPrototypeTosorted" | "no-array-prototype-tospliced" | "array-prototype-tospliced" | "arrayPrototypeTospliced" | "no-array-prototype-values" | "array-prototype-values" | "arrayPrototypeValues" | "no-array-prototype-with" | "array-prototype-with" | "arrayPrototypeWith" | "no-array-string-prototype-at" | "array-string-prototype-at" | "arrayStringPrototypeAt" | "no-arrow-functions" | "arrow-functions" | "arrowFunctions" | "no-async-functions" | "async-functions" | "asyncFunctions" | "no-async-iteration" | "async-iteration" | "asyncIteration" | "no-atomics-waitasync" | "atomics-waitasync" | "atomicsWaitasync" | "no-atomics" | "atomics" | "no-bigint" | "bigint" | "no-binary-numeric-literals" | "binary-numeric-literals" | "binaryNumericLiterals" | "no-block-scoped-functions" | "block-scoped-functions" | "blockScopedFunctions" | "no-block-scoped-variables" | "block-scoped-variables" | "blockScopedVariables" | "no-class-fields" | "class-fields" | "classFields" | "no-class-static-block" | "class-static-block" | "classStaticBlock" | "no-classes" | "classes" | "no-computed-properties" | "computed-properties" | "computedProperties" | "no-date-now" | "date-now" | "dateNow" | "no-date-prototype-getyear-setyear" | "date-prototype-getyear-setyear" | "datePrototypeGetyearSetyear" | "no-date-prototype-togmtstring" | "date-prototype-togmtstring" | "datePrototypeTogmtstring" | "no-default-parameters" | "default-parameters" | "defaultParameters" | "no-destructuring" | "destructuring" | "no-dynamic-import" | "dynamic-import" | "dynamicImport" | "no-error-cause" | "error-cause" | "errorCause" | "no-escape-unescape" | "escape-unescape" | "escapeUnescape" | "no-exponential-operators" | "exponential-operators" | "exponentialOperators" | "no-export-ns-from" | "export-ns-from" | "exportNsFrom" | "no-for-of-loops" | "for-of-loops" | "forOfLoops" | "no-function-declarations-in-if-statement-clauses-without-block" | "function-declarations-in-if-statement-clauses-without-block" | "functionDeclarationsInIfStatementClausesWithoutBlock" | "no-function-prototype-bind" | "function-prototype-bind" | "functionPrototypeBind" | "no-generators" | "generators" | "no-global-this" | "global-this" | "globalThis" | "no-hashbang" | "hashbang" | "no-import-meta" | "import-meta" | "importMeta" | "no-initializers-in-for-in" | "initializers-in-for-in" | "initializersInForIn" | "no-intl-datetimeformat-prototype-formatrange" | "intl-datetimeformat-prototype-formatrange" | "intlDatetimeformatPrototypeFormatrange" | "no-intl-datetimeformat-prototype-formattoparts" | "intl-datetimeformat-prototype-formattoparts" | "intlDatetimeformatPrototypeFormattoparts" | "no-intl-displaynames" | "intl-displaynames" | "intlDisplaynames" | "no-intl-getcanonicallocales" | "intl-getcanonicallocales" | "intlGetcanonicallocales" | "no-intl-listformat" | "intl-listformat" | "intlListformat" | "no-intl-locale" | "intl-locale" | "intlLocale" | "no-intl-numberformat-prototype-formatrange" | "intl-numberformat-prototype-formatrange" | "intlNumberformatPrototypeFormatrange" | "no-intl-numberformat-prototype-formatrangetoparts" | "intl-numberformat-prototype-formatrangetoparts" | "intlNumberformatPrototypeFormatrangetoparts" | "no-intl-numberformat-prototype-formattoparts" | "intl-numberformat-prototype-formattoparts" | "intlNumberformatPrototypeFormattoparts" | "no-intl-pluralrules-prototype-selectrange" | "intl-pluralrules-prototype-selectrange" | "intlPluralrulesPrototypeSelectrange" | "no-intl-pluralrules" | "intl-pluralrules" | "intlPluralrules" | "no-intl-relativetimeformat" | "intl-relativetimeformat" | "intlRelativetimeformat" | "no-intl-segmenter" | "intl-segmenter" | "intlSegmenter" | "no-intl-supportedvaluesof" | "intl-supportedvaluesof" | "intlSupportedvaluesof" | "no-json-superset" | "json-superset" | "jsonSuperset" | "no-json" | "json" | "no-keyword-properties" | "keyword-properties" | "keywordProperties" | "no-labelled-function-declarations" | "labelled-function-declarations" | "labelledFunctionDeclarations" | "no-legacy-object-prototype-accessor-methods" | "legacy-object-prototype-accessor-methods" | "legacyObjectPrototypeAccessorMethods" | "no-logical-assignment-operators" | "logical-assignment-operators" | "logicalAssignmentOperators" | "no-malformed-template-literals" | "malformed-template-literals" | "malformedTemplateLiterals" | "no-map" | "map" | "no-math-acosh" | "math-acosh" | "mathAcosh" | "no-math-asinh" | "math-asinh" | "mathAsinh" | "no-math-atanh" | "math-atanh" | "mathAtanh" | "no-math-cbrt" | "math-cbrt" | "mathCbrt" | "no-math-clz32" | "math-clz32" | "mathClz32" | "no-math-cosh" | "math-cosh" | "mathCosh" | "no-math-expm1" | "math-expm1" | "mathExpm1" | "no-math-fround" | "math-fround" | "mathFround" | "no-math-hypot" | "math-hypot" | "mathHypot" | "no-math-imul" | "math-imul" | "mathImul" | "no-math-log10" | "math-log10" | "mathLog10" | "no-math-log1p" | "math-log1p" | "mathLog1p" | "no-math-log2" | "math-log2" | "mathLog2" | "no-math-sign" | "math-sign" | "mathSign" | "no-math-sinh" | "math-sinh" | "mathSinh" | "no-math-tanh" | "math-tanh" | "mathTanh" | "no-math-trunc" | "math-trunc" | "mathTrunc" | "no-modules" | "modules" | "no-new-target" | "new-target" | "newTarget" | "new.target" | "no-nullish-coalescing-operators" | "nullish-coalescing-operators" | "nullishCoalescingOperators" | "no-number-epsilon" | "number-epsilon" | "numberEpsilon" | "no-number-isfinite" | "number-isfinite" | "numberIsfinite" | "no-number-isinteger" | "number-isinteger" | "numberIsinteger" | "no-number-isnan" | "number-isnan" | "numberIsnan" | "no-number-issafeinteger" | "number-issafeinteger" | "numberIssafeinteger" | "no-number-maxsafeinteger" | "number-maxsafeinteger" | "numberMaxsafeinteger" | "no-number-minsafeinteger" | "number-minsafeinteger" | "numberMinsafeinteger" | "no-number-parsefloat" | "number-parsefloat" | "numberParsefloat" | "no-number-parseint" | "number-parseint" | "numberParseint" | "no-numeric-separators" | "numeric-separators" | "numericSeparators" | "no-object-assign" | "object-assign" | "objectAssign" | "no-object-create" | "object-create" | "objectCreate" | "no-object-defineproperties" | "object-defineproperties" | "objectDefineproperties" | "no-object-defineproperty" | "object-defineproperty" | "objectDefineproperty" | "no-object-entries" | "object-entries" | "objectEntries" | "no-object-freeze" | "object-freeze" | "objectFreeze" | "no-object-fromentries" | "object-fromentries" | "objectFromentries" | "no-object-getownpropertydescriptor" | "object-getownpropertydescriptor" | "objectGetownpropertydescriptor" | "no-object-getownpropertydescriptors" | "object-getownpropertydescriptors" | "objectGetownpropertydescriptors" | "no-object-getownpropertynames" | "object-getownpropertynames" | "objectGetownpropertynames" | "no-object-getownpropertysymbols" | "object-getownpropertysymbols" | "objectGetownpropertysymbols" | "no-object-getprototypeof" | "object-getprototypeof" | "objectGetprototypeof" | "no-object-hasown" | "object-hasown" | "objectHasown" | "no-object-is" | "object-is" | "objectIs" | "no-object-isextensible" | "object-isextensible" | "objectIsextensible" | "no-object-isfrozen" | "object-isfrozen" | "objectIsfrozen" | "no-object-issealed" | "object-issealed" | "objectIssealed" | "no-object-keys" | "object-keys" | "objectKeys" | "no-object-map-groupby" | "object-map-groupby" | "objectMapGroupby" | "no-object-preventextensions" | "object-preventextensions" | "objectPreventextensions" | "no-object-seal" | "object-seal" | "objectSeal" | "no-object-setprototypeof" | "object-setprototypeof" | "objectSetprototypeof" | "no-object-super-properties" | "object-super-properties" | "objectSuperProperties" | "no-object-values" | "object-values" | "objectValues" | "no-octal-numeric-literals" | "octal-numeric-literals" | "octalNumericLiterals" | "no-optional-catch-binding" | "optional-catch-binding" | "optionalCatchBinding" | "no-optional-chaining" | "optional-chaining" | "optionalChaining" | "no-private-in" | "private-in" | "privateIn" | "no-promise-all-settled" | "promise-all-settled" | "promiseAllSettled" | "no-promise-any" | "promise-any" | "promiseAny" | "no-promise-prototype-finally" | "promise-prototype-finally" | "promisePrototypeFinally" | "no-promise-withresolvers" | "promise-withresolvers" | "promiseWithresolvers" | "no-promise" | "promise" | "no-property-shorthands" | "property-shorthands" | "propertyShorthands" | "no-proxy" | "proxy" | "no-reflect" | "reflect" | "no-regexp-d-flag" | "regexp-d-flag" | "regexpDFlag" | "no-regexp-lookbehind-assertions" | "regexp-lookbehind-assertions" | "regexpLookbehindAssertions" | "regexpLookbehind" | "no-regexp-named-capture-groups" | "regexp-named-capture-groups" | "regexpNamedCaptureGroups" | "no-regexp-prototype-compile" | "regexp-prototype-compile" | "regexpPrototypeCompile" | "no-regexp-prototype-flags" | "regexp-prototype-flags" | "regexpPrototypeFlags" | "no-regexp-s-flag" | "regexp-s-flag" | "regexpSFlag" | "regexpS" | "no-regexp-u-flag" | "regexp-u-flag" | "regexpUFlag" | "regexpU" | "no-regexp-unicode-property-escapes-2019" | "regexp-unicode-property-escapes-2019" | "regexpUnicodePropertyEscapes2019" | "no-regexp-unicode-property-escapes-2020" | "regexp-unicode-property-escapes-2020" | "regexpUnicodePropertyEscapes2020" | "no-regexp-unicode-property-escapes-2021" | "regexp-unicode-property-escapes-2021" | "regexpUnicodePropertyEscapes2021" | "no-regexp-unicode-property-escapes-2022" | "regexp-unicode-property-escapes-2022" | "regexpUnicodePropertyEscapes2022" | "no-regexp-unicode-property-escapes-2023" | "regexp-unicode-property-escapes-2023" | "regexpUnicodePropertyEscapes2023" | "no-regexp-unicode-property-escapes" | "regexp-unicode-property-escapes" | "regexpUnicodePropertyEscapes" | "regexpUnicodeProperties" | "no-regexp-v-flag" | "regexp-v-flag" | "regexpVFlag" | "no-regexp-y-flag" | "regexp-y-flag" | "regexpYFlag" | "regexpY" | "no-resizable-and-growable-arraybuffers" | "resizable-and-growable-arraybuffers" | "resizableAndGrowableArraybuffers" | "no-rest-parameters" | "rest-parameters" | "restParameters" | "no-rest-spread-properties" | "rest-spread-properties" | "restSpreadProperties" | "no-set" | "set" | "no-shadow-catch-param" | "shadow-catch-param" | "shadowCatchParam" | "no-shared-array-buffer" | "shared-array-buffer" | "sharedArrayBuffer" | "no-spread-elements" | "spread-elements" | "spreadElements" | "no-string-create-html-methods" | "string-create-html-methods" | "stringCreateHtmlMethods" | "no-string-fromcodepoint" | "string-fromcodepoint" | "stringFromcodepoint" | "no-string-prototype-codepointat" | "string-prototype-codepointat" | "stringPrototypeCodepointat" | "no-string-prototype-endswith" | "string-prototype-endswith" | "stringPrototypeEndswith" | "no-string-prototype-includes" | "string-prototype-includes" | "stringPrototypeIncludes" | "no-string-prototype-iswellformed-towellformed" | "string-prototype-iswellformed-towellformed" | "stringPrototypeIswellformedTowellformed" | "no-string-prototype-matchall" | "string-prototype-matchall" | "stringPrototypeMatchall" | "no-string-prototype-normalize" | "string-prototype-normalize" | "stringPrototypeNormalize" | "no-string-prototype-padstart-padend" | "string-prototype-padstart-padend" | "stringPrototypePadstartPadend" | "no-string-prototype-repeat" | "string-prototype-repeat" | "stringPrototypeRepeat" | "no-string-prototype-replaceall" | "string-prototype-replaceall" | "stringPrototypeReplaceall" | "no-string-prototype-startswith" | "string-prototype-startswith" | "stringPrototypeStartswith" | "no-string-prototype-substr" | "string-prototype-substr" | "stringPrototypeSubstr" | "no-string-prototype-trim" | "string-prototype-trim" | "stringPrototypeTrim" | "no-string-prototype-trimleft-trimright" | "string-prototype-trimleft-trimright" | "stringPrototypeTrimleftTrimright" | "no-string-prototype-trimstart-trimend" | "string-prototype-trimstart-trimend" | "stringPrototypeTrimstartTrimend" | "no-string-raw" | "string-raw" | "stringRaw" | "no-subclassing-builtins" | "subclassing-builtins" | "subclassingBuiltins" | "no-symbol-prototype-description" | "symbol-prototype-description" | "symbolPrototypeDescription" | "no-symbol" | "symbol" | "no-template-literals" | "template-literals" | "templateLiterals" | "no-top-level-await" | "top-level-await" | "topLevelAwait" | "no-trailing-commas" | "trailing-commas" | "trailingCommas" | "no-trailing-function-commas" | "trailing-function-commas" | "trailingFunctionCommas" | "trailingCommasInFunctions" | "no-typed-arrays" | "typed-arrays" | "typedArrays" | "no-unicode-codepoint-escapes" | "unicode-codepoint-escapes" | "unicodeCodepointEscapes" | "unicodeCodePointEscapes" | "no-weak-map" | "weak-map" | "weakMap" | "no-weak-set" | "weak-set" | "weakSet" | "no-weakrefs" | "weakrefs")[]
9152
9194
  }]
9153
9195
  // ----- node/no-unsupported-features/node-builtins -----
9154
9196
  type NodeNoUnsupportedFeaturesNodeBuiltins = []|[{
9155
9197
  version?: string
9156
- ignores?: ("queueMicrotask" | "require.resolve.paths" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.from" | "TextDecoder" | "TextEncoder" | "URL" | "URLSearchParams" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dirxml" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.table" | "console.markTimeline" | "console.profile" | "console.profileEnd" | "console.timeLog" | "console.timeStamp" | "console.timeline" | "console.timelineEnd" | "process.allowedNodeEnvironmentFlags" | "process.argv0" | "process.channel" | "process.cpuUsage" | "process.emitWarning" | "process.getegid" | "process.geteuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime.bigint" | "process.ppid" | "process.release" | "process.report" | "process.resourceUsage" | "process.setegid" | "process.seteuid" | "process.setUncaughtExceptionCaptureCallback" | "process.stdout.getColorDepth" | "process.stdout.hasColor" | "process.stderr.getColorDepth" | "process.stderr.hasColor" | "assert.strict" | "assert.strict.doesNotReject" | "assert.strict.rejects" | "assert.deepStrictEqual" | "assert.doesNotReject" | "assert.notDeepStrictEqual" | "assert.rejects" | "assert.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.AsyncLocalStorage" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.from" | "buffer.kMaxLength" | "buffer.transcode" | "buffer.constants" | "buffer.Blob" | "child_process.ChildProcess" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.ECDH" | "crypto.KeyObject" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.constants" | "crypto.fips" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.getCurves" | "crypto.getFips" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "dns.Resolver" | "dns.resolvePtr" | "dns.promises" | "events.EventEmitter.once" | "events.once" | "fs.Dirent" | "fs.copyFile" | "fs.copyFileSync" | "fs.mkdtemp" | "fs.mkdtempSync" | "fs.realpath.native" | "fs.realpathSync.native" | "fs.promises" | "fs.writev" | "fs.writevSync" | "fs.readv" | "fs.readvSync" | "fs.lutimes" | "fs.lutimesSync" | "fs.opendir" | "fs.opendirSync" | "fs.rm" | "fs.rmSync" | "fs.read" | "fs.readSync" | "fs.Dir" | "fs.StatWatcher" | "fs/promises" | "http2" | "inspector" | "module.Module.builtinModules" | "module.Module.createRequireFromPath" | "module.Module.createRequire" | "module.Module.syncBuiltinESMExports" | "module.builtinModules" | "module.createRequireFromPath" | "module.createRequire" | "module.syncBuiltinESMExports" | "os.constants" | "os.constants.priority" | "os.getPriority" | "os.homedir" | "os.setPriority" | "os.userInfo" | "path.toNamespacedPath" | "perf_hooks" | "perf_hooks.monitorEventLoopDelay" | "stream.Readable.from" | "stream.finished" | "stream.pipeline" | "trace_events" | "url.URL" | "url.URLSearchParams" | "url.domainToASCII" | "url.domainToUnicode" | "util.callbackify" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.promisify" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isBoxedPrimitive" | "v8" | "v8.DefaultDeserializer" | "v8.DefaultSerializer" | "v8.Deserializer" | "v8.Serializer" | "v8.cachedDataVersionTag" | "v8.deserialize" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.serialize" | "v8.writeHeapSnapshot" | "vm.Module" | "vm.compileFunction" | "worker_threads")[]
9198
+ ignores?: ("queueMicrotask" | "require.resolve.paths" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "TextDecoder" | "TextEncoder" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "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" | "process" | "process.allowedNodeEnvironmentFlags" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "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" | "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" | "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.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.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.getRandomValues" | "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.randomUUID" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.constants" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.lutimes" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readdir" | "fs.promises.readFile" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rmdir" | "fs.promises.rm" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.promises.FileHandle" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.lchmod" | "fs.lchown" | "fs.lutimes" | "fs.link" | "fs.lstat" | "fs.mkdir" | "fs.mkdtemp" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.native" | "fs.rename" | "fs.rmdir" | "fs.rm" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.lutimesSync" | "fs.linkSync" | "fs.lstatSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statSync" | "fs.statfsSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.constants" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.lutimes" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readdir" | "fs/promises.readFile" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rmdir" | "fs/promises.rm" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "fs/promises.FileHandle" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.MockFunctionContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.MockFunctionContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
9157
9199
  }]
9158
9200
  // ----- node/prefer-global/buffer -----
9159
9201
  type NodePreferGlobalBuffer = []|[("always" | "never")]
@@ -9169,6 +9211,10 @@ type NodePreferGlobalTextEncoder = []|[("always" | "never")]
9169
9211
  type NodePreferGlobalUrl = []|[("always" | "never")]
9170
9212
  // ----- node/prefer-global/url-search-params -----
9171
9213
  type NodePreferGlobalUrlSearchParams = []|[("always" | "never")]
9214
+ // ----- node/prefer-node-protocol -----
9215
+ type NodePreferNodeProtocol = []|[{
9216
+ version?: string
9217
+ }]
9172
9218
  // ----- node/shebang -----
9173
9219
  type NodeShebang = []|[{
9174
9220
  convertPath?: ({
@@ -9187,6 +9233,8 @@ type NodeShebang = []|[{
9187
9233
 
9188
9234
  replace: [string, string]
9189
9235
  })[]])
9236
+ ignoreUnpublished?: boolean
9237
+ additionalExecutables?: string[]
9190
9238
  }]
9191
9239
  // ----- nonblock-statement-body-position -----
9192
9240
  type NonblockStatementBodyPosition = []|[("beside" | "below" | "any")]|[("beside" | "below" | "any"), {
@@ -9352,6 +9400,7 @@ type PerfectionistSortInterfaces = []|[{
9352
9400
  "custom-groups"?: {
9353
9401
  [k: string]: unknown | undefined
9354
9402
  }
9403
+ "optionality-order"?: ("ignore" | "optional-first" | "required-first")
9355
9404
  type?: ("alphabetical" | "natural" | "line-length")
9356
9405
  order?: ("asc" | "desc")
9357
9406
  "ignore-case"?: boolean
@@ -9359,6 +9408,12 @@ type PerfectionistSortInterfaces = []|[{
9359
9408
  groups?: unknown[]
9360
9409
  "partition-by-new-line"?: boolean
9361
9410
  }]
9411
+ // ----- perfectionist/sort-intersection-types -----
9412
+ type PerfectionistSortIntersectionTypes = []|[{
9413
+ type?: ("alphabetical" | "natural" | "line-length")
9414
+ order?: ("asc" | "desc")
9415
+ "ignore-case"?: boolean
9416
+ }]
9362
9417
  // ----- perfectionist/sort-jsx-props -----
9363
9418
  type PerfectionistSortJsxProps = []|[{
9364
9419
  "custom-groups"?: {
@@ -11048,6 +11103,10 @@ type TestMaxExpects = []|[{
11048
11103
  type TestMaxNestedDescribe = []|[{
11049
11104
  max?: number
11050
11105
  }]
11106
+ // ----- test/no-focused-tests -----
11107
+ type TestNoFocusedTests = []|[{
11108
+ fixable?: boolean
11109
+ }]
11051
11110
  // ----- test/no-hooks -----
11052
11111
  type TestNoHooks = []|[{
11053
11112
  allow?: unknown[]
@@ -12737,6 +12796,7 @@ type UnicornExplicitLengthCheck = []|[{
12737
12796
  type UnicornFilenameCase = []|[({
12738
12797
  case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase")
12739
12798
  ignore?: unknown[]
12799
+ multipleFileExtensions?: boolean
12740
12800
  } | {
12741
12801
  cases?: {
12742
12802
  camelCase?: boolean
@@ -12745,6 +12805,7 @@ type UnicornFilenameCase = []|[({
12745
12805
  pascalCase?: boolean
12746
12806
  }
12747
12807
  ignore?: unknown[]
12808
+ multipleFileExtensions?: boolean
12748
12809
  })]
12749
12810
  // ----- unicorn/import-style -----
12750
12811
  type UnicornImportStyle = []|[{
@@ -14455,6 +14516,16 @@ interface OptionsStylistic {
14455
14516
  stylistic?: boolean | StylisticConfig;
14456
14517
  }
14457
14518
  interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'indent' | 'quotes' | 'jsx' | 'semi'> {
14519
+ /**
14520
+ * Disable some opinionated rules to Anthony's preference.
14521
+ *
14522
+ * Including:
14523
+ * - `antfu/top-level-function`
14524
+ * - `antfu/if-newline`
14525
+ *
14526
+ * @default false
14527
+ */
14528
+ lessOpinionated?: boolean;
14458
14529
  }
14459
14530
  interface StylisticOverridesConfig extends OptionsStylistic {
14460
14531
  overrides?: TypedFlatConfigItem['rules'];