@so1ve/eslint-config 3.12.0 → 3.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-CPXgTZqf.d.ts → index.d.ts} +242 -145
- package/dist/index.js +4 -0
- package/package.json +19 -19
|
@@ -299,6 +299,11 @@ interface RuleOptions {
|
|
|
299
299
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
|
|
300
300
|
*/
|
|
301
301
|
'astro/no-set-text-directive'?: Linter.RuleEntry<[]>;
|
|
302
|
+
/**
|
|
303
|
+
* disallow inline `<script>` without `src` to encourage CSP-safe patterns
|
|
304
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
|
|
305
|
+
*/
|
|
306
|
+
'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>;
|
|
302
307
|
/**
|
|
303
308
|
* disallow selectors defined in `style` tag that don't use in HTML
|
|
304
309
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
|
|
@@ -3638,6 +3643,11 @@ interface RuleOptions {
|
|
|
3638
3643
|
* @see https://eslint.style/rules/eol-last
|
|
3639
3644
|
*/
|
|
3640
3645
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
|
|
3646
|
+
/**
|
|
3647
|
+
* Enforce consistent spacing and line break styles inside brackets.
|
|
3648
|
+
* @see https://eslint.style/rules/list-style
|
|
3649
|
+
*/
|
|
3650
|
+
'style/exp-list-style'?: Linter.RuleEntry<StyleExpListStyle>;
|
|
3641
3651
|
/**
|
|
3642
3652
|
* Enforce line breaks between arguments of a function call
|
|
3643
3653
|
* @see https://eslint.style/rules/function-call-argument-newline
|
|
@@ -4622,6 +4632,11 @@ interface RuleOptions {
|
|
|
4622
4632
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
4623
4633
|
*/
|
|
4624
4634
|
'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>;
|
|
4635
|
+
/**
|
|
4636
|
+
* Disallow unused private class members
|
|
4637
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
4638
|
+
*/
|
|
4639
|
+
'ts/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
|
|
4625
4640
|
/**
|
|
4626
4641
|
* Disallow unused variables
|
|
4627
4642
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
@@ -4848,710 +4863,725 @@ interface RuleOptions {
|
|
|
4848
4863
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
4849
4864
|
/**
|
|
4850
4865
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
4852
4867
|
*/
|
|
4853
4868
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
4854
4869
|
/**
|
|
4855
4870
|
* Enforce a specific parameter name in catch clauses.
|
|
4856
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
4857
4872
|
*/
|
|
4858
4873
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
4859
4874
|
/**
|
|
4860
4875
|
* Enforce consistent assertion style with `node:assert`.
|
|
4861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
4862
4877
|
*/
|
|
4863
4878
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
4864
4879
|
/**
|
|
4865
4880
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
4866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
4867
4882
|
*/
|
|
4868
4883
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
4869
4884
|
/**
|
|
4870
4885
|
* Use destructured variables over properties.
|
|
4871
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
4872
4887
|
*/
|
|
4873
4888
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
4874
4889
|
/**
|
|
4875
4890
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4876
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4877
4892
|
*/
|
|
4878
4893
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
4879
4894
|
/**
|
|
4880
4895
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4881
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
4882
4897
|
*/
|
|
4883
4898
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
4884
4899
|
/**
|
|
4885
4900
|
* Move function definitions to the highest possible scope.
|
|
4886
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
4887
4902
|
*/
|
|
4888
4903
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
4889
4904
|
/**
|
|
4890
4905
|
* Enforce correct `Error` subclassing.
|
|
4891
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
4892
4907
|
*/
|
|
4893
4908
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
4894
4909
|
/**
|
|
4895
4910
|
* Enforce no spaces between braces.
|
|
4896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
4897
4912
|
*/
|
|
4898
4913
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
4899
4914
|
/**
|
|
4900
4915
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4901
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
4902
4917
|
*/
|
|
4903
4918
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
4904
4919
|
/**
|
|
4905
4920
|
* Require escape sequences to use uppercase or lowercase values.
|
|
4906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
4907
4922
|
*/
|
|
4908
4923
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
4909
4924
|
/**
|
|
4910
4925
|
* Add expiration conditions to TODO comments.
|
|
4911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
4912
4927
|
*/
|
|
4913
4928
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
4914
4929
|
/**
|
|
4915
4930
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
4917
4932
|
*/
|
|
4918
4933
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
4919
4934
|
/**
|
|
4920
4935
|
* Enforce a case style for filenames.
|
|
4921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
4922
4937
|
*/
|
|
4923
4938
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
4924
4939
|
/**
|
|
4925
4940
|
* Enforce specific import styles per module.
|
|
4926
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
4927
4942
|
*/
|
|
4928
4943
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
4929
4944
|
/**
|
|
4930
4945
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4931
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
4932
4947
|
*/
|
|
4933
4948
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
4934
4949
|
/**
|
|
4935
4950
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4936
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4937
4952
|
*/
|
|
4938
4953
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
4939
4954
|
/**
|
|
4940
4955
|
* Disallow recursive access to `this` within getters and setters.
|
|
4941
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
4942
4957
|
*/
|
|
4943
4958
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
4944
4959
|
/**
|
|
4945
4960
|
* Disallow anonymous functions and classes as the default export.
|
|
4946
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
4947
4962
|
*/
|
|
4948
4963
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
4949
4964
|
/**
|
|
4950
4965
|
* Prevent passing a function reference directly to iterator methods.
|
|
4951
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
4952
4967
|
*/
|
|
4953
4968
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
4954
4969
|
/**
|
|
4955
4970
|
* Prefer `for…of` over the `forEach` method.
|
|
4956
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
4957
4972
|
*/
|
|
4958
4973
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
4959
4974
|
/**
|
|
4960
4975
|
* Disallow using the `this` argument in array methods.
|
|
4961
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
4962
4977
|
*/
|
|
4963
4978
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
4964
4979
|
/**
|
|
4965
4980
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
4966
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
4967
4982
|
* @deprecated
|
|
4968
4983
|
*/
|
|
4969
4984
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
4970
4985
|
/**
|
|
4971
4986
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4972
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
4973
4988
|
*/
|
|
4974
4989
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
4975
4990
|
/**
|
|
4976
4991
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
4977
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
4978
4993
|
*/
|
|
4979
4994
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
4980
4995
|
/**
|
|
4981
4996
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
4982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
4983
4998
|
*/
|
|
4984
4999
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
4985
5000
|
/**
|
|
4986
5001
|
* Disallow member access from await expression.
|
|
4987
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
4988
5003
|
*/
|
|
4989
5004
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
4990
5005
|
/**
|
|
4991
5006
|
* Disallow using `await` in `Promise` method parameters.
|
|
4992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4993
5008
|
*/
|
|
4994
5009
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
4995
5010
|
/**
|
|
4996
5011
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
4998
5013
|
*/
|
|
4999
5014
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
5000
5015
|
/**
|
|
5001
5016
|
* Do not use `document.cookie` directly.
|
|
5002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
5003
5018
|
*/
|
|
5004
5019
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
5005
5020
|
/**
|
|
5006
5021
|
* Disallow empty files.
|
|
5007
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
5008
5023
|
*/
|
|
5009
5024
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
5010
5025
|
/**
|
|
5011
5026
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
5013
5028
|
*/
|
|
5014
5029
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
5015
5030
|
/**
|
|
5016
5031
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5017
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
5018
5033
|
*/
|
|
5019
5034
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
5035
|
+
/**
|
|
5036
|
+
* Disallow immediate mutation after variable assignment.
|
|
5037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
5038
|
+
*/
|
|
5039
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
5020
5040
|
/**
|
|
5021
5041
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
5022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
5023
5043
|
* @deprecated
|
|
5024
5044
|
*/
|
|
5025
5045
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
5026
5046
|
/**
|
|
5027
5047
|
* Disallow `instanceof` with built-in objects
|
|
5028
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
5029
5049
|
*/
|
|
5030
5050
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
5031
5051
|
/**
|
|
5032
5052
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5034
5054
|
*/
|
|
5035
5055
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5036
5056
|
/**
|
|
5037
5057
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5039
5059
|
*/
|
|
5040
5060
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
5041
5061
|
/**
|
|
5042
5062
|
* Disallow identifiers starting with `new` or `class`.
|
|
5043
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
5044
5064
|
*/
|
|
5045
5065
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
5046
5066
|
/**
|
|
5047
5067
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
5048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
5049
5069
|
* @deprecated
|
|
5050
5070
|
*/
|
|
5051
5071
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
5052
5072
|
/**
|
|
5053
5073
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5074
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
5055
5075
|
*/
|
|
5056
5076
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
5057
5077
|
/**
|
|
5058
5078
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5060
5080
|
*/
|
|
5061
5081
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5062
5082
|
/**
|
|
5063
5083
|
* Disallow named usage of default import and export.
|
|
5064
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5084
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
5065
5085
|
*/
|
|
5066
5086
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
5067
5087
|
/**
|
|
5068
5088
|
* Disallow negated conditions.
|
|
5069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5089
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
5070
5090
|
*/
|
|
5071
5091
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
5072
5092
|
/**
|
|
5073
5093
|
* Disallow negated expression in equality check.
|
|
5074
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5094
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5075
5095
|
*/
|
|
5076
5096
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
5077
5097
|
/**
|
|
5078
5098
|
* Disallow nested ternary expressions.
|
|
5079
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5099
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
5080
5100
|
*/
|
|
5081
5101
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
5082
5102
|
/**
|
|
5083
5103
|
* Disallow `new Array()`.
|
|
5084
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5104
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
5085
5105
|
*/
|
|
5086
5106
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
5087
5107
|
/**
|
|
5088
5108
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5109
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
5090
5110
|
*/
|
|
5091
5111
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
5092
5112
|
/**
|
|
5093
5113
|
* Disallow the use of the `null` literal.
|
|
5094
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5114
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
5095
5115
|
*/
|
|
5096
5116
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
5097
5117
|
/**
|
|
5098
5118
|
* Disallow the use of objects as default parameters.
|
|
5099
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5100
5120
|
*/
|
|
5101
5121
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
5102
5122
|
/**
|
|
5103
5123
|
* Disallow `process.exit()`.
|
|
5104
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
5105
5125
|
*/
|
|
5106
5126
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
5107
5127
|
/**
|
|
5108
5128
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5109
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5110
5130
|
*/
|
|
5111
5131
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5112
5132
|
/**
|
|
5113
5133
|
* Disallow classes that only have static members.
|
|
5114
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
5115
5135
|
*/
|
|
5116
5136
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
5117
5137
|
/**
|
|
5118
5138
|
* Disallow `then` property.
|
|
5119
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
5120
5140
|
*/
|
|
5121
5141
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
5122
5142
|
/**
|
|
5123
5143
|
* Disallow assigning `this` to a variable.
|
|
5124
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
5125
5145
|
*/
|
|
5126
5146
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
5127
5147
|
/**
|
|
5128
5148
|
* Disallow comparing `undefined` using `typeof`.
|
|
5129
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5149
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
5130
5150
|
*/
|
|
5131
5151
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
5132
5152
|
/**
|
|
5133
5153
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5134
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5154
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
5135
5155
|
*/
|
|
5136
5156
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5137
5157
|
/**
|
|
5138
5158
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5139
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5159
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
5140
5160
|
*/
|
|
5141
5161
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
5142
5162
|
/**
|
|
5143
5163
|
* Disallow awaiting non-promise values.
|
|
5144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5164
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
5145
5165
|
*/
|
|
5146
5166
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
5147
5167
|
/**
|
|
5148
5168
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5149
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5169
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5150
5170
|
*/
|
|
5151
5171
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
5152
5172
|
/**
|
|
5153
5173
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5154
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5174
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
5155
5175
|
*/
|
|
5156
5176
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
5157
5177
|
/**
|
|
5158
5178
|
* Disallow unreadable array destructuring.
|
|
5159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5179
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5160
5180
|
*/
|
|
5161
5181
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
5162
5182
|
/**
|
|
5163
5183
|
* Disallow unreadable IIFEs.
|
|
5164
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5184
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
5165
5185
|
*/
|
|
5166
5186
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
5167
5187
|
/**
|
|
5168
5188
|
* Disallow unused object properties.
|
|
5169
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5189
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
5170
5190
|
*/
|
|
5171
5191
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
5192
|
+
/**
|
|
5193
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5194
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
5195
|
+
*/
|
|
5196
|
+
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
5172
5197
|
/**
|
|
5173
5198
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5174
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5199
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
5175
5200
|
*/
|
|
5176
5201
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
5177
5202
|
/**
|
|
5178
5203
|
* Disallow useless fallback when spreading in object literals.
|
|
5179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5204
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5180
5205
|
*/
|
|
5181
5206
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
5182
5207
|
/**
|
|
5183
5208
|
* Disallow useless array length check.
|
|
5184
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5209
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
5185
5210
|
*/
|
|
5186
5211
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
5187
5212
|
/**
|
|
5188
5213
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5189
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5214
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5190
5215
|
*/
|
|
5191
5216
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
5192
5217
|
/**
|
|
5193
5218
|
* Disallow unnecessary spread.
|
|
5194
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5219
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
5195
5220
|
*/
|
|
5196
5221
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
5197
5222
|
/**
|
|
5198
5223
|
* Disallow useless case in switch statements.
|
|
5199
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5224
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
5200
5225
|
*/
|
|
5201
5226
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
5202
5227
|
/**
|
|
5203
5228
|
* Disallow useless `undefined`.
|
|
5204
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
5205
5230
|
*/
|
|
5206
5231
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
5207
5232
|
/**
|
|
5208
5233
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5209
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
5210
5235
|
*/
|
|
5211
5236
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
5212
5237
|
/**
|
|
5213
5238
|
* Enforce proper case for numeric literals.
|
|
5214
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
5215
5240
|
*/
|
|
5216
5241
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
5217
5242
|
/**
|
|
5218
5243
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5219
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
5220
5245
|
*/
|
|
5221
5246
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
5222
5247
|
/**
|
|
5223
5248
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5224
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
5225
5250
|
*/
|
|
5226
5251
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
5227
5252
|
/**
|
|
5228
5253
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5229
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
5230
5255
|
*/
|
|
5231
5256
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
5232
5257
|
/**
|
|
5233
5258
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
5235
5260
|
*/
|
|
5236
5261
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
5237
5262
|
/**
|
|
5238
5263
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
5240
5265
|
*/
|
|
5241
5266
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5242
5267
|
/**
|
|
5243
5268
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5244
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
5245
5270
|
*/
|
|
5246
5271
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
5247
5272
|
/**
|
|
5248
5273
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5249
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5274
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
5250
5275
|
*/
|
|
5251
5276
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
5252
5277
|
/**
|
|
5253
5278
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5254
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5279
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
5255
5280
|
*/
|
|
5256
5281
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
5257
5282
|
/**
|
|
5258
5283
|
* Prefer `BigInt` literals over the constructor.
|
|
5259
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5284
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
5260
5285
|
*/
|
|
5261
5286
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
5262
5287
|
/**
|
|
5263
5288
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5264
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5265
5290
|
*/
|
|
5266
5291
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
5267
5292
|
/**
|
|
5268
5293
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
5269
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5294
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
5270
5295
|
*/
|
|
5271
5296
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
5272
5297
|
/**
|
|
5273
5298
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
5274
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5299
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
5275
5300
|
*/
|
|
5276
5301
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
5277
5302
|
/**
|
|
5278
5303
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5279
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5304
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
5280
5305
|
*/
|
|
5281
5306
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
5282
5307
|
/**
|
|
5283
5308
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5284
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5309
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
5285
5310
|
*/
|
|
5286
5311
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
5287
5312
|
/**
|
|
5288
5313
|
* Prefer default parameters over reassignment.
|
|
5289
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
5290
5315
|
*/
|
|
5291
5316
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
5292
5317
|
/**
|
|
5293
5318
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5294
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5319
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
5295
5320
|
*/
|
|
5296
5321
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
5297
5322
|
/**
|
|
5298
5323
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5299
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5324
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5300
5325
|
*/
|
|
5301
5326
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
5302
5327
|
/**
|
|
5303
5328
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5304
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5329
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5305
5330
|
*/
|
|
5306
5331
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
5307
5332
|
/**
|
|
5308
5333
|
* Prefer `.textContent` over `.innerText`.
|
|
5309
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5334
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5310
5335
|
*/
|
|
5311
5336
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
5312
5337
|
/**
|
|
5313
5338
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5314
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5339
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
5315
5340
|
*/
|
|
5316
5341
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
5317
5342
|
/**
|
|
5318
5343
|
* Prefer `export…from` when re-exporting.
|
|
5319
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5344
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
5320
5345
|
*/
|
|
5321
5346
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
5322
5347
|
/**
|
|
5323
5348
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5324
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5349
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
5325
5350
|
*/
|
|
5326
5351
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
5327
5352
|
/**
|
|
5328
5353
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
5329
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5354
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
5330
5355
|
*/
|
|
5331
5356
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
5332
5357
|
/**
|
|
5333
5358
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5334
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5359
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
5335
5360
|
*/
|
|
5336
5361
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
5337
5362
|
/**
|
|
5338
5363
|
* Prefer reading a JSON file as a buffer.
|
|
5339
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5364
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5340
5365
|
*/
|
|
5341
5366
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
5342
5367
|
/**
|
|
5343
5368
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5344
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5369
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5345
5370
|
*/
|
|
5346
5371
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
5347
5372
|
/**
|
|
5348
5373
|
* Prefer using a logical operator over a ternary.
|
|
5349
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5374
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5350
5375
|
*/
|
|
5351
5376
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
5352
5377
|
/**
|
|
5353
5378
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5354
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5379
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
5355
5380
|
*/
|
|
5356
5381
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
5357
5382
|
/**
|
|
5358
5383
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5359
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5384
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
5360
5385
|
*/
|
|
5361
5386
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
5362
5387
|
/**
|
|
5363
5388
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5364
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5389
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5365
5390
|
*/
|
|
5366
5391
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
5367
5392
|
/**
|
|
5368
5393
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5369
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5394
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5370
5395
|
*/
|
|
5371
5396
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
5372
5397
|
/**
|
|
5373
5398
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5374
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5399
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
5375
5400
|
*/
|
|
5376
5401
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
5377
5402
|
/**
|
|
5378
5403
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5379
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5404
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5380
5405
|
*/
|
|
5381
5406
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
5382
5407
|
/**
|
|
5383
5408
|
* Prefer negative index over `.length - index` when possible.
|
|
5384
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5409
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
5385
5410
|
*/
|
|
5386
5411
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
5387
5412
|
/**
|
|
5388
5413
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5389
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5414
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
5390
5415
|
*/
|
|
5391
5416
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
5392
5417
|
/**
|
|
5393
5418
|
* Prefer `Number` static properties over global ones.
|
|
5394
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5419
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
5395
5420
|
*/
|
|
5396
5421
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
5397
5422
|
/**
|
|
5398
5423
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5399
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5424
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
5400
5425
|
*/
|
|
5401
5426
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
5402
5427
|
/**
|
|
5403
5428
|
* Prefer omitting the `catch` binding parameter.
|
|
5404
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5429
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5405
5430
|
*/
|
|
5406
5431
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
5407
5432
|
/**
|
|
5408
5433
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5409
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
5410
5435
|
*/
|
|
5411
5436
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
5412
5437
|
/**
|
|
5413
5438
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5414
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
5415
5440
|
*/
|
|
5416
5441
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
5417
5442
|
/**
|
|
5418
5443
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5419
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
5420
5445
|
*/
|
|
5421
5446
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
5422
5447
|
/**
|
|
5423
5448
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5424
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5449
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
5425
5450
|
*/
|
|
5426
5451
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
5452
|
+
/**
|
|
5453
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
5454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
5455
|
+
*/
|
|
5456
|
+
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
5427
5457
|
/**
|
|
5428
5458
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
5430
5460
|
*/
|
|
5431
5461
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
5432
5462
|
/**
|
|
5433
5463
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
5435
5465
|
*/
|
|
5436
5466
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
5437
5467
|
/**
|
|
5438
5468
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
5439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
5440
5470
|
*/
|
|
5441
5471
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
5442
5472
|
/**
|
|
5443
5473
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
5445
5475
|
*/
|
|
5446
5476
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
5447
5477
|
/**
|
|
5448
5478
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5479
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
5450
5480
|
*/
|
|
5451
5481
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
5452
5482
|
/**
|
|
5453
5483
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
5455
5485
|
*/
|
|
5456
5486
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
5457
5487
|
/**
|
|
5458
5488
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
5460
5490
|
*/
|
|
5461
5491
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
5462
5492
|
/**
|
|
5463
5493
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5494
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5465
5495
|
*/
|
|
5466
5496
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
5467
5497
|
/**
|
|
5468
5498
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5470
5500
|
*/
|
|
5471
5501
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
5472
5502
|
/**
|
|
5473
5503
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5504
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
5475
5505
|
*/
|
|
5476
5506
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
5477
5507
|
/**
|
|
5478
5508
|
* Prefer `switch` over multiple `else-if`.
|
|
5479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
5480
5510
|
*/
|
|
5481
5511
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
5482
5512
|
/**
|
|
5483
5513
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
5485
5515
|
*/
|
|
5486
5516
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
5487
5517
|
/**
|
|
5488
5518
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
5490
5520
|
*/
|
|
5491
5521
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
5492
5522
|
/**
|
|
5493
5523
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
5495
5525
|
*/
|
|
5496
5526
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
5497
5527
|
/**
|
|
5498
5528
|
* Prevent abbreviations.
|
|
5499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
5500
5530
|
*/
|
|
5501
5531
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
5502
5532
|
/**
|
|
5503
5533
|
* Enforce consistent relative URL style.
|
|
5504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
5505
5535
|
*/
|
|
5506
5536
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
5507
5537
|
/**
|
|
5508
5538
|
* Enforce using the separator argument with `Array#join()`.
|
|
5509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
5510
5540
|
*/
|
|
5511
5541
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
5512
5542
|
/**
|
|
5513
5543
|
* Require non-empty module attributes for imports and exports
|
|
5514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
5515
5545
|
*/
|
|
5516
5546
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
5517
5547
|
/**
|
|
5518
5548
|
* Require non-empty specifier list in import and export statements.
|
|
5519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
5520
5550
|
*/
|
|
5521
5551
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
5522
5552
|
/**
|
|
5523
5553
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5525
5555
|
*/
|
|
5526
5556
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
5527
5557
|
/**
|
|
5528
5558
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
5530
5560
|
*/
|
|
5531
5561
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
5532
5562
|
/**
|
|
5533
5563
|
* Enforce better string content.
|
|
5534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
5535
5565
|
*/
|
|
5536
5566
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
5537
5567
|
/**
|
|
5538
5568
|
* Enforce consistent brace style for `case` clauses.
|
|
5539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
5540
5570
|
*/
|
|
5541
5571
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
5542
5572
|
/**
|
|
5543
5573
|
* Fix whitespace-insensitive template indentation.
|
|
5544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
5545
5575
|
*/
|
|
5546
5576
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
5547
5577
|
/**
|
|
5548
5578
|
* Enforce consistent case for text encoding identifiers.
|
|
5549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5550
5580
|
*/
|
|
5551
|
-
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<
|
|
5581
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
5552
5582
|
/**
|
|
5553
5583
|
* Require `new` when creating an error.
|
|
5554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
5555
5585
|
*/
|
|
5556
5586
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
5557
5587
|
/**
|
|
@@ -5580,7 +5610,7 @@ interface RuleOptions {
|
|
|
5580
5610
|
*/
|
|
5581
5611
|
'vars-on-top'?: Linter.RuleEntry<[]>;
|
|
5582
5612
|
/**
|
|
5583
|
-
* require
|
|
5613
|
+
* require test file pattern
|
|
5584
5614
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
5585
5615
|
*/
|
|
5586
5616
|
'vitest/consistent-test-filename'?: Linter.RuleEntry<VitestConsistentTestFilename>;
|
|
@@ -5905,6 +5935,11 @@ interface RuleOptions {
|
|
|
5905
5935
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
5906
5936
|
*/
|
|
5907
5937
|
'vitest/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
|
|
5938
|
+
/**
|
|
5939
|
+
* ensure that every `expect.poll` call is awaited
|
|
5940
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
|
|
5941
|
+
*/
|
|
5942
|
+
'vitest/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
|
|
5908
5943
|
/**
|
|
5909
5944
|
* require setup and teardown to be within a hook
|
|
5910
5945
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -7405,6 +7440,13 @@ type ArrowSpacing = [] | [{
|
|
|
7405
7440
|
before?: boolean;
|
|
7406
7441
|
after?: boolean;
|
|
7407
7442
|
}];
|
|
7443
|
+
// ----- astro/no-unsafe-inline-scripts -----
|
|
7444
|
+
type AstroNoUnsafeInlineScripts = [] | [{
|
|
7445
|
+
allowDefineVars?: boolean;
|
|
7446
|
+
allowModuleScripts?: boolean;
|
|
7447
|
+
allowNonExecutingTypes?: string[];
|
|
7448
|
+
allowNonce?: boolean;
|
|
7449
|
+
}];
|
|
7408
7450
|
// ----- astro/prefer-split-class-list -----
|
|
7409
7451
|
type AstroPreferSplitClassList = [] | [{
|
|
7410
7452
|
splitLiteral?: boolean;
|
|
@@ -7611,6 +7653,7 @@ type HtmlIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
7611
7653
|
tagChildrenIndent?: {
|
|
7612
7654
|
[k: string]: number;
|
|
7613
7655
|
};
|
|
7656
|
+
ignoreComment?: boolean;
|
|
7614
7657
|
}];
|
|
7615
7658
|
// ----- html/max-element-depth -----
|
|
7616
7659
|
type HtmlMaxElementDepth = [] | [{
|
|
@@ -11300,6 +11343,7 @@ type PnpmJsonValidCatalog = [] | [{
|
|
|
11300
11343
|
// ----- pnpm/yaml-no-duplicate-catalog-item -----
|
|
11301
11344
|
type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
11302
11345
|
allow?: string[];
|
|
11346
|
+
checkDuplicates?: ("name-only" | "exact-version");
|
|
11303
11347
|
}];
|
|
11304
11348
|
// ----- prefer-arrow-callback -----
|
|
11305
11349
|
type PreferArrowCallback = [] | [{
|
|
@@ -11848,6 +11892,50 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
11848
11892
|
type StyleDotLocation = [] | [("object" | "property")];
|
|
11849
11893
|
// ----- style/eol-last -----
|
|
11850
11894
|
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")];
|
|
11895
|
+
// ----- style/exp-list-style -----
|
|
11896
|
+
type StyleExpListStyle = [] | [{
|
|
11897
|
+
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
11898
|
+
multiLine?: _StyleExpListStyle_MultiLineConfig;
|
|
11899
|
+
overrides?: {
|
|
11900
|
+
"[]"?: _StyleExpListStyle_BaseConfig;
|
|
11901
|
+
"{}"?: _StyleExpListStyle_BaseConfig;
|
|
11902
|
+
"<>"?: _StyleExpListStyle_BaseConfig;
|
|
11903
|
+
"()"?: _StyleExpListStyle_BaseConfig;
|
|
11904
|
+
ArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
11905
|
+
ArrayPattern?: _StyleExpListStyle_BaseConfig;
|
|
11906
|
+
ArrowFunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
11907
|
+
CallExpression?: _StyleExpListStyle_BaseConfig;
|
|
11908
|
+
ExportNamedDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
11909
|
+
FunctionDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
11910
|
+
FunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
11911
|
+
ImportDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
11912
|
+
ImportAttributes?: _StyleExpListStyle_BaseConfig;
|
|
11913
|
+
NewExpression?: _StyleExpListStyle_BaseConfig;
|
|
11914
|
+
ObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
11915
|
+
ObjectPattern?: _StyleExpListStyle_BaseConfig;
|
|
11916
|
+
TSDeclareFunction?: _StyleExpListStyle_BaseConfig;
|
|
11917
|
+
TSFunctionType?: _StyleExpListStyle_BaseConfig;
|
|
11918
|
+
TSInterfaceBody?: _StyleExpListStyle_BaseConfig;
|
|
11919
|
+
TSEnumBody?: _StyleExpListStyle_BaseConfig;
|
|
11920
|
+
TSTupleType?: _StyleExpListStyle_BaseConfig;
|
|
11921
|
+
TSTypeLiteral?: _StyleExpListStyle_BaseConfig;
|
|
11922
|
+
TSTypeParameterDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
11923
|
+
TSTypeParameterInstantiation?: _StyleExpListStyle_BaseConfig;
|
|
11924
|
+
JSONArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
11925
|
+
JSONObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
11926
|
+
};
|
|
11927
|
+
}];
|
|
11928
|
+
interface _StyleExpListStyle_SingleLineConfig {
|
|
11929
|
+
spacing?: ("always" | "never");
|
|
11930
|
+
maxItems?: number;
|
|
11931
|
+
}
|
|
11932
|
+
interface _StyleExpListStyle_MultiLineConfig {
|
|
11933
|
+
minItems?: number;
|
|
11934
|
+
}
|
|
11935
|
+
interface _StyleExpListStyle_BaseConfig {
|
|
11936
|
+
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
11937
|
+
multiline?: _StyleExpListStyle_MultiLineConfig;
|
|
11938
|
+
}
|
|
11851
11939
|
// ----- style/function-call-argument-newline -----
|
|
11852
11940
|
type StyleFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
|
|
11853
11941
|
// ----- style/function-call-spacing -----
|
|
@@ -11917,7 +12005,11 @@ type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
11917
12005
|
ObjectExpression?: (number | ("first" | "off"));
|
|
11918
12006
|
ImportDeclaration?: (number | ("first" | "off"));
|
|
11919
12007
|
flatTernaryExpressions?: boolean;
|
|
11920
|
-
offsetTernaryExpressions?: boolean
|
|
12008
|
+
offsetTernaryExpressions?: (boolean | {
|
|
12009
|
+
CallExpression?: boolean;
|
|
12010
|
+
AwaitExpression?: boolean;
|
|
12011
|
+
NewExpression?: boolean;
|
|
12012
|
+
});
|
|
11921
12013
|
offsetTernaryExpressionsOffsetCallExpressions?: boolean;
|
|
11922
12014
|
ignoredNodes?: string[];
|
|
11923
12015
|
ignoreComments?: boolean;
|
|
@@ -12718,6 +12810,7 @@ type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never
|
|
|
12718
12810
|
TSInterfaceBody?: ("always" | "never");
|
|
12719
12811
|
TSEnumBody?: ("always" | "never");
|
|
12720
12812
|
};
|
|
12813
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
12721
12814
|
}];
|
|
12722
12815
|
// ----- style/object-property-newline -----
|
|
12723
12816
|
type StyleObjectPropertyNewline = [] | [{
|
|
@@ -14162,6 +14255,10 @@ type UnicornTemplateIndent = [] | [{
|
|
|
14162
14255
|
selectors?: string[];
|
|
14163
14256
|
comments?: string[];
|
|
14164
14257
|
}];
|
|
14258
|
+
// ----- unicorn/text-encoding-identifier-case -----
|
|
14259
|
+
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
14260
|
+
withDash?: boolean;
|
|
14261
|
+
}];
|
|
14165
14262
|
// ----- unused-imports/no-unused-imports -----
|
|
14166
14263
|
type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
|
|
14167
14264
|
args?: ("all" | "after-used" | "none");
|
|
@@ -14232,7 +14329,7 @@ type VitestNoFocusedTests = [] | [{
|
|
|
14232
14329
|
}];
|
|
14233
14330
|
// ----- vitest/no-hooks -----
|
|
14234
14331
|
type VitestNoHooks = [] | [{
|
|
14235
|
-
allow?:
|
|
14332
|
+
allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
|
|
14236
14333
|
}];
|
|
14237
14334
|
// ----- vitest/no-large-snapshots -----
|
|
14238
14335
|
type VitestNoLargeSnapshots = [] | [{
|
package/dist/index.js
CHANGED
|
@@ -1165,6 +1165,7 @@ const typescript = async ({ componentExts = [], parserOptions, overrides } = {})
|
|
|
1165
1165
|
accessibility: "explicit",
|
|
1166
1166
|
overrides: { constructors: "no-public" }
|
|
1167
1167
|
}],
|
|
1168
|
+
"ts/no-empty-object-type": ["error", { allowInterfaces: "always" }],
|
|
1168
1169
|
"no-useless-constructor": "off",
|
|
1169
1170
|
"no-invalid-this": "off",
|
|
1170
1171
|
"ts/no-invalid-this": "error",
|
|
@@ -1313,6 +1314,8 @@ const unicorn = () => [{
|
|
|
1313
1314
|
"unicorn/no-lonely-if": "error",
|
|
1314
1315
|
"unicorn/no-negated-condition": "error",
|
|
1315
1316
|
"unicorn/no-useless-spread": "error",
|
|
1317
|
+
"unicorn/no-useless-collection-argument": "error",
|
|
1318
|
+
"unicorn/no-immediate-mutation": "error",
|
|
1316
1319
|
"unicorn/require-module-specifiers": "error",
|
|
1317
1320
|
"unicorn/prefer-ternary": "error",
|
|
1318
1321
|
"unicorn/prefer-query-selector": "error",
|
|
@@ -1333,6 +1336,7 @@ const unicorn = () => [{
|
|
|
1333
1336
|
"unicorn/prefer-node-protocol": "error",
|
|
1334
1337
|
"unicorn/prefer-negative-index": "error",
|
|
1335
1338
|
"unicorn/prefer-regexp-test": "error",
|
|
1339
|
+
"unicorn/prefer-response-static-json": "error",
|
|
1336
1340
|
"unicorn/prefer-optional-catch-binding": "error",
|
|
1337
1341
|
"unicorn/prefer-object-from-entries": "error",
|
|
1338
1342
|
"unicorn/prefer-prototype-methods": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@so1ve/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.0",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Ray's eslint config.",
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
36
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
37
|
-
"@html-eslint/parser": "^0.
|
|
38
|
-
"@stylistic/eslint-plugin": "^5.
|
|
39
|
-
"@typescript-eslint/parser": "^8.
|
|
40
|
-
"@typescript-eslint/utils": "^8.
|
|
41
|
-
"@unocss/eslint-config": "^66.5.
|
|
42
|
-
"@vitest/eslint-plugin": "^1.3
|
|
36
|
+
"@html-eslint/eslint-plugin": "^0.49.0",
|
|
37
|
+
"@html-eslint/parser": "^0.49.0",
|
|
38
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
39
|
+
"@typescript-eslint/parser": "^8.47.0",
|
|
40
|
+
"@typescript-eslint/utils": "^8.47.0",
|
|
41
|
+
"@unocss/eslint-config": "^66.5.9",
|
|
42
|
+
"@vitest/eslint-plugin": "^1.4.3",
|
|
43
43
|
"astro-eslint-parser": "^1.2.2",
|
|
44
44
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
45
45
|
"eslint-flat-config-utils": "^2.1.4",
|
|
46
46
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
47
47
|
"eslint-mdx": "^3.6.2",
|
|
48
48
|
"eslint-plugin-array-func": "^5.1.0",
|
|
49
|
-
"eslint-plugin-astro": "^1.
|
|
50
|
-
"eslint-plugin-case-police": "^2.
|
|
49
|
+
"eslint-plugin-astro": "^1.5.0",
|
|
50
|
+
"eslint-plugin-case-police": "^2.1.1",
|
|
51
51
|
"eslint-plugin-html": "^8.1.3",
|
|
52
52
|
"eslint-plugin-import-x": "^4.16.1",
|
|
53
53
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
@@ -59,27 +59,27 @@
|
|
|
59
59
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
60
60
|
"eslint-plugin-only-error": "^1.0.2",
|
|
61
61
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
62
|
-
"eslint-plugin-pnpm": "^1.
|
|
62
|
+
"eslint-plugin-pnpm": "^1.3.0",
|
|
63
63
|
"eslint-plugin-promise": "^7.2.1",
|
|
64
64
|
"eslint-plugin-regexp": "^2.10.0",
|
|
65
65
|
"eslint-plugin-solid": "^0.14.5",
|
|
66
66
|
"eslint-plugin-toml": "^0.12.0",
|
|
67
|
-
"eslint-plugin-unicorn": "^
|
|
68
|
-
"eslint-plugin-unused-imports": "^4.
|
|
69
|
-
"eslint-plugin-vue": "^10.5.
|
|
67
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
68
|
+
"eslint-plugin-unused-imports": "^4.3.0",
|
|
69
|
+
"eslint-plugin-vue": "^10.5.1",
|
|
70
70
|
"eslint-plugin-yml": "^1.19.0",
|
|
71
|
-
"globals": "^16.
|
|
71
|
+
"globals": "^16.5.0",
|
|
72
72
|
"jsonc-eslint-parser": "^2.4.1",
|
|
73
73
|
"local-pkg": "^1.1.2",
|
|
74
74
|
"toml-eslint-parser": "^0.10.0",
|
|
75
|
-
"typescript-eslint": "^8.
|
|
75
|
+
"typescript-eslint": "^8.47.0",
|
|
76
76
|
"vue-eslint-parser": "^10.2.0",
|
|
77
77
|
"yaml-eslint-parser": "^1.3.0",
|
|
78
|
-
"@so1ve/eslint-plugin-sort-imports": "3.
|
|
79
|
-
"@so1ve/eslint-plugin": "3.
|
|
78
|
+
"@so1ve/eslint-plugin-sort-imports": "3.14.0",
|
|
79
|
+
"@so1ve/eslint-plugin": "3.14.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"eslint": "^9.
|
|
82
|
+
"eslint": "^9.39.1",
|
|
83
83
|
"prettier": "^3.6.2"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|