@dhzh/eslint-config 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/cli/index.cjs +35 -36
- package/dist/cli/index.js +35 -36
- package/dist/index.cjs +5 -31
- package/dist/index.d.cts +446 -289
- package/dist/index.d.ts +446 -289
- package/dist/index.js +5 -31
- package/package.json +34 -35
package/dist/index.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ interface RuleOptions {
|
|
|
149
149
|
/**
|
|
150
150
|
* disallow unused `eslint-disable` comments
|
|
151
151
|
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
152
|
+
* @deprecated
|
|
152
153
|
*/
|
|
153
154
|
'@eslint-community/eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>
|
|
154
155
|
/**
|
|
@@ -262,7 +263,7 @@ interface RuleOptions {
|
|
|
262
263
|
*/
|
|
263
264
|
'@eslint-react/hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
264
265
|
/**
|
|
265
|
-
* Prevents
|
|
266
|
+
* Prevents unintentional '$' sign before expression.
|
|
266
267
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
267
268
|
*/
|
|
268
269
|
'@eslint-react/jsx-dollar'?: Linter.RuleEntry<[]>
|
|
@@ -331,6 +332,11 @@ interface RuleOptions {
|
|
|
331
332
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
332
333
|
*/
|
|
333
334
|
'@eslint-react/naming-convention/filename-extension'?: Linter.RuleEntry<EslintReactNamingConventionFilenameExtension>
|
|
335
|
+
/**
|
|
336
|
+
* Enforces identifier names assigned from 'useId' calls to be either 'id' or end with 'Id'.
|
|
337
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-id-name
|
|
338
|
+
*/
|
|
339
|
+
'@eslint-react/naming-convention/id-name'?: Linter.RuleEntry<[]>
|
|
334
340
|
/**
|
|
335
341
|
* Enforces identifier names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'.
|
|
336
342
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
@@ -443,7 +449,7 @@ interface RuleOptions {
|
|
|
443
449
|
*/
|
|
444
450
|
'@eslint-react/no-forward-ref'?: Linter.RuleEntry<[]>
|
|
445
451
|
/**
|
|
446
|
-
* Prevents
|
|
452
|
+
* Prevents implicitly passing the 'key' prop to components.
|
|
447
453
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
448
454
|
*/
|
|
449
455
|
'@eslint-react/no-implicit-key'?: Linter.RuleEntry<[]>
|
|
@@ -612,6 +618,11 @@ interface RuleOptions {
|
|
|
612
618
|
* @see https://eslint-react.xyz/docs/rules/prefer-use-state-lazy-initialization
|
|
613
619
|
*/
|
|
614
620
|
'@eslint-react/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
|
|
621
|
+
/**
|
|
622
|
+
* Validate and transform React Client/Server Function definitions.
|
|
623
|
+
* @see https://eslint-react.xyz/docs/rules/function-definition
|
|
624
|
+
*/
|
|
625
|
+
'@eslint-react/rsc/function-definition'?: Linter.RuleEntry<[]>
|
|
615
626
|
/**
|
|
616
627
|
* Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.
|
|
617
628
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
|
|
@@ -702,6 +713,11 @@ interface RuleOptions {
|
|
|
702
713
|
* @see https://eslint.style/rules/eol-last
|
|
703
714
|
*/
|
|
704
715
|
'@stylistic/eol-last'?: Linter.RuleEntry<StylisticEolLast>
|
|
716
|
+
/**
|
|
717
|
+
* Enforce consistent line break styles for JSX props
|
|
718
|
+
* @see https://eslint.style/rules/jsx-props-style
|
|
719
|
+
*/
|
|
720
|
+
'@stylistic/exp-jsx-props-style'?: Linter.RuleEntry<StylisticExpJsxPropsStyle>
|
|
705
721
|
/**
|
|
706
722
|
* Enforce consistent spacing and line break styles inside brackets.
|
|
707
723
|
* @see https://eslint.style/rules/list-style
|
|
@@ -1582,7 +1598,7 @@ interface RuleOptions {
|
|
|
1582
1598
|
* Disallow default values that will never be used
|
|
1583
1599
|
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
1584
1600
|
*/
|
|
1585
|
-
'@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<
|
|
1601
|
+
'@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<TypescriptEslintNoUselessDefaultAssignment>
|
|
1586
1602
|
/**
|
|
1587
1603
|
* Disallow empty exports that don't change anything in a module file
|
|
1588
1604
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -2025,6 +2041,10 @@ interface RuleOptions {
|
|
|
2025
2041
|
* Use dprint to format code
|
|
2026
2042
|
*/
|
|
2027
2043
|
'format/dprint'?: Linter.RuleEntry<FormatDprint>
|
|
2044
|
+
/**
|
|
2045
|
+
* Use oxfmt to format code
|
|
2046
|
+
*/
|
|
2047
|
+
'format/oxfmt'?: Linter.RuleEntry<FormatOxfmt>
|
|
2028
2048
|
/**
|
|
2029
2049
|
* Use Prettier to format code
|
|
2030
2050
|
*/
|
|
@@ -2095,21 +2115,6 @@ interface RuleOptions {
|
|
|
2095
2115
|
* @deprecated
|
|
2096
2116
|
*/
|
|
2097
2117
|
'handle-callback-err'?: Linter.RuleEntry<HandleCallbackErr>
|
|
2098
|
-
/**
|
|
2099
|
-
* Enforce consistent spacing around JSONC attributes
|
|
2100
|
-
* @see https://github.com/hyoban/eslint-plugin-hyoban/blob/main/src/jsonc-inline-spacing.test.ts
|
|
2101
|
-
*/
|
|
2102
|
-
'hyoban/jsonc-inline-spacing'?: Linter.RuleEntry<[]>
|
|
2103
|
-
/**
|
|
2104
|
-
* Enforce consistent spacing around JSX attributes
|
|
2105
|
-
* @see https://github.com/hyoban/eslint-plugin-hyoban/blob/main/src/jsx-attribute-spacing.test.ts
|
|
2106
|
-
*/
|
|
2107
|
-
'hyoban/jsx-attribute-spacing'?: Linter.RuleEntry<[]>
|
|
2108
|
-
/**
|
|
2109
|
-
* Prefer early return pattern to clean if else statement
|
|
2110
|
-
* @see https://github.com/hyoban/eslint-plugin-hyoban/blob/main/src/prefer-early-return.test.ts
|
|
2111
|
-
*/
|
|
2112
|
-
'hyoban/prefer-early-return'?: Linter.RuleEntry<[]>
|
|
2113
2118
|
/**
|
|
2114
2119
|
* Disallow specified identifiers
|
|
2115
2120
|
* @see https://eslint.org/docs/latest/rules/id-blacklist
|
|
@@ -2878,6 +2883,11 @@ interface RuleOptions {
|
|
|
2878
2883
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
|
|
2879
2884
|
*/
|
|
2880
2885
|
'n/prefer-global/console'?: Linter.RuleEntry<NPreferGlobalConsole>
|
|
2886
|
+
/**
|
|
2887
|
+
* enforce either `crypto` or `require("crypto").webcrypto`
|
|
2888
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
|
|
2889
|
+
*/
|
|
2890
|
+
'n/prefer-global/crypto'?: Linter.RuleEntry<NPreferGlobalCrypto>
|
|
2881
2891
|
/**
|
|
2882
2892
|
* enforce either `process` or `require("process")`
|
|
2883
2893
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
|
|
@@ -2893,6 +2903,11 @@ interface RuleOptions {
|
|
|
2893
2903
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
|
|
2894
2904
|
*/
|
|
2895
2905
|
'n/prefer-global/text-encoder'?: Linter.RuleEntry<NPreferGlobalTextEncoder>
|
|
2906
|
+
/**
|
|
2907
|
+
* enforce either global timer functions or `require("timers")`
|
|
2908
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
|
|
2909
|
+
*/
|
|
2910
|
+
'n/prefer-global/timers'?: Linter.RuleEntry<NPreferGlobalTimers>
|
|
2896
2911
|
/**
|
|
2897
2912
|
* enforce either `URL` or `require("url").URL`
|
|
2898
2913
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
|
|
@@ -3817,343 +3832,368 @@ interface RuleOptions {
|
|
|
3817
3832
|
'operator-linebreak'?: Linter.RuleEntry<OperatorLinebreak>
|
|
3818
3833
|
/**
|
|
3819
3834
|
* Enforce that names for bin properties are in kebab case.
|
|
3820
|
-
* @see https://github.com/
|
|
3835
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/bin-name-casing.md
|
|
3821
3836
|
*/
|
|
3822
3837
|
'package-json/bin-name-casing'?: Linter.RuleEntry<[]>
|
|
3823
3838
|
/**
|
|
3824
3839
|
* Enforce consistent format for the exports field (implicit or explicit subpaths).
|
|
3825
|
-
* @see https://github.com/
|
|
3840
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/exports-subpaths-style.md
|
|
3826
3841
|
*/
|
|
3827
3842
|
'package-json/exports-subpaths-style'?: Linter.RuleEntry<PackageJsonExportsSubpathsStyle>
|
|
3828
3843
|
/**
|
|
3829
3844
|
* Reports on unnecessary empty arrays and objects.
|
|
3830
|
-
* @see https://github.com/
|
|
3845
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/no-empty-fields.md
|
|
3831
3846
|
*/
|
|
3832
3847
|
'package-json/no-empty-fields'?: Linter.RuleEntry<PackageJsonNoEmptyFields>
|
|
3833
3848
|
/**
|
|
3834
3849
|
* Prevents adding unnecessary / redundant files.
|
|
3835
|
-
* @see https://github.com/
|
|
3850
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/no-redundant-files.md
|
|
3836
3851
|
*/
|
|
3837
3852
|
'package-json/no-redundant-files'?: Linter.RuleEntry<[]>
|
|
3838
3853
|
/**
|
|
3839
3854
|
* Warns when publishConfig.access is used in unscoped packages.
|
|
3840
|
-
* @see https://github.com/
|
|
3855
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/no-redundant-publishConfig.md
|
|
3841
3856
|
*/
|
|
3842
3857
|
'package-json/no-redundant-publishConfig'?: Linter.RuleEntry<[]>
|
|
3843
3858
|
/**
|
|
3844
3859
|
* Package properties should be declared in standard order
|
|
3845
|
-
* @see https://github.com/
|
|
3860
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/order-properties.md
|
|
3846
3861
|
*/
|
|
3847
3862
|
'package-json/order-properties'?: Linter.RuleEntry<PackageJsonOrderProperties>
|
|
3848
3863
|
/**
|
|
3849
3864
|
* Enforce either object or shorthand declaration for repository.
|
|
3850
|
-
* @see https://github.com/
|
|
3865
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/repository-shorthand.md
|
|
3851
3866
|
*/
|
|
3852
3867
|
'package-json/repository-shorthand'?: Linter.RuleEntry<PackageJsonRepositoryShorthand>
|
|
3853
3868
|
/**
|
|
3854
3869
|
* Ensures that proper attribution is included, requiring that either `author` or `contributors` is defined, and that if `contributors` is present, it should include at least one contributor.
|
|
3855
|
-
* @see https://github.com/
|
|
3870
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-attribution.md
|
|
3856
3871
|
*/
|
|
3857
3872
|
'package-json/require-attribution'?: Linter.RuleEntry<PackageJsonRequireAttribution>
|
|
3858
3873
|
/**
|
|
3859
3874
|
* Requires the `author` property to be present.
|
|
3860
|
-
* @see https://github.com/
|
|
3875
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-author.md
|
|
3861
3876
|
*/
|
|
3862
3877
|
'package-json/require-author'?: Linter.RuleEntry<PackageJsonRequireAuthor>
|
|
3863
3878
|
/**
|
|
3864
3879
|
* Requires the `bugs` property to be present.
|
|
3865
|
-
* @see https://github.com/
|
|
3880
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-bugs.md
|
|
3866
3881
|
*/
|
|
3867
3882
|
'package-json/require-bugs'?: Linter.RuleEntry<PackageJsonRequireBugs>
|
|
3868
3883
|
/**
|
|
3869
3884
|
* Requires the `bundleDependencies` property to be present.
|
|
3870
|
-
* @see https://github.com/
|
|
3885
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-bundleDependencies.md
|
|
3871
3886
|
*/
|
|
3872
3887
|
'package-json/require-bundleDependencies'?: Linter.RuleEntry<PackageJsonRequireBundleDependencies>
|
|
3873
3888
|
/**
|
|
3874
3889
|
* Requires the `dependencies` property to be present.
|
|
3875
|
-
* @see https://github.com/
|
|
3890
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-dependencies.md
|
|
3876
3891
|
*/
|
|
3877
3892
|
'package-json/require-dependencies'?: Linter.RuleEntry<PackageJsonRequireDependencies>
|
|
3878
3893
|
/**
|
|
3879
3894
|
* Requires the `description` property to be present.
|
|
3880
|
-
* @see https://github.com/
|
|
3895
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-description.md
|
|
3881
3896
|
*/
|
|
3882
3897
|
'package-json/require-description'?: Linter.RuleEntry<PackageJsonRequireDescription>
|
|
3883
3898
|
/**
|
|
3884
3899
|
* Requires the `devDependencies` property to be present.
|
|
3885
|
-
* @see https://github.com/
|
|
3900
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-devDependencies.md
|
|
3886
3901
|
*/
|
|
3887
3902
|
'package-json/require-devDependencies'?: Linter.RuleEntry<PackageJsonRequireDevDependencies>
|
|
3888
3903
|
/**
|
|
3889
3904
|
* Requires the `engines` property to be present.
|
|
3890
|
-
* @see https://github.com/
|
|
3905
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-engines.md
|
|
3891
3906
|
*/
|
|
3892
3907
|
'package-json/require-engines'?: Linter.RuleEntry<PackageJsonRequireEngines>
|
|
3893
3908
|
/**
|
|
3894
3909
|
* Requires the `exports` property to be present.
|
|
3895
|
-
* @see https://github.com/
|
|
3910
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-exports.md
|
|
3896
3911
|
*/
|
|
3897
3912
|
'package-json/require-exports'?: Linter.RuleEntry<PackageJsonRequireExports>
|
|
3898
3913
|
/**
|
|
3899
3914
|
* Requires the `files` property to be present.
|
|
3900
|
-
* @see https://github.com/
|
|
3915
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-files.md
|
|
3901
3916
|
*/
|
|
3902
3917
|
'package-json/require-files'?: Linter.RuleEntry<PackageJsonRequireFiles>
|
|
3903
3918
|
/**
|
|
3904
3919
|
* Requires the `homepage` property to be present.
|
|
3905
|
-
* @see https://github.com/
|
|
3920
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-homepage.md
|
|
3906
3921
|
*/
|
|
3907
3922
|
'package-json/require-homepage'?: Linter.RuleEntry<PackageJsonRequireHomepage>
|
|
3908
3923
|
/**
|
|
3909
3924
|
* Requires the `keywords` property to be present.
|
|
3910
|
-
* @see https://github.com/
|
|
3925
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-keywords.md
|
|
3911
3926
|
*/
|
|
3912
3927
|
'package-json/require-keywords'?: Linter.RuleEntry<PackageJsonRequireKeywords>
|
|
3913
3928
|
/**
|
|
3914
3929
|
* Requires the `license` property to be present.
|
|
3915
|
-
* @see https://github.com/
|
|
3930
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-license.md
|
|
3916
3931
|
*/
|
|
3917
3932
|
'package-json/require-license'?: Linter.RuleEntry<PackageJsonRequireLicense>
|
|
3933
|
+
/**
|
|
3934
|
+
* Requires the `main` property to be present.
|
|
3935
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-main.md
|
|
3936
|
+
*/
|
|
3937
|
+
'package-json/require-main'?: Linter.RuleEntry<PackageJsonRequireMain>
|
|
3918
3938
|
/**
|
|
3919
3939
|
* Requires the `name` property to be present.
|
|
3920
|
-
* @see https://github.com/
|
|
3940
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-name.md
|
|
3921
3941
|
*/
|
|
3922
3942
|
'package-json/require-name'?: Linter.RuleEntry<PackageJsonRequireName>
|
|
3923
3943
|
/**
|
|
3924
3944
|
* Requires the `optionalDependencies` property to be present.
|
|
3925
|
-
* @see https://github.com/
|
|
3945
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-optionalDependencies.md
|
|
3926
3946
|
*/
|
|
3927
3947
|
'package-json/require-optionalDependencies'?: Linter.RuleEntry<PackageJsonRequireOptionalDependencies>
|
|
3948
|
+
/**
|
|
3949
|
+
* Requires the `os` property to be present.
|
|
3950
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-os.md
|
|
3951
|
+
*/
|
|
3952
|
+
'package-json/require-os'?: Linter.RuleEntry<PackageJsonRequireOs>
|
|
3953
|
+
/**
|
|
3954
|
+
* Requires the `packageManager` property to be present.
|
|
3955
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-packageManager.md
|
|
3956
|
+
*/
|
|
3957
|
+
'package-json/require-packageManager'?: Linter.RuleEntry<PackageJsonRequirePackageManager>
|
|
3928
3958
|
/**
|
|
3929
3959
|
* Requires the `peerDependencies` property to be present.
|
|
3930
|
-
* @see https://github.com/
|
|
3960
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-peerDependencies.md
|
|
3931
3961
|
*/
|
|
3932
3962
|
'package-json/require-peerDependencies'?: Linter.RuleEntry<PackageJsonRequirePeerDependencies>
|
|
3963
|
+
/**
|
|
3964
|
+
* Requires the `private` property to be present.
|
|
3965
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-private.md
|
|
3966
|
+
*/
|
|
3967
|
+
'package-json/require-private'?: Linter.RuleEntry<[]>
|
|
3968
|
+
/**
|
|
3969
|
+
* Requires the `publishConfig` property to be present.
|
|
3970
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-publishConfig.md
|
|
3971
|
+
*/
|
|
3972
|
+
'package-json/require-publishConfig'?: Linter.RuleEntry<PackageJsonRequirePublishConfig>
|
|
3933
3973
|
/**
|
|
3934
3974
|
* Requires the `repository` property to be present.
|
|
3935
|
-
* @see https://github.com/
|
|
3975
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-repository.md
|
|
3936
3976
|
*/
|
|
3937
3977
|
'package-json/require-repository'?: Linter.RuleEntry<PackageJsonRequireRepository>
|
|
3938
3978
|
/**
|
|
3939
3979
|
* Requires the `scripts` property to be present.
|
|
3940
|
-
* @see https://github.com/
|
|
3980
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-scripts.md
|
|
3941
3981
|
*/
|
|
3942
3982
|
'package-json/require-scripts'?: Linter.RuleEntry<PackageJsonRequireScripts>
|
|
3943
3983
|
/**
|
|
3944
3984
|
* Requires the `sideEffects` property to be present.
|
|
3945
|
-
* @see https://github.com/
|
|
3985
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-sideEffects.md
|
|
3946
3986
|
*/
|
|
3947
3987
|
'package-json/require-sideEffects'?: Linter.RuleEntry<PackageJsonRequireSideEffects>
|
|
3948
3988
|
/**
|
|
3949
3989
|
* Requires the `type` property to be present.
|
|
3950
|
-
* @see https://github.com/
|
|
3990
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-type.md
|
|
3951
3991
|
*/
|
|
3952
3992
|
'package-json/require-type'?: Linter.RuleEntry<PackageJsonRequireType>
|
|
3953
3993
|
/**
|
|
3954
3994
|
* Requires the `types` property to be present.
|
|
3955
|
-
* @see https://github.com/
|
|
3995
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-types.md
|
|
3956
3996
|
*/
|
|
3957
3997
|
'package-json/require-types'?: Linter.RuleEntry<PackageJsonRequireTypes>
|
|
3958
3998
|
/**
|
|
3959
3999
|
* Requires the `version` property to be present.
|
|
3960
|
-
* @see https://github.com/
|
|
4000
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/require-version.md
|
|
3961
4001
|
*/
|
|
3962
4002
|
'package-json/require-version'?: Linter.RuleEntry<PackageJsonRequireVersion>
|
|
3963
4003
|
/**
|
|
3964
4004
|
* Restricts the range of dependencies to allow or disallow specific types of ranges.
|
|
3965
|
-
* @see https://github.com/
|
|
4005
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/restrict-dependency-ranges.md
|
|
3966
4006
|
*/
|
|
3967
4007
|
'package-json/restrict-dependency-ranges'?: Linter.RuleEntry<PackageJsonRestrictDependencyRanges>
|
|
3968
4008
|
/**
|
|
3969
4009
|
* Disallows unnecessary properties in private packages.
|
|
3970
|
-
* @see https://github.com/
|
|
4010
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/restrict-private-properties.md
|
|
3971
4011
|
*/
|
|
3972
4012
|
'package-json/restrict-private-properties'?: Linter.RuleEntry<PackageJsonRestrictPrivateProperties>
|
|
3973
4013
|
/**
|
|
3974
4014
|
* Enforce that names for `scripts` are in kebab case (optionally separated by colons).
|
|
3975
|
-
* @see https://github.com/
|
|
4015
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/scripts-name-casing.md
|
|
3976
4016
|
*/
|
|
3977
4017
|
'package-json/scripts-name-casing'?: Linter.RuleEntry<[]>
|
|
3978
4018
|
/**
|
|
3979
4019
|
* Selected collections must be in a consistent order (lexicographical for most; lifecycle-aware for scripts).
|
|
3980
|
-
* @see https://github.com/
|
|
4020
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/sort-collections.md
|
|
3981
4021
|
*/
|
|
3982
4022
|
'package-json/sort-collections'?: Linter.RuleEntry<PackageJsonSortCollections>
|
|
3983
4023
|
/**
|
|
3984
4024
|
* Requires that all peer dependencies are also declared as dev dependencies
|
|
3985
|
-
* @see https://github.com/
|
|
4025
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/specify-peers-locally.md
|
|
3986
4026
|
*/
|
|
3987
4027
|
'package-json/specify-peers-locally'?: Linter.RuleEntry<[]>
|
|
3988
4028
|
/**
|
|
3989
4029
|
* Checks a dependency isn't specified more than once (i.e. in `dependencies` and `devDependencies`)
|
|
3990
|
-
* @see https://github.com/
|
|
4030
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/unique-dependencies.md
|
|
3991
4031
|
*/
|
|
3992
4032
|
'package-json/unique-dependencies'?: Linter.RuleEntry<[]>
|
|
3993
4033
|
/**
|
|
3994
4034
|
* Enforce that the `author` property is valid.
|
|
3995
|
-
* @see https://github.com/
|
|
4035
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-author.md
|
|
3996
4036
|
*/
|
|
3997
4037
|
'package-json/valid-author'?: Linter.RuleEntry<[]>
|
|
3998
4038
|
/**
|
|
3999
4039
|
* Enforce that the `bin` property is valid.
|
|
4000
|
-
* @see https://github.com/
|
|
4040
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-bin.md
|
|
4001
4041
|
*/
|
|
4002
4042
|
'package-json/valid-bin'?: Linter.RuleEntry<[]>
|
|
4003
4043
|
/**
|
|
4004
4044
|
* Enforce that the `bundleDependencies` (also: `bundledDependencies`) property is valid.
|
|
4005
|
-
* @see https://github.com/
|
|
4045
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-bundleDependencies.md
|
|
4006
4046
|
*/
|
|
4007
4047
|
'package-json/valid-bundleDependencies'?: Linter.RuleEntry<[]>
|
|
4008
4048
|
/**
|
|
4009
4049
|
* Enforce that the `config` property is valid.
|
|
4010
|
-
* @see https://github.com/
|
|
4050
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-config.md
|
|
4011
4051
|
*/
|
|
4012
4052
|
'package-json/valid-config'?: Linter.RuleEntry<[]>
|
|
4013
4053
|
/**
|
|
4014
4054
|
* Enforce that the `contributors` property is valid.
|
|
4015
|
-
* @see https://github.com/
|
|
4055
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-contributors.md
|
|
4016
4056
|
*/
|
|
4017
4057
|
'package-json/valid-contributors'?: Linter.RuleEntry<[]>
|
|
4018
4058
|
/**
|
|
4019
4059
|
* Enforce that the `cpu` property is valid.
|
|
4020
|
-
* @see https://github.com/
|
|
4060
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-cpu.md
|
|
4021
4061
|
*/
|
|
4022
4062
|
'package-json/valid-cpu'?: Linter.RuleEntry<[]>
|
|
4023
4063
|
/**
|
|
4024
4064
|
* Enforce that the `dependencies` property is valid.
|
|
4025
|
-
* @see https://github.com/
|
|
4065
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-dependencies.md
|
|
4026
4066
|
*/
|
|
4027
4067
|
'package-json/valid-dependencies'?: Linter.RuleEntry<[]>
|
|
4028
4068
|
/**
|
|
4029
4069
|
* Enforce that the `description` property is valid.
|
|
4030
|
-
* @see https://github.com/
|
|
4070
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-description.md
|
|
4031
4071
|
*/
|
|
4032
4072
|
'package-json/valid-description'?: Linter.RuleEntry<[]>
|
|
4033
4073
|
/**
|
|
4034
4074
|
* Enforce that the `devDependencies` property is valid.
|
|
4035
|
-
* @see https://github.com/
|
|
4075
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-devDependencies.md
|
|
4036
4076
|
*/
|
|
4037
4077
|
'package-json/valid-devDependencies'?: Linter.RuleEntry<[]>
|
|
4038
4078
|
/**
|
|
4039
4079
|
* Enforce that the `directories` property is valid.
|
|
4040
|
-
* @see https://github.com/
|
|
4080
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-directories.md
|
|
4041
4081
|
*/
|
|
4042
4082
|
'package-json/valid-directories'?: Linter.RuleEntry<[]>
|
|
4043
4083
|
/**
|
|
4044
4084
|
* Enforce that the `engines` property is valid.
|
|
4045
|
-
* @see https://github.com/
|
|
4085
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-engines.md
|
|
4046
4086
|
*/
|
|
4047
4087
|
'package-json/valid-engines'?: Linter.RuleEntry<[]>
|
|
4048
4088
|
/**
|
|
4049
4089
|
* Enforce that the `exports` property is valid.
|
|
4050
|
-
* @see https://github.com/
|
|
4090
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-exports.md
|
|
4051
4091
|
*/
|
|
4052
4092
|
'package-json/valid-exports'?: Linter.RuleEntry<[]>
|
|
4053
4093
|
/**
|
|
4054
4094
|
* Enforce that the `files` property is valid.
|
|
4055
|
-
* @see https://github.com/
|
|
4095
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-files.md
|
|
4056
4096
|
*/
|
|
4057
4097
|
'package-json/valid-files'?: Linter.RuleEntry<[]>
|
|
4058
4098
|
/**
|
|
4059
4099
|
* Enforce that the `homepage` property is valid.
|
|
4060
|
-
* @see https://github.com/
|
|
4100
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-homepage.md
|
|
4061
4101
|
*/
|
|
4062
4102
|
'package-json/valid-homepage'?: Linter.RuleEntry<[]>
|
|
4063
4103
|
/**
|
|
4064
4104
|
* Enforce that the `keywords` property is valid.
|
|
4065
|
-
* @see https://github.com/
|
|
4105
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-keywords.md
|
|
4066
4106
|
*/
|
|
4067
4107
|
'package-json/valid-keywords'?: Linter.RuleEntry<[]>
|
|
4068
4108
|
/**
|
|
4069
4109
|
* Enforce that the `license` property is valid.
|
|
4070
|
-
* @see https://github.com/
|
|
4110
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-license.md
|
|
4071
4111
|
*/
|
|
4072
4112
|
'package-json/valid-license'?: Linter.RuleEntry<[]>
|
|
4073
4113
|
/**
|
|
4074
4114
|
* Enforce that the `main` property is valid.
|
|
4075
|
-
* @see https://github.com/
|
|
4115
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-main.md
|
|
4076
4116
|
*/
|
|
4077
4117
|
'package-json/valid-main'?: Linter.RuleEntry<[]>
|
|
4078
4118
|
/**
|
|
4079
4119
|
* Enforce that the `man` property is valid.
|
|
4080
|
-
* @see https://github.com/
|
|
4120
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-man.md
|
|
4081
4121
|
*/
|
|
4082
4122
|
'package-json/valid-man'?: Linter.RuleEntry<[]>
|
|
4083
4123
|
/**
|
|
4084
4124
|
* Enforce that the `module` property is valid.
|
|
4085
|
-
* @see https://github.com/
|
|
4125
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-module.md
|
|
4086
4126
|
*/
|
|
4087
4127
|
'package-json/valid-module'?: Linter.RuleEntry<[]>
|
|
4088
4128
|
/**
|
|
4089
4129
|
* Enforce that package names are valid npm package names
|
|
4090
|
-
* @see https://github.com/
|
|
4130
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-name.md
|
|
4091
4131
|
*/
|
|
4092
4132
|
'package-json/valid-name'?: Linter.RuleEntry<[]>
|
|
4093
4133
|
/**
|
|
4094
4134
|
* Enforce that the `optionalDependencies` property is valid.
|
|
4095
|
-
* @see https://github.com/
|
|
4135
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-optionalDependencies.md
|
|
4096
4136
|
*/
|
|
4097
4137
|
'package-json/valid-optionalDependencies'?: Linter.RuleEntry<[]>
|
|
4098
4138
|
/**
|
|
4099
4139
|
* Enforce that the `os` property is valid.
|
|
4100
|
-
* @see https://github.com/
|
|
4140
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-os.md
|
|
4101
4141
|
*/
|
|
4102
4142
|
'package-json/valid-os'?: Linter.RuleEntry<[]>
|
|
4103
4143
|
/**
|
|
4104
4144
|
* Enforce that package.json has all properties required by the npm spec
|
|
4105
|
-
* @see https://github.com/
|
|
4145
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-package-definition.md
|
|
4106
4146
|
* @deprecated
|
|
4107
4147
|
*/
|
|
4108
4148
|
'package-json/valid-package-definition'?: Linter.RuleEntry<PackageJsonValidPackageDefinition>
|
|
4109
4149
|
/**
|
|
4110
4150
|
* Enforce that the `peerDependencies` property is valid.
|
|
4111
|
-
* @see https://github.com/
|
|
4151
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-peerDependencies.md
|
|
4112
4152
|
*/
|
|
4113
4153
|
'package-json/valid-peerDependencies'?: Linter.RuleEntry<[]>
|
|
4114
4154
|
/**
|
|
4115
4155
|
* Enforce that the `private` property is valid.
|
|
4116
|
-
* @see https://github.com/
|
|
4156
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-private.md
|
|
4117
4157
|
*/
|
|
4118
4158
|
'package-json/valid-private'?: Linter.RuleEntry<[]>
|
|
4119
4159
|
/**
|
|
4120
4160
|
* Enforce that the `publishConfig` property is valid.
|
|
4121
|
-
* @see https://github.com/
|
|
4161
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-publishConfig.md
|
|
4122
4162
|
*/
|
|
4123
4163
|
'package-json/valid-publishConfig'?: Linter.RuleEntry<[]>
|
|
4124
4164
|
/**
|
|
4125
4165
|
* Enforce that the `repository` property is valid.
|
|
4126
|
-
* @see https://github.com/
|
|
4166
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-repository.md
|
|
4127
4167
|
*/
|
|
4128
4168
|
'package-json/valid-repository'?: Linter.RuleEntry<[]>
|
|
4129
4169
|
/**
|
|
4130
4170
|
* Enforce that if repository directory is specified, it matches the path to the package.json file
|
|
4131
|
-
* @see https://github.com/
|
|
4171
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-repository-directory.md
|
|
4132
4172
|
*/
|
|
4133
4173
|
'package-json/valid-repository-directory'?: Linter.RuleEntry<[]>
|
|
4134
4174
|
/**
|
|
4135
4175
|
* Enforce that the `scripts` property is valid.
|
|
4136
|
-
* @see https://github.com/
|
|
4176
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-scripts.md
|
|
4137
4177
|
*/
|
|
4138
4178
|
'package-json/valid-scripts'?: Linter.RuleEntry<[]>
|
|
4139
4179
|
/**
|
|
4140
4180
|
* Enforce that the `sideEffects` property is valid.
|
|
4141
|
-
* @see https://github.com/
|
|
4181
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-sideEffects.md
|
|
4142
4182
|
*/
|
|
4143
4183
|
'package-json/valid-sideEffects'?: Linter.RuleEntry<[]>
|
|
4144
4184
|
/**
|
|
4145
4185
|
* Enforce that the `type` property is valid.
|
|
4146
|
-
* @see https://github.com/
|
|
4186
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-type.md
|
|
4147
4187
|
*/
|
|
4148
4188
|
'package-json/valid-type'?: Linter.RuleEntry<[]>
|
|
4149
4189
|
/**
|
|
4150
4190
|
* Enforce that package versions are valid semver specifiers
|
|
4151
|
-
* @see https://github.com/
|
|
4191
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-version.md
|
|
4152
4192
|
*/
|
|
4153
4193
|
'package-json/valid-version'?: Linter.RuleEntry<[]>
|
|
4154
4194
|
/**
|
|
4155
4195
|
* Enforce that the `workspaces` property is valid.
|
|
4156
|
-
* @see https://github.com/
|
|
4196
|
+
* @see https://github.com/michaelfaith/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-workspaces.md
|
|
4157
4197
|
*/
|
|
4158
4198
|
'package-json/valid-workspaces'?: Linter.RuleEntry<[]>
|
|
4159
4199
|
/**
|
|
@@ -4257,7 +4297,7 @@ interface RuleOptions {
|
|
|
4257
4297
|
*/
|
|
4258
4298
|
'quotes'?: Linter.RuleEntry<Quotes>
|
|
4259
4299
|
/**
|
|
4260
|
-
* Enforce the
|
|
4300
|
+
* Enforce the use of the radix argument when using `parseInt()`
|
|
4261
4301
|
* @see https://eslint.org/docs/latest/rules/radix
|
|
4262
4302
|
*/
|
|
4263
4303
|
'radix'?: Linter.RuleEntry<Radix>
|
|
@@ -4982,6 +5022,11 @@ interface RuleOptions {
|
|
|
4982
5022
|
* @see https://eslint.style/rules/eol-last
|
|
4983
5023
|
*/
|
|
4984
5024
|
'stylistic/eol-last'?: Linter.RuleEntry<StylisticEolLast>
|
|
5025
|
+
/**
|
|
5026
|
+
* Enforce consistent line break styles for JSX props
|
|
5027
|
+
* @see https://eslint.style/rules/jsx-props-style
|
|
5028
|
+
*/
|
|
5029
|
+
'stylistic/exp-jsx-props-style'?: Linter.RuleEntry<StylisticExpJsxPropsStyle>
|
|
4985
5030
|
/**
|
|
4986
5031
|
* Enforce consistent spacing and line break styles inside brackets.
|
|
4987
5032
|
* @see https://eslint.style/rules/list-style
|
|
@@ -5483,11 +5528,21 @@ interface RuleOptions {
|
|
|
5483
5528
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
|
|
5484
5529
|
*/
|
|
5485
5530
|
'toml/indent'?: Linter.RuleEntry<TomlIndent>
|
|
5531
|
+
/**
|
|
5532
|
+
* enforce linebreaks after opening and before closing braces
|
|
5533
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
|
|
5534
|
+
*/
|
|
5535
|
+
'toml/inline-table-curly-newline'?: Linter.RuleEntry<TomlInlineTableCurlyNewline>
|
|
5486
5536
|
/**
|
|
5487
5537
|
* enforce consistent spacing inside braces
|
|
5488
5538
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
|
|
5489
5539
|
*/
|
|
5490
5540
|
'toml/inline-table-curly-spacing'?: Linter.RuleEntry<TomlInlineTableCurlySpacing>
|
|
5541
|
+
/**
|
|
5542
|
+
* enforce placing inline table key-value pairs on separate lines
|
|
5543
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
|
|
5544
|
+
*/
|
|
5545
|
+
'toml/inline-table-key-value-newline'?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>
|
|
5491
5546
|
/**
|
|
5492
5547
|
* enforce consistent spacing between keys and values in key/value pairs
|
|
5493
5548
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
|
|
@@ -5576,725 +5631,730 @@ interface RuleOptions {
|
|
|
5576
5631
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
5577
5632
|
/**
|
|
5578
5633
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
|
|
5580
5635
|
*/
|
|
5581
5636
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
5582
5637
|
/**
|
|
5583
5638
|
* Enforce a specific parameter name in catch clauses.
|
|
5584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
|
|
5585
5640
|
*/
|
|
5586
5641
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
5587
5642
|
/**
|
|
5588
5643
|
* Enforce consistent assertion style with `node:assert`.
|
|
5589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
|
|
5590
5645
|
*/
|
|
5591
5646
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
5592
5647
|
/**
|
|
5593
5648
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
5594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
|
|
5595
5650
|
*/
|
|
5596
5651
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
5597
5652
|
/**
|
|
5598
5653
|
* Use destructured variables over properties.
|
|
5599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
|
|
5600
5655
|
*/
|
|
5601
5656
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
5602
5657
|
/**
|
|
5603
5658
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5605
5660
|
*/
|
|
5606
5661
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
5607
5662
|
/**
|
|
5608
5663
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
5609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
|
|
5610
5665
|
*/
|
|
5611
5666
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
5612
5667
|
/**
|
|
5613
5668
|
* Move function definitions to the highest possible scope.
|
|
5614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
|
|
5615
5670
|
*/
|
|
5616
5671
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
5617
5672
|
/**
|
|
5618
5673
|
* Enforce correct `Error` subclassing.
|
|
5619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
|
|
5620
5675
|
*/
|
|
5621
5676
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
5622
5677
|
/**
|
|
5623
5678
|
* Enforce no spaces between braces.
|
|
5624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
|
|
5625
5680
|
*/
|
|
5626
5681
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
5627
5682
|
/**
|
|
5628
5683
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
|
|
5630
5685
|
*/
|
|
5631
5686
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
5632
5687
|
/**
|
|
5633
5688
|
* Require escape sequences to use uppercase or lowercase values.
|
|
5634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
|
|
5635
5690
|
*/
|
|
5636
5691
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
|
|
5637
5692
|
/**
|
|
5638
5693
|
* Add expiration conditions to TODO comments.
|
|
5639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5694
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
|
|
5640
5695
|
*/
|
|
5641
5696
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
5642
5697
|
/**
|
|
5643
5698
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
|
|
5645
5700
|
*/
|
|
5646
5701
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
5647
5702
|
/**
|
|
5648
5703
|
* Enforce a case style for filenames.
|
|
5649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
|
|
5650
5705
|
*/
|
|
5651
5706
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
5652
5707
|
/**
|
|
5653
5708
|
* Enforce specific import styles per module.
|
|
5654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
|
|
5655
5710
|
*/
|
|
5656
5711
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
5712
|
+
/**
|
|
5713
|
+
* Prevent usage of variables from outside the scope of isolated functions.
|
|
5714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
|
|
5715
|
+
*/
|
|
5716
|
+
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>
|
|
5657
5717
|
/**
|
|
5658
5718
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5719
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
|
|
5660
5720
|
*/
|
|
5661
5721
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
5662
5722
|
/**
|
|
5663
5723
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5665
5725
|
*/
|
|
5666
5726
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
5667
5727
|
/**
|
|
5668
5728
|
* Disallow recursive access to `this` within getters and setters.
|
|
5669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5729
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
|
|
5670
5730
|
*/
|
|
5671
5731
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
5672
5732
|
/**
|
|
5673
5733
|
* Disallow anonymous functions and classes as the default export.
|
|
5674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
|
|
5675
5735
|
*/
|
|
5676
5736
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
5677
5737
|
/**
|
|
5678
5738
|
* Prevent passing a function reference directly to iterator methods.
|
|
5679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5739
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
|
|
5680
5740
|
*/
|
|
5681
5741
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
5682
5742
|
/**
|
|
5683
5743
|
* Prefer `for…of` over the `forEach` method.
|
|
5684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5744
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
|
|
5685
5745
|
*/
|
|
5686
5746
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
5687
5747
|
/**
|
|
5688
5748
|
* Disallow using the `this` argument in array methods.
|
|
5689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5749
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
|
|
5690
5750
|
*/
|
|
5691
5751
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
5692
5752
|
/**
|
|
5693
5753
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
5694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5754
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
5695
5755
|
* @deprecated
|
|
5696
5756
|
*/
|
|
5697
5757
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
|
|
5698
5758
|
/**
|
|
5699
5759
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5700
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5760
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
|
|
5701
5761
|
*/
|
|
5702
5762
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
5703
5763
|
/**
|
|
5704
5764
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
5705
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5765
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
|
|
5706
5766
|
*/
|
|
5707
5767
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
|
|
5708
5768
|
/**
|
|
5709
5769
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
5710
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5770
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
|
|
5711
5771
|
*/
|
|
5712
5772
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
|
|
5713
5773
|
/**
|
|
5714
5774
|
* Disallow member access from await expression.
|
|
5715
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5775
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
|
|
5716
5776
|
*/
|
|
5717
5777
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
5718
5778
|
/**
|
|
5719
5779
|
* Disallow using `await` in `Promise` method parameters.
|
|
5720
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5780
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5721
5781
|
*/
|
|
5722
5782
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5723
5783
|
/**
|
|
5724
5784
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5725
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5785
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
|
|
5726
5786
|
*/
|
|
5727
5787
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
5728
5788
|
/**
|
|
5729
5789
|
* Do not use `document.cookie` directly.
|
|
5730
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5790
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
|
|
5731
5791
|
*/
|
|
5732
5792
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
5733
5793
|
/**
|
|
5734
5794
|
* Disallow empty files.
|
|
5735
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5795
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
|
|
5736
5796
|
*/
|
|
5737
5797
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
5738
5798
|
/**
|
|
5739
5799
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5800
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
|
|
5741
5801
|
*/
|
|
5742
5802
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
5743
5803
|
/**
|
|
5744
5804
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5745
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5805
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
|
|
5746
5806
|
*/
|
|
5747
5807
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
5748
5808
|
/**
|
|
5749
5809
|
* Disallow immediate mutation after variable assignment.
|
|
5750
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5810
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
|
|
5751
5811
|
*/
|
|
5752
5812
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
|
|
5753
5813
|
/**
|
|
5754
5814
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
5755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5815
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
5756
5816
|
* @deprecated
|
|
5757
5817
|
*/
|
|
5758
5818
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
5759
5819
|
/**
|
|
5760
5820
|
* Disallow `instanceof` with built-in objects
|
|
5761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
|
|
5762
5822
|
*/
|
|
5763
5823
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
5764
5824
|
/**
|
|
5765
5825
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5767
5827
|
*/
|
|
5768
5828
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
5769
5829
|
/**
|
|
5770
5830
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5772
5832
|
*/
|
|
5773
5833
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
5774
5834
|
/**
|
|
5775
5835
|
* Disallow identifiers starting with `new` or `class`.
|
|
5776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
|
|
5777
5837
|
*/
|
|
5778
5838
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
5779
5839
|
/**
|
|
5780
5840
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
5781
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
5782
5842
|
* @deprecated
|
|
5783
5843
|
*/
|
|
5784
5844
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
5785
5845
|
/**
|
|
5786
5846
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5847
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
|
|
5788
5848
|
*/
|
|
5789
5849
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
5790
5850
|
/**
|
|
5791
5851
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5793
5853
|
*/
|
|
5794
5854
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
5795
5855
|
/**
|
|
5796
5856
|
* Disallow named usage of default import and export.
|
|
5797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
|
|
5798
5858
|
*/
|
|
5799
5859
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
5800
5860
|
/**
|
|
5801
5861
|
* Disallow negated conditions.
|
|
5802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5862
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
|
|
5803
5863
|
*/
|
|
5804
5864
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
5805
5865
|
/**
|
|
5806
5866
|
* Disallow negated expression in equality check.
|
|
5807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5808
5868
|
*/
|
|
5809
5869
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
5810
5870
|
/**
|
|
5811
5871
|
* Disallow nested ternary expressions.
|
|
5812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5872
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
|
|
5813
5873
|
*/
|
|
5814
5874
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
5815
5875
|
/**
|
|
5816
5876
|
* Disallow `new Array()`.
|
|
5817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
|
|
5818
5878
|
*/
|
|
5819
5879
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
5820
5880
|
/**
|
|
5821
5881
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
|
|
5823
5883
|
*/
|
|
5824
5884
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
5825
5885
|
/**
|
|
5826
5886
|
* Disallow the use of the `null` literal.
|
|
5827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
|
|
5828
5888
|
*/
|
|
5829
5889
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
5830
5890
|
/**
|
|
5831
5891
|
* Disallow the use of objects as default parameters.
|
|
5832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5833
5893
|
*/
|
|
5834
5894
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
5835
5895
|
/**
|
|
5836
5896
|
* Disallow `process.exit()`.
|
|
5837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
|
|
5838
5898
|
*/
|
|
5839
5899
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
5840
5900
|
/**
|
|
5841
5901
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5842
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5843
5903
|
*/
|
|
5844
5904
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5845
5905
|
/**
|
|
5846
5906
|
* Disallow classes that only have static members.
|
|
5847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
|
|
5848
5908
|
*/
|
|
5849
5909
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
5850
5910
|
/**
|
|
5851
5911
|
* Disallow `then` property.
|
|
5852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5912
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
|
|
5853
5913
|
*/
|
|
5854
5914
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
5855
5915
|
/**
|
|
5856
5916
|
* Disallow assigning `this` to a variable.
|
|
5857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
|
|
5858
5918
|
*/
|
|
5859
5919
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
5860
5920
|
/**
|
|
5861
5921
|
* Disallow comparing `undefined` using `typeof`.
|
|
5862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
|
|
5863
5923
|
*/
|
|
5864
5924
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
5865
5925
|
/**
|
|
5866
5926
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
5868
5928
|
*/
|
|
5869
5929
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
5870
5930
|
/**
|
|
5871
5931
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
5873
5933
|
*/
|
|
5874
5934
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
|
|
5875
5935
|
/**
|
|
5876
5936
|
* Disallow awaiting non-promise values.
|
|
5877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
|
|
5878
5938
|
*/
|
|
5879
5939
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
5880
5940
|
/**
|
|
5881
5941
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5883
5943
|
*/
|
|
5884
5944
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
5885
5945
|
/**
|
|
5886
5946
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
5888
5948
|
*/
|
|
5889
5949
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
|
|
5890
5950
|
/**
|
|
5891
5951
|
* Disallow unreadable array destructuring.
|
|
5892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5893
5953
|
*/
|
|
5894
5954
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
5895
5955
|
/**
|
|
5896
5956
|
* Disallow unreadable IIFEs.
|
|
5897
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
|
|
5898
5958
|
*/
|
|
5899
5959
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
5900
5960
|
/**
|
|
5901
5961
|
* Disallow unused object properties.
|
|
5902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
|
|
5903
5963
|
*/
|
|
5904
5964
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
5905
5965
|
/**
|
|
5906
5966
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
|
|
5908
5968
|
*/
|
|
5909
5969
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
|
|
5910
5970
|
/**
|
|
5911
5971
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
5913
5973
|
*/
|
|
5914
5974
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
|
|
5915
5975
|
/**
|
|
5916
5976
|
* Disallow useless fallback when spreading in object literals.
|
|
5917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5918
5978
|
*/
|
|
5919
5979
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
5920
5980
|
/**
|
|
5921
5981
|
* Disallow useless array length check.
|
|
5922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
|
|
5923
5983
|
*/
|
|
5924
5984
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
5925
5985
|
/**
|
|
5926
5986
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5928
5988
|
*/
|
|
5929
5989
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
5930
5990
|
/**
|
|
5931
5991
|
* Disallow unnecessary spread.
|
|
5932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
|
|
5933
5993
|
*/
|
|
5934
5994
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
5935
5995
|
/**
|
|
5936
5996
|
* Disallow useless case in switch statements.
|
|
5937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
|
|
5938
5998
|
*/
|
|
5939
5999
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
5940
6000
|
/**
|
|
5941
6001
|
* Disallow useless `undefined`.
|
|
5942
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
|
|
5943
6003
|
*/
|
|
5944
6004
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
5945
6005
|
/**
|
|
5946
6006
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5947
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
|
|
5948
6008
|
*/
|
|
5949
6009
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
5950
6010
|
/**
|
|
5951
6011
|
* Enforce proper case for numeric literals.
|
|
5952
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
|
|
5953
6013
|
*/
|
|
5954
6014
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
|
|
5955
6015
|
/**
|
|
5956
6016
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5957
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
|
|
5958
6018
|
*/
|
|
5959
6019
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
5960
6020
|
/**
|
|
5961
6021
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5962
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
|
|
5963
6023
|
*/
|
|
5964
6024
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
5965
6025
|
/**
|
|
5966
6026
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5967
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
|
|
5968
6028
|
*/
|
|
5969
6029
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
5970
6030
|
/**
|
|
5971
6031
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5972
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
|
|
5973
6033
|
*/
|
|
5974
6034
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
5975
6035
|
/**
|
|
5976
6036
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5977
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
|
|
5978
6038
|
*/
|
|
5979
6039
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
5980
6040
|
/**
|
|
5981
6041
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
|
|
5983
6043
|
*/
|
|
5984
6044
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
5985
6045
|
/**
|
|
5986
6046
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5987
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
|
|
5988
6048
|
*/
|
|
5989
6049
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
5990
6050
|
/**
|
|
5991
6051
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
|
|
5993
6053
|
*/
|
|
5994
6054
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
5995
6055
|
/**
|
|
5996
6056
|
* Prefer `BigInt` literals over the constructor.
|
|
5997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
|
|
5998
6058
|
*/
|
|
5999
6059
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
|
|
6000
6060
|
/**
|
|
6001
6061
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
6002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
6003
6063
|
*/
|
|
6004
6064
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
6005
6065
|
/**
|
|
6006
6066
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
6007
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
|
|
6008
6068
|
*/
|
|
6009
6069
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
|
|
6010
6070
|
/**
|
|
6011
6071
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
6012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6072
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
|
|
6013
6073
|
*/
|
|
6014
6074
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
|
|
6015
6075
|
/**
|
|
6016
6076
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
6017
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6077
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
|
|
6018
6078
|
*/
|
|
6019
6079
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
6020
6080
|
/**
|
|
6021
6081
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
6022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6082
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
|
|
6023
6083
|
*/
|
|
6024
6084
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
6025
6085
|
/**
|
|
6026
6086
|
* Prefer default parameters over reassignment.
|
|
6027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
|
|
6028
6088
|
*/
|
|
6029
6089
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
6030
6090
|
/**
|
|
6031
6091
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
6032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
|
|
6033
6093
|
*/
|
|
6034
6094
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
6035
6095
|
/**
|
|
6036
6096
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
6037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
6038
6098
|
*/
|
|
6039
6099
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
6040
6100
|
/**
|
|
6041
6101
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
6042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
|
|
6043
6103
|
*/
|
|
6044
6104
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
6045
6105
|
/**
|
|
6046
6106
|
* Prefer `.textContent` over `.innerText`.
|
|
6047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
6048
6108
|
*/
|
|
6049
6109
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
6050
6110
|
/**
|
|
6051
6111
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
6052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
|
|
6053
6113
|
*/
|
|
6054
6114
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
6055
6115
|
/**
|
|
6056
6116
|
* Prefer `export…from` when re-exporting.
|
|
6057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
|
|
6058
6118
|
*/
|
|
6059
6119
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
6060
6120
|
/**
|
|
6061
6121
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
6062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
|
|
6063
6123
|
*/
|
|
6064
6124
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
6065
6125
|
/**
|
|
6066
6126
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
6067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
|
|
6068
6128
|
*/
|
|
6069
6129
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
|
|
6070
6130
|
/**
|
|
6071
6131
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6132
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
|
|
6073
6133
|
*/
|
|
6074
6134
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
6075
6135
|
/**
|
|
6076
6136
|
* Prefer reading a JSON file as a buffer.
|
|
6077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6137
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
6078
6138
|
*/
|
|
6079
6139
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
6080
6140
|
/**
|
|
6081
6141
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
6082
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
6083
6143
|
*/
|
|
6084
6144
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
6085
6145
|
/**
|
|
6086
6146
|
* Prefer using a logical operator over a ternary.
|
|
6087
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
6088
6148
|
*/
|
|
6089
6149
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
6090
6150
|
/**
|
|
6091
6151
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
6092
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6152
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
|
|
6093
6153
|
*/
|
|
6094
6154
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
6095
6155
|
/**
|
|
6096
6156
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
6097
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
|
|
6098
6158
|
*/
|
|
6099
6159
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
6100
6160
|
/**
|
|
6101
6161
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
6102
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
6103
6163
|
*/
|
|
6104
6164
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
6105
6165
|
/**
|
|
6106
6166
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
6107
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
|
|
6108
6168
|
*/
|
|
6109
6169
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
6110
6170
|
/**
|
|
6111
6171
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
6112
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
|
|
6113
6173
|
*/
|
|
6114
6174
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
6115
6175
|
/**
|
|
6116
6176
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
6117
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
6118
6178
|
*/
|
|
6119
6179
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
6120
6180
|
/**
|
|
6121
6181
|
* Prefer negative index over `.length - index` when possible.
|
|
6122
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6182
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
|
|
6123
6183
|
*/
|
|
6124
6184
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
6125
6185
|
/**
|
|
6126
6186
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
6127
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6187
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
|
|
6128
6188
|
*/
|
|
6129
6189
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
6130
6190
|
/**
|
|
6131
6191
|
* Prefer `Number` static properties over global ones.
|
|
6132
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
|
|
6133
6193
|
*/
|
|
6134
6194
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
6135
6195
|
/**
|
|
6136
6196
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
6137
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6197
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
|
|
6138
6198
|
*/
|
|
6139
6199
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
6140
6200
|
/**
|
|
6141
6201
|
* Prefer omitting the `catch` binding parameter.
|
|
6142
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
6143
6203
|
*/
|
|
6144
6204
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
6145
6205
|
/**
|
|
6146
6206
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
6147
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
|
|
6148
6208
|
*/
|
|
6149
6209
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
6150
6210
|
/**
|
|
6151
6211
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
6152
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6212
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
|
|
6153
6213
|
*/
|
|
6154
6214
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
6155
6215
|
/**
|
|
6156
6216
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
6157
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
|
|
6158
6218
|
*/
|
|
6159
6219
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
6160
6220
|
/**
|
|
6161
6221
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
6162
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
|
|
6163
6223
|
*/
|
|
6164
6224
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
6165
6225
|
/**
|
|
6166
6226
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
6167
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
|
|
6168
6228
|
*/
|
|
6169
6229
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
|
|
6170
6230
|
/**
|
|
6171
6231
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
6172
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
|
|
6173
6233
|
*/
|
|
6174
6234
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
6175
6235
|
/**
|
|
6176
6236
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
6177
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
|
|
6178
6238
|
*/
|
|
6179
6239
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
6180
6240
|
/**
|
|
6181
6241
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
6182
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
|
|
6183
6243
|
*/
|
|
6184
6244
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
|
|
6185
6245
|
/**
|
|
6186
6246
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
6187
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
|
|
6188
6248
|
*/
|
|
6189
6249
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
6190
6250
|
/**
|
|
6191
6251
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6192
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
|
|
6193
6253
|
*/
|
|
6194
6254
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
6195
6255
|
/**
|
|
6196
6256
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
6197
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
|
|
6198
6258
|
*/
|
|
6199
6259
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
6200
6260
|
/**
|
|
6201
6261
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
6202
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
|
|
6203
6263
|
*/
|
|
6204
6264
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
6205
6265
|
/**
|
|
6206
6266
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
6207
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
6208
6268
|
*/
|
|
6209
6269
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
6210
6270
|
/**
|
|
6211
6271
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
6212
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
6213
6273
|
*/
|
|
6214
6274
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
6215
6275
|
/**
|
|
6216
6276
|
* Prefer using `structuredClone` to create a deep clone.
|
|
6217
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
|
|
6218
6278
|
*/
|
|
6219
6279
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
6220
6280
|
/**
|
|
6221
6281
|
* Prefer `switch` over multiple `else-if`.
|
|
6222
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
|
|
6223
6283
|
*/
|
|
6224
6284
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
6225
6285
|
/**
|
|
6226
6286
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
6227
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
|
|
6228
6288
|
*/
|
|
6229
6289
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
6230
6290
|
/**
|
|
6231
6291
|
* Prefer top-level await over top-level promises and async function calls.
|
|
6232
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
|
|
6233
6293
|
*/
|
|
6234
6294
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
6235
6295
|
/**
|
|
6236
6296
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
6237
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
|
|
6238
6298
|
*/
|
|
6239
6299
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
6240
6300
|
/**
|
|
6241
6301
|
* Prevent abbreviations.
|
|
6242
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
|
|
6243
6303
|
*/
|
|
6244
6304
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
6245
6305
|
/**
|
|
6246
6306
|
* Enforce consistent relative URL style.
|
|
6247
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
|
|
6248
6308
|
*/
|
|
6249
6309
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
6250
6310
|
/**
|
|
6251
6311
|
* Enforce using the separator argument with `Array#join()`.
|
|
6252
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
|
|
6253
6313
|
*/
|
|
6254
6314
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
6255
6315
|
/**
|
|
6256
6316
|
* Require non-empty module attributes for imports and exports
|
|
6257
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6317
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
|
|
6258
6318
|
*/
|
|
6259
6319
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
|
|
6260
6320
|
/**
|
|
6261
6321
|
* Require non-empty specifier list in import and export statements.
|
|
6262
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
|
|
6263
6323
|
*/
|
|
6264
6324
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
|
|
6265
6325
|
/**
|
|
6266
6326
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
6267
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
6268
6328
|
*/
|
|
6269
6329
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
6270
6330
|
/**
|
|
6271
6331
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
6272
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
|
|
6273
6333
|
*/
|
|
6274
6334
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
6275
6335
|
/**
|
|
6276
6336
|
* Enforce better string content.
|
|
6277
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
|
|
6278
6338
|
*/
|
|
6279
6339
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
6280
6340
|
/**
|
|
6281
6341
|
* Enforce consistent brace style for `case` clauses.
|
|
6282
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
|
|
6283
6343
|
*/
|
|
6284
6344
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
6285
6345
|
/**
|
|
6286
6346
|
* Fix whitespace-insensitive template indentation.
|
|
6287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
|
|
6288
6348
|
*/
|
|
6289
6349
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
6290
6350
|
/**
|
|
6291
6351
|
* Enforce consistent case for text encoding identifiers.
|
|
6292
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
|
|
6293
6353
|
*/
|
|
6294
6354
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
|
|
6295
6355
|
/**
|
|
6296
6356
|
* Require `new` when creating an error.
|
|
6297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
|
|
6298
6358
|
*/
|
|
6299
6359
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
6300
6360
|
/**
|
|
@@ -7520,7 +7580,7 @@ interface RuleOptions {
|
|
|
7520
7580
|
* enforce valid `v-for` directives
|
|
7521
7581
|
* @see https://eslint.vuejs.org/rules/valid-v-for.html
|
|
7522
7582
|
*/
|
|
7523
|
-
'vue/valid-v-for'?: Linter.RuleEntry<
|
|
7583
|
+
'vue/valid-v-for'?: Linter.RuleEntry<VueValidVFor>
|
|
7524
7584
|
/**
|
|
7525
7585
|
* enforce valid `v-html` directives
|
|
7526
7586
|
* @see https://eslint.vuejs.org/rules/valid-v-html.html
|
|
@@ -8703,6 +8763,11 @@ type TypescriptEslintNoUseBeforeDefine = []|[("nofunc" | {
|
|
|
8703
8763
|
|
|
8704
8764
|
variables?: boolean
|
|
8705
8765
|
})]
|
|
8766
|
+
// ----- @typescript-eslint/no-useless-default-assignment -----
|
|
8767
|
+
type TypescriptEslintNoUselessDefaultAssignment = []|[{
|
|
8768
|
+
|
|
8769
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
8770
|
+
}]
|
|
8706
8771
|
// ----- @typescript-eslint/no-var-requires -----
|
|
8707
8772
|
type TypescriptEslintNoVarRequires = []|[{
|
|
8708
8773
|
|
|
@@ -9035,6 +9100,7 @@ type AntfuConsistentListNewline = []|[{
|
|
|
9035
9100
|
ExportNamedDeclaration?: boolean
|
|
9036
9101
|
FunctionDeclaration?: boolean
|
|
9037
9102
|
FunctionExpression?: boolean
|
|
9103
|
+
IfStatement?: boolean
|
|
9038
9104
|
ImportDeclaration?: boolean
|
|
9039
9105
|
JSONArrayExpression?: boolean
|
|
9040
9106
|
JSONObjectExpression?: boolean
|
|
@@ -9199,9 +9265,13 @@ type FormatDprint = []|[{
|
|
|
9199
9265
|
plugins?: unknown[]
|
|
9200
9266
|
[k: string]: unknown | undefined
|
|
9201
9267
|
}]
|
|
9268
|
+
// ----- format/oxfmt -----
|
|
9269
|
+
type FormatOxfmt = []|[{
|
|
9270
|
+
[k: string]: unknown | undefined
|
|
9271
|
+
}]
|
|
9202
9272
|
// ----- format/prettier -----
|
|
9203
9273
|
type FormatPrettier = []|[{
|
|
9204
|
-
parser
|
|
9274
|
+
parser: string
|
|
9205
9275
|
[k: string]: unknown | undefined
|
|
9206
9276
|
}]
|
|
9207
9277
|
// ----- func-call-spacing -----
|
|
@@ -9777,6 +9847,7 @@ type JsoncObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
9777
9847
|
type JsoncObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
9778
9848
|
arraysInObjects?: boolean
|
|
9779
9849
|
objectsInObjects?: boolean
|
|
9850
|
+
emptyObjects?: ("ignore" | "always" | "never")
|
|
9780
9851
|
}]
|
|
9781
9852
|
// ----- jsonc/object-property-newline -----
|
|
9782
9853
|
type JsoncObjectPropertyNewline = []|[{
|
|
@@ -10366,6 +10437,8 @@ type MaxParams = []|[(number | {
|
|
|
10366
10437
|
max?: number
|
|
10367
10438
|
|
|
10368
10439
|
countVoidThis?: boolean
|
|
10440
|
+
|
|
10441
|
+
countThis?: ("never" | "except-void" | "always")
|
|
10369
10442
|
})]
|
|
10370
10443
|
// ----- max-statements -----
|
|
10371
10444
|
type MaxStatements = []|[(number | {
|
|
@@ -10656,12 +10729,16 @@ type NNoUnsupportedFeaturesNodeBuiltins = []|[{
|
|
|
10656
10729
|
type NPreferGlobalBuffer = []|[("always" | "never")]
|
|
10657
10730
|
// ----- n/prefer-global/console -----
|
|
10658
10731
|
type NPreferGlobalConsole = []|[("always" | "never")]
|
|
10732
|
+
// ----- n/prefer-global/crypto -----
|
|
10733
|
+
type NPreferGlobalCrypto = []|[("always" | "never")]
|
|
10659
10734
|
// ----- n/prefer-global/process -----
|
|
10660
10735
|
type NPreferGlobalProcess = []|[("always" | "never")]
|
|
10661
10736
|
// ----- n/prefer-global/text-decoder -----
|
|
10662
10737
|
type NPreferGlobalTextDecoder = []|[("always" | "never")]
|
|
10663
10738
|
// ----- n/prefer-global/text-encoder -----
|
|
10664
10739
|
type NPreferGlobalTextEncoder = []|[("always" | "never")]
|
|
10740
|
+
// ----- n/prefer-global/timers -----
|
|
10741
|
+
type NPreferGlobalTimers = []|[("always" | "never")]
|
|
10665
10742
|
// ----- n/prefer-global/url -----
|
|
10666
10743
|
type NPreferGlobalUrl = []|[("always" | "never")]
|
|
10667
10744
|
// ----- n/prefer-global/url-search-params -----
|
|
@@ -11201,6 +11278,8 @@ type PackageJsonRepositoryShorthand = []|[{
|
|
|
11201
11278
|
// ----- package-json/require-attribution -----
|
|
11202
11279
|
type PackageJsonRequireAttribution = []|[{
|
|
11203
11280
|
|
|
11281
|
+
ignorePrivate?: boolean
|
|
11282
|
+
|
|
11204
11283
|
preferContributorsOnly?: boolean
|
|
11205
11284
|
}]
|
|
11206
11285
|
// ----- package-json/require-author -----
|
|
@@ -11263,6 +11342,11 @@ type PackageJsonRequireLicense = []|[{
|
|
|
11263
11342
|
|
|
11264
11343
|
ignorePrivate?: boolean
|
|
11265
11344
|
}]
|
|
11345
|
+
// ----- package-json/require-main -----
|
|
11346
|
+
type PackageJsonRequireMain = []|[{
|
|
11347
|
+
|
|
11348
|
+
ignorePrivate?: boolean
|
|
11349
|
+
}]
|
|
11266
11350
|
// ----- package-json/require-name -----
|
|
11267
11351
|
type PackageJsonRequireName = []|[{
|
|
11268
11352
|
|
|
@@ -11273,11 +11357,26 @@ type PackageJsonRequireOptionalDependencies = []|[{
|
|
|
11273
11357
|
|
|
11274
11358
|
ignorePrivate?: boolean
|
|
11275
11359
|
}]
|
|
11360
|
+
// ----- package-json/require-os -----
|
|
11361
|
+
type PackageJsonRequireOs = []|[{
|
|
11362
|
+
|
|
11363
|
+
ignorePrivate?: boolean
|
|
11364
|
+
}]
|
|
11365
|
+
// ----- package-json/require-packageManager -----
|
|
11366
|
+
type PackageJsonRequirePackageManager = []|[{
|
|
11367
|
+
|
|
11368
|
+
ignorePrivate?: boolean
|
|
11369
|
+
}]
|
|
11276
11370
|
// ----- package-json/require-peerDependencies -----
|
|
11277
11371
|
type PackageJsonRequirePeerDependencies = []|[{
|
|
11278
11372
|
|
|
11279
11373
|
ignorePrivate?: boolean
|
|
11280
11374
|
}]
|
|
11375
|
+
// ----- package-json/require-publishConfig -----
|
|
11376
|
+
type PackageJsonRequirePublishConfig = []|[{
|
|
11377
|
+
|
|
11378
|
+
ignorePrivate?: boolean
|
|
11379
|
+
}]
|
|
11281
11380
|
// ----- package-json/require-repository -----
|
|
11282
11381
|
type PackageJsonRequireRepository = []|[{
|
|
11283
11382
|
|
|
@@ -11553,9 +11652,9 @@ type ReactHooksVoidUseMemo = []|[{
|
|
|
11553
11652
|
}]
|
|
11554
11653
|
// ----- react-refresh/only-export-components -----
|
|
11555
11654
|
type ReactRefreshOnlyExportComponents = []|[{
|
|
11655
|
+
extraHOCs?: string[]
|
|
11556
11656
|
allowExportNames?: string[]
|
|
11557
11657
|
allowConstantExport?: boolean
|
|
11558
|
-
customHOCs?: string[]
|
|
11559
11658
|
checkJS?: boolean
|
|
11560
11659
|
}]
|
|
11561
11660
|
// ----- regexp/hexadecimal-escape -----
|
|
@@ -12135,37 +12234,58 @@ type StylisticDotLocation = []|[("object" | "property")]
|
|
|
12135
12234
|
type StylisticEolLast = []|[("always" | "never" | "unix" | "windows")]
|
|
12136
12235
|
// ----- stylistic/eol-last -----
|
|
12137
12236
|
type StylisticEolLast = []|[("always" | "never" | "unix" | "windows")]
|
|
12237
|
+
// ----- @stylistic/exp-jsx-props-style -----
|
|
12238
|
+
type StylisticExpJsxPropsStyle = []|[{
|
|
12239
|
+
singleLine?: {
|
|
12240
|
+
maxItems?: number
|
|
12241
|
+
}
|
|
12242
|
+
multiLine?: {
|
|
12243
|
+
minItems?: number
|
|
12244
|
+
maxItemsPerLine?: number
|
|
12245
|
+
}
|
|
12246
|
+
}]
|
|
12247
|
+
// ----- stylistic/exp-jsx-props-style -----
|
|
12248
|
+
type StylisticExpJsxPropsStyle = []|[{
|
|
12249
|
+
singleLine?: {
|
|
12250
|
+
maxItems?: number
|
|
12251
|
+
}
|
|
12252
|
+
multiLine?: {
|
|
12253
|
+
minItems?: number
|
|
12254
|
+
maxItemsPerLine?: number
|
|
12255
|
+
}
|
|
12256
|
+
}]
|
|
12138
12257
|
// ----- @stylistic/exp-list-style -----
|
|
12139
12258
|
type StylisticExpListStyle = []|[{
|
|
12140
12259
|
singleLine?: _StylisticExpListStyle_SingleLineConfig
|
|
12141
12260
|
multiLine?: _StylisticExpListStyle_MultiLineConfig
|
|
12142
12261
|
overrides?: {
|
|
12143
|
-
"
|
|
12144
|
-
"
|
|
12145
|
-
"
|
|
12146
|
-
"
|
|
12147
|
-
ArrayExpression?: _StylisticExpListStyle_BaseConfig
|
|
12148
|
-
ArrayPattern?: _StylisticExpListStyle_BaseConfig
|
|
12149
|
-
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig
|
|
12150
|
-
CallExpression?: _StylisticExpListStyle_BaseConfig
|
|
12151
|
-
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig
|
|
12152
|
-
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig
|
|
12153
|
-
FunctionExpression?: _StylisticExpListStyle_BaseConfig
|
|
12154
|
-
|
|
12155
|
-
ImportAttributes?: _StylisticExpListStyle_BaseConfig
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12262
|
+
"()"?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12263
|
+
"[]"?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12264
|
+
"{}"?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12265
|
+
"<>"?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12266
|
+
ArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12267
|
+
ArrayPattern?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12268
|
+
ArrowFunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12269
|
+
CallExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12270
|
+
ExportNamedDeclaration?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12271
|
+
FunctionDeclaration?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12272
|
+
FunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12273
|
+
IfStatement?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12274
|
+
ImportAttributes?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12275
|
+
ImportDeclaration?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12276
|
+
JSONArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12277
|
+
JSONObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12278
|
+
NewExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12279
|
+
ObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12280
|
+
ObjectPattern?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12281
|
+
TSDeclareFunction?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12282
|
+
TSEnumBody?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12283
|
+
TSFunctionType?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12284
|
+
TSInterfaceBody?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12285
|
+
TSTupleType?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12286
|
+
TSTypeLiteral?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12287
|
+
TSTypeParameterDeclaration?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12288
|
+
TSTypeParameterInstantiation?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12169
12289
|
}
|
|
12170
12290
|
}]
|
|
12171
12291
|
// ----- stylistic/exp-list-style -----
|
|
@@ -12173,32 +12293,33 @@ type StylisticExpListStyle = []|[{
|
|
|
12173
12293
|
singleLine?: _StylisticExpListStyle_SingleLineConfig
|
|
12174
12294
|
multiLine?: _StylisticExpListStyle_MultiLineConfig
|
|
12175
12295
|
overrides?: {
|
|
12176
|
-
"
|
|
12177
|
-
"
|
|
12178
|
-
"
|
|
12179
|
-
"
|
|
12180
|
-
ArrayExpression?: _StylisticExpListStyle_BaseConfig
|
|
12181
|
-
ArrayPattern?: _StylisticExpListStyle_BaseConfig
|
|
12182
|
-
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig
|
|
12183
|
-
CallExpression?: _StylisticExpListStyle_BaseConfig
|
|
12184
|
-
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig
|
|
12185
|
-
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig
|
|
12186
|
-
FunctionExpression?: _StylisticExpListStyle_BaseConfig
|
|
12187
|
-
|
|
12188
|
-
ImportAttributes?: _StylisticExpListStyle_BaseConfig
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12296
|
+
"()"?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12297
|
+
"[]"?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12298
|
+
"{}"?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12299
|
+
"<>"?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12300
|
+
ArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12301
|
+
ArrayPattern?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12302
|
+
ArrowFunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12303
|
+
CallExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12304
|
+
ExportNamedDeclaration?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12305
|
+
FunctionDeclaration?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12306
|
+
FunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12307
|
+
IfStatement?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12308
|
+
ImportAttributes?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12309
|
+
ImportDeclaration?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12310
|
+
JSONArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12311
|
+
JSONObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12312
|
+
NewExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12313
|
+
ObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12314
|
+
ObjectPattern?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12315
|
+
TSDeclareFunction?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12316
|
+
TSEnumBody?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12317
|
+
TSFunctionType?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12318
|
+
TSInterfaceBody?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12319
|
+
TSTupleType?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12320
|
+
TSTypeLiteral?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12321
|
+
TSTypeParameterDeclaration?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12322
|
+
TSTypeParameterInstantiation?: (_StylisticExpListStyle_BaseConfig | "off")
|
|
12202
12323
|
}
|
|
12203
12324
|
}]
|
|
12204
12325
|
interface _StylisticExpListStyle_SingleLineConfig {
|
|
@@ -14031,8 +14152,10 @@ type StylisticPaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
|
|
|
14031
14152
|
type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
14032
14153
|
// ----- stylistic/padding-line-between-statements -----
|
|
14033
14154
|
type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
14034
|
-
type _StylisticPaddingLineBetweenStatementsStatementOption = (
|
|
14035
|
-
type _StylisticPaddingLineBetweenStatementsStatementOption = (
|
|
14155
|
+
type _StylisticPaddingLineBetweenStatementsStatementOption = (_StylisticPaddingLineBetweenStatementsStatementMatcher | [_StylisticPaddingLineBetweenStatementsStatementMatcher, ...(_StylisticPaddingLineBetweenStatementsStatementMatcher)[]])
|
|
14156
|
+
type _StylisticPaddingLineBetweenStatementsStatementOption = (_StylisticPaddingLineBetweenStatementsStatementMatcher | [_StylisticPaddingLineBetweenStatementsStatementMatcher, ...(_StylisticPaddingLineBetweenStatementsStatementMatcher)[]])
|
|
14157
|
+
type _StylisticPaddingLineBetweenStatementsStatementMatcher = (_StylisticPaddingLineBetweenStatementsStatementType | _StylisticPaddingLineBetweenStatements_SelectorOption)
|
|
14158
|
+
type _StylisticPaddingLineBetweenStatementsStatementMatcher = (_StylisticPaddingLineBetweenStatementsStatementType | _StylisticPaddingLineBetweenStatements_SelectorOption)
|
|
14036
14159
|
type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using" | "type" | "singleline-type" | "multiline-type")
|
|
14037
14160
|
type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using" | "type" | "singleline-type" | "multiline-type")
|
|
14038
14161
|
type StylisticPaddingLineBetweenStatements = {
|
|
@@ -14045,6 +14168,14 @@ type StylisticPaddingLineBetweenStatements = {
|
|
|
14045
14168
|
prev: _StylisticPaddingLineBetweenStatementsStatementOption
|
|
14046
14169
|
next: _StylisticPaddingLineBetweenStatementsStatementOption
|
|
14047
14170
|
}[]
|
|
14171
|
+
interface _StylisticPaddingLineBetweenStatements_SelectorOption {
|
|
14172
|
+
selector: string
|
|
14173
|
+
lineMode?: ("any" | "singleline" | "multiline")
|
|
14174
|
+
}
|
|
14175
|
+
interface _StylisticPaddingLineBetweenStatements_SelectorOption {
|
|
14176
|
+
selector: string
|
|
14177
|
+
lineMode?: ("any" | "singleline" | "multiline")
|
|
14178
|
+
}
|
|
14048
14179
|
// ----- @stylistic/quote-props -----
|
|
14049
14180
|
type StylisticQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
14050
14181
|
keywords?: boolean
|
|
@@ -14386,10 +14517,21 @@ type TomlIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
14386
14517
|
subTables?: number
|
|
14387
14518
|
keyValuePairs?: number
|
|
14388
14519
|
}]
|
|
14520
|
+
// ----- toml/inline-table-curly-newline -----
|
|
14521
|
+
type TomlInlineTableCurlyNewline = []|[(("always" | "never") | {
|
|
14522
|
+
multiline?: boolean
|
|
14523
|
+
minProperties?: number
|
|
14524
|
+
consistent?: boolean
|
|
14525
|
+
})]
|
|
14389
14526
|
// ----- toml/inline-table-curly-spacing -----
|
|
14390
14527
|
type TomlInlineTableCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
14391
14528
|
arraysInObjects?: boolean
|
|
14392
14529
|
objectsInObjects?: boolean
|
|
14530
|
+
emptyObjects?: ("ignore" | "always" | "never")
|
|
14531
|
+
}]
|
|
14532
|
+
// ----- toml/inline-table-key-value-newline -----
|
|
14533
|
+
type TomlInlineTableKeyValueNewline = []|[{
|
|
14534
|
+
allowAllPropertiesOnSameLine?: boolean
|
|
14393
14535
|
}]
|
|
14394
14536
|
// ----- toml/key-spacing -----
|
|
14395
14537
|
type TomlKeySpacing = []|[({
|
|
@@ -14538,6 +14680,15 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
14538
14680
|
interface _UnicornImportStyle_BooleanObject {
|
|
14539
14681
|
[k: string]: boolean | undefined
|
|
14540
14682
|
}
|
|
14683
|
+
// ----- unicorn/isolated-functions -----
|
|
14684
|
+
type UnicornIsolatedFunctions = []|[{
|
|
14685
|
+
overrideGlobals?: {
|
|
14686
|
+
[k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined
|
|
14687
|
+
}
|
|
14688
|
+
functions?: string[]
|
|
14689
|
+
selectors?: string[]
|
|
14690
|
+
comments?: string[]
|
|
14691
|
+
}]
|
|
14541
14692
|
// ----- unicorn/no-array-reduce -----
|
|
14542
14693
|
type UnicornNoArrayReduce = []|[{
|
|
14543
14694
|
allowSimpleOperations?: boolean
|
|
@@ -14811,6 +14962,7 @@ type VueAttributesOrder = []|[{
|
|
|
14811
14962
|
order?: (("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT") | ("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT")[])[]
|
|
14812
14963
|
alphabetical?: boolean
|
|
14813
14964
|
sortLineLength?: boolean
|
|
14965
|
+
ignoreVBindObject?: boolean
|
|
14814
14966
|
}]
|
|
14815
14967
|
// ----- vue/block-lang -----
|
|
14816
14968
|
type VueBlockLang = []|[{
|
|
@@ -14903,7 +15055,7 @@ type VueDefineMacrosOrder = []|[{
|
|
|
14903
15055
|
type VueDefinePropsDeclaration = []|[("type-based" | "runtime")]
|
|
14904
15056
|
// ----- vue/define-props-destructuring -----
|
|
14905
15057
|
type VueDefinePropsDestructuring = []|[{
|
|
14906
|
-
destructure?: ("always" | "never")
|
|
15058
|
+
destructure?: ("only-when-assigned" | "always" | "never")
|
|
14907
15059
|
}]
|
|
14908
15060
|
// ----- vue/dot-location -----
|
|
14909
15061
|
type VueDotLocation = []|[("object" | "property")]
|
|
@@ -15963,6 +16115,10 @@ type VueVSlotStyle = []|[(("shorthand" | "longform") | {
|
|
|
15963
16115
|
default?: ("shorthand" | "longform" | "v-slot")
|
|
15964
16116
|
named?: ("shorthand" | "longform")
|
|
15965
16117
|
})]
|
|
16118
|
+
// ----- vue/valid-v-for -----
|
|
16119
|
+
type VueValidVFor = []|[{
|
|
16120
|
+
allowEmptyAlias?: boolean
|
|
16121
|
+
}]
|
|
15966
16122
|
// ----- vue/valid-v-on -----
|
|
15967
16123
|
type VueValidVOn = []|[{
|
|
15968
16124
|
modifiers?: unknown[]
|
|
@@ -16014,6 +16170,7 @@ type YmlFlowMappingCurlyNewline = []|[(("always" | "never") | {
|
|
|
16014
16170
|
type YmlFlowMappingCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
16015
16171
|
arraysInObjects?: boolean
|
|
16016
16172
|
objectsInObjects?: boolean
|
|
16173
|
+
emptyObjects?: ("ignore" | "always" | "never")
|
|
16017
16174
|
}]
|
|
16018
16175
|
// ----- yml/flow-sequence-bracket-newline -----
|
|
16019
16176
|
type YmlFlowSequenceBracketNewline = []|[(("always" | "never" | "consistent") | {
|