@depup/typescript-eslint__eslint-plugin 8.57.1-depup.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/LICENSE +21 -0
- package/README.md +25 -0
- package/changes.json +5 -0
- package/dist/configs/eslint-recommended-raw.d.ts +10 -0
- package/dist/configs/eslint-recommended-raw.js +46 -0
- package/dist/configs/eslintrc/all.d.ts +159 -0
- package/dist/configs/eslintrc/all.js +165 -0
- package/dist/configs/eslintrc/base.d.ts +8 -0
- package/dist/configs/eslintrc/base.js +6 -0
- package/dist/configs/eslintrc/disable-type-checked.d.ts +71 -0
- package/dist/configs/eslintrc/disable-type-checked.js +73 -0
- package/dist/configs/eslintrc/eslint-recommended.d.ts +12 -0
- package/dist/configs/eslintrc/eslint-recommended.js +13 -0
- package/dist/configs/eslintrc/recommended-type-checked-only.d.ts +33 -0
- package/dist/configs/eslintrc/recommended-type-checked-only.js +39 -0
- package/dist/configs/eslintrc/recommended-type-checked.d.ts +56 -0
- package/dist/configs/eslintrc/recommended-type-checked.js +62 -0
- package/dist/configs/eslintrc/recommended.d.ts +29 -0
- package/dist/configs/eslintrc/recommended.js +35 -0
- package/dist/configs/eslintrc/strict-type-checked-only.d.ts +64 -0
- package/dist/configs/eslintrc/strict-type-checked-only.js +79 -0
- package/dist/configs/eslintrc/strict-type-checked.d.ts +98 -0
- package/dist/configs/eslintrc/strict-type-checked.js +114 -0
- package/dist/configs/eslintrc/strict.d.ts +40 -0
- package/dist/configs/eslintrc/strict.js +47 -0
- package/dist/configs/eslintrc/stylistic-type-checked-only.d.ts +15 -0
- package/dist/configs/eslintrc/stylistic-type-checked-only.js +21 -0
- package/dist/configs/eslintrc/stylistic-type-checked.d.ts +29 -0
- package/dist/configs/eslintrc/stylistic-type-checked.js +35 -0
- package/dist/configs/eslintrc/stylistic.d.ts +20 -0
- package/dist/configs/eslintrc/stylistic.js +26 -0
- package/dist/configs/flat/all.d.ts +7 -0
- package/dist/configs/flat/all.js +179 -0
- package/dist/configs/flat/base.d.ts +8 -0
- package/dist/configs/flat/base.js +17 -0
- package/dist/configs/flat/disable-type-checked.d.ts +7 -0
- package/dist/configs/flat/disable-type-checked.js +81 -0
- package/dist/configs/flat/eslint-recommended.d.ts +9 -0
- package/dist/configs/flat/eslint-recommended.js +16 -0
- package/dist/configs/flat/recommended-type-checked-only.d.ts +7 -0
- package/dist/configs/flat/recommended-type-checked-only.js +53 -0
- package/dist/configs/flat/recommended-type-checked.d.ts +7 -0
- package/dist/configs/flat/recommended-type-checked.js +76 -0
- package/dist/configs/flat/recommended.d.ts +7 -0
- package/dist/configs/flat/recommended.js +49 -0
- package/dist/configs/flat/strict-type-checked-only.d.ts +7 -0
- package/dist/configs/flat/strict-type-checked-only.js +93 -0
- package/dist/configs/flat/strict-type-checked.d.ts +7 -0
- package/dist/configs/flat/strict-type-checked.js +128 -0
- package/dist/configs/flat/strict.d.ts +7 -0
- package/dist/configs/flat/strict.js +61 -0
- package/dist/configs/flat/stylistic-type-checked-only.d.ts +7 -0
- package/dist/configs/flat/stylistic-type-checked-only.js +35 -0
- package/dist/configs/flat/stylistic-type-checked.d.ts +7 -0
- package/dist/configs/flat/stylistic-type-checked.js +49 -0
- package/dist/configs/flat/stylistic.d.ts +7 -0
- package/dist/configs/flat/stylistic.js +40 -0
- package/dist/index.d.ts +1128 -0
- package/dist/index.js +6 -0
- package/dist/raw-plugin.d.ts +1152 -0
- package/dist/raw-plugin.js +122 -0
- package/dist/rules/adjacent-overload-signatures.d.ts +4 -0
- package/dist/rules/adjacent-overload-signatures.js +124 -0
- package/dist/rules/array-type.d.ts +12 -0
- package/dist/rules/array-type.js +232 -0
- package/dist/rules/await-thenable.d.ts +6 -0
- package/dist/rules/await-thenable.js +228 -0
- package/dist/rules/ban-ts-comment.d.ts +17 -0
- package/dist/rules/ban-ts-comment.js +195 -0
- package/dist/rules/ban-tslint-comment.d.ts +4 -0
- package/dist/rules/ban-tslint-comment.js +53 -0
- package/dist/rules/class-literal-property-style.d.ts +7 -0
- package/dist/rules/class-literal-property-style.js +160 -0
- package/dist/rules/class-methods-use-this.d.ts +13 -0
- package/dist/rules/class-methods-use-this.js +219 -0
- package/dist/rules/consistent-generic-constructors.d.ts +6 -0
- package/dist/rules/consistent-generic-constructors.js +126 -0
- package/dist/rules/consistent-indexed-object-style.d.ts +7 -0
- package/dist/rules/consistent-indexed-object-style.js +256 -0
- package/dist/rules/consistent-return.d.ts +18 -0
- package/dist/rules/consistent-return.js +135 -0
- package/dist/rules/consistent-type-assertions.d.ts +14 -0
- package/dist/rules/consistent-type-assertions.js +256 -0
- package/dist/rules/consistent-type-definitions.d.ts +5 -0
- package/dist/rules/consistent-type-definitions.js +100 -0
- package/dist/rules/consistent-type-exports.d.ts +11 -0
- package/dist/rules/consistent-type-exports.js +335 -0
- package/dist/rules/consistent-type-imports.d.ts +15 -0
- package/dist/rules/consistent-type-imports.js +608 -0
- package/dist/rules/default-param-last.d.ts +4 -0
- package/dist/rules/default-param-last.js +68 -0
- package/dist/rules/dot-notation.d.ts +23 -0
- package/dist/rules/dot-notation.js +139 -0
- package/dist/rules/enum-utils/shared.d.ts +36 -0
- package/dist/rules/enum-utils/shared.js +121 -0
- package/dist/rules/explicit-function-return-type.d.ts +17 -0
- package/dist/rules/explicit-function-return-type.js +179 -0
- package/dist/rules/explicit-member-accessibility.d.ts +19 -0
- package/dist/rules/explicit-member-accessibility.js +299 -0
- package/dist/rules/explicit-module-boundary-types.d.ts +15 -0
- package/dist/rules/explicit-module-boundary-types.js +386 -0
- package/dist/rules/index.d.ts +448 -0
- package/dist/rules/index.js +275 -0
- package/dist/rules/init-declarations.d.ts +15 -0
- package/dist/rules/init-declarations.js +105 -0
- package/dist/rules/max-params.d.ts +25 -0
- package/dist/rules/max-params.js +72 -0
- package/dist/rules/member-ordering.d.ts +33 -0
- package/dist/rules/member-ordering.js +833 -0
- package/dist/rules/method-signature-style.d.ts +6 -0
- package/dist/rules/method-signature-style.js +186 -0
- package/dist/rules/naming-convention-utils/enums.d.ts +79 -0
- package/dist/rules/naming-convention-utils/enums.js +102 -0
- package/dist/rules/naming-convention-utils/format.d.ts +2 -0
- package/dist/rules/naming-convention-utils/format.js +89 -0
- package/dist/rules/naming-convention-utils/index.d.ts +6 -0
- package/dist/rules/naming-convention-utils/index.js +11 -0
- package/dist/rules/naming-convention-utils/parse-options.d.ts +2 -0
- package/dist/rules/naming-convention-utils/parse-options.js +69 -0
- package/dist/rules/naming-convention-utils/schema.d.ts +2 -0
- package/dist/rules/naming-convention-utils/schema.js +305 -0
- package/dist/rules/naming-convention-utils/shared.d.ts +5 -0
- package/dist/rules/naming-convention-utils/shared.js +16 -0
- package/dist/rules/naming-convention-utils/types.d.ts +39 -0
- package/dist/rules/naming-convention-utils/types.js +2 -0
- package/dist/rules/naming-convention-utils/validator.d.ts +3 -0
- package/dist/rules/naming-convention-utils/validator.js +349 -0
- package/dist/rules/naming-convention.d.ts +8 -0
- package/dist/rules/naming-convention.js +505 -0
- package/dist/rules/no-array-constructor.d.ts +4 -0
- package/dist/rules/no-array-constructor.js +62 -0
- package/dist/rules/no-array-delete.d.ts +6 -0
- package/dist/rules/no-array-delete.js +80 -0
- package/dist/rules/no-base-to-string.d.ts +11 -0
- package/dist/rules/no-base-to-string.js +324 -0
- package/dist/rules/no-confusing-non-null-assertion.d.ts +6 -0
- package/dist/rules/no-confusing-non-null-assertion.js +142 -0
- package/dist/rules/no-confusing-void-expression.d.ts +13 -0
- package/dist/rules/no-confusing-void-expression.js +357 -0
- package/dist/rules/no-deprecated.d.ts +11 -0
- package/dist/rules/no-deprecated.js +402 -0
- package/dist/rules/no-dupe-class-members.d.ts +14 -0
- package/dist/rules/no-dupe-class-members.js +39 -0
- package/dist/rules/no-duplicate-enum-values.d.ts +4 -0
- package/dist/rules/no-duplicate-enum-values.js +83 -0
- package/dist/rules/no-duplicate-type-constituents.d.ts +11 -0
- package/dist/rules/no-duplicate-type-constituents.js +219 -0
- package/dist/rules/no-dynamic-delete.d.ts +4 -0
- package/dist/rules/no-dynamic-delete.js +42 -0
- package/dist/rules/no-empty-function.d.ts +16 -0
- package/dist/rules/no-empty-function.js +134 -0
- package/dist/rules/no-empty-interface.d.ts +11 -0
- package/dist/rules/no-empty-interface.js +102 -0
- package/dist/rules/no-empty-object-type.d.ts +15 -0
- package/dist/rules/no-empty-object-type.js +143 -0
- package/dist/rules/no-explicit-any.d.ts +12 -0
- package/dist/rules/no-explicit-any.js +197 -0
- package/dist/rules/no-extra-non-null-assertion.d.ts +4 -0
- package/dist/rules/no-extra-non-null-assertion.js +35 -0
- package/dist/rules/no-extraneous-class.d.ts +13 -0
- package/dist/rules/no-extraneous-class.js +120 -0
- package/dist/rules/no-floating-promises.d.ts +16 -0
- package/dist/rules/no-floating-promises.js +365 -0
- package/dist/rules/no-for-in-array.d.ts +4 -0
- package/dist/rules/no-for-in-array.js +86 -0
- package/dist/rules/no-implied-eval.d.ts +4 -0
- package/dist/rules/no-implied-eval.js +152 -0
- package/dist/rules/no-import-type-side-effects.d.ts +7 -0
- package/dist/rules/no-import-type-side-effects.js +53 -0
- package/dist/rules/no-inferrable-types.d.ts +11 -0
- package/dist/rules/no-inferrable-types.js +182 -0
- package/dist/rules/no-invalid-this.d.ts +15 -0
- package/dist/rules/no-invalid-this.js +75 -0
- package/dist/rules/no-invalid-void-type.d.ts +9 -0
- package/dist/rules/no-invalid-void-type.js +210 -0
- package/dist/rules/no-loop-func.d.ts +13 -0
- package/dist/rules/no-loop-func.js +187 -0
- package/dist/rules/no-loss-of-precision.d.ts +9 -0
- package/dist/rules/no-loss-of-precision.js +35 -0
- package/dist/rules/no-magic-numbers.d.ts +29 -0
- package/dist/rules/no-magic-numbers.js +248 -0
- package/dist/rules/no-meaningless-void-operator.d.ts +10 -0
- package/dist/rules/no-meaningless-void-operator.js +102 -0
- package/dist/rules/no-misused-new.d.ts +4 -0
- package/dist/rules/no-misused-new.js +81 -0
- package/dist/rules/no-misused-promises.d.ts +21 -0
- package/dist/rules/no-misused-promises.js +765 -0
- package/dist/rules/no-misused-spread.d.ts +12 -0
- package/dist/rules/no-misused-spread.js +260 -0
- package/dist/rules/no-mixed-enums.d.ts +4 -0
- package/dist/rules/no-mixed-enums.js +200 -0
- package/dist/rules/no-namespace.d.ts +11 -0
- package/dist/rules/no-namespace.js +60 -0
- package/dist/rules/no-non-null-asserted-nullish-coalescing.d.ts +5 -0
- package/dist/rules/no-non-null-asserted-nullish-coalescing.js +73 -0
- package/dist/rules/no-non-null-asserted-optional-chain.d.ts +5 -0
- package/dist/rules/no-non-null-asserted-optional-chain.js +65 -0
- package/dist/rules/no-non-null-assertion.d.ts +6 -0
- package/dist/rules/no-non-null-assertion.js +93 -0
- package/dist/rules/no-redeclare.d.ts +12 -0
- package/dist/rules/no-redeclare.js +199 -0
- package/dist/rules/no-redundant-type-constituents.d.ts +4 -0
- package/dist/rules/no-redundant-type-constituents.js +431 -0
- package/dist/rules/no-require-imports.d.ts +11 -0
- package/dist/rules/no-require-imports.js +115 -0
- package/dist/rules/no-restricted-imports.d.ts +9 -0
- package/dist/rules/no-restricted-imports.js +243 -0
- package/dist/rules/no-restricted-types.d.ts +16 -0
- package/dist/rules/no-restricted-types.js +165 -0
- package/dist/rules/no-shadow.d.ts +16 -0
- package/dist/rules/no-shadow.js +521 -0
- package/dist/rules/no-this-alias.d.ts +11 -0
- package/dist/rules/no-this-alias.js +66 -0
- package/dist/rules/no-type-alias.d.ts +18 -0
- package/dist/rules/no-type-alias.js +268 -0
- package/dist/rules/no-unnecessary-boolean-literal-compare.d.ts +12 -0
- package/dist/rules/no-unnecessary-boolean-literal-compare.js +263 -0
- package/dist/rules/no-unnecessary-condition.d.ts +14 -0
- package/dist/rules/no-unnecessary-condition.js +675 -0
- package/dist/rules/no-unnecessary-parameter-property-assignment.d.ts +4 -0
- package/dist/rules/no-unnecessary-parameter-property-assignment.js +148 -0
- package/dist/rules/no-unnecessary-qualifier.d.ts +4 -0
- package/dist/rules/no-unnecessary-qualifier.js +156 -0
- package/dist/rules/no-unnecessary-template-expression.d.ts +6 -0
- package/dist/rules/no-unnecessary-template-expression.js +361 -0
- package/dist/rules/no-unnecessary-type-arguments.d.ts +5 -0
- package/dist/rules/no-unnecessary-type-arguments.js +197 -0
- package/dist/rules/no-unnecessary-type-assertion.d.ts +11 -0
- package/dist/rules/no-unnecessary-type-assertion.js +353 -0
- package/dist/rules/no-unnecessary-type-constraint.d.ts +5 -0
- package/dist/rules/no-unnecessary-type-constraint.js +119 -0
- package/dist/rules/no-unnecessary-type-conversion.d.ts +5 -0
- package/dist/rules/no-unnecessary-type-conversion.js +356 -0
- package/dist/rules/no-unnecessary-type-parameters.d.ts +5 -0
- package/dist/rules/no-unnecessary-type-parameters.js +422 -0
- package/dist/rules/no-unsafe-argument.d.ts +5 -0
- package/dist/rules/no-unsafe-argument.js +272 -0
- package/dist/rules/no-unsafe-assignment.d.ts +4 -0
- package/dist/rules/no-unsafe-assignment.js +322 -0
- package/dist/rules/no-unsafe-call.d.ts +5 -0
- package/dist/rules/no-unsafe-call.js +136 -0
- package/dist/rules/no-unsafe-declaration-merging.d.ts +4 -0
- package/dist/rules/no-unsafe-declaration-merging.js +54 -0
- package/dist/rules/no-unsafe-enum-comparison.d.ts +5 -0
- package/dist/rules/no-unsafe-enum-comparison.js +192 -0
- package/dist/rules/no-unsafe-function-type.d.ts +4 -0
- package/dist/rules/no-unsafe-function-type.js +45 -0
- package/dist/rules/no-unsafe-member-access.d.ts +10 -0
- package/dist/rules/no-unsafe-member-access.js +183 -0
- package/dist/rules/no-unsafe-return.d.ts +4 -0
- package/dist/rules/no-unsafe-return.js +183 -0
- package/dist/rules/no-unsafe-type-assertion.d.ts +4 -0
- package/dist/rules/no-unsafe-type-assertion.js +158 -0
- package/dist/rules/no-unsafe-unary-minus.d.ts +6 -0
- package/dist/rules/no-unsafe-unary-minus.js +78 -0
- package/dist/rules/no-unused-expressions.d.ts +19 -0
- package/dist/rules/no-unused-expressions.js +64 -0
- package/dist/rules/no-unused-private-class-members.d.ts +6 -0
- package/dist/rules/no-unused-private-class-members.js +44 -0
- package/dist/rules/no-unused-vars.d.ts +24 -0
- package/dist/rules/no-unused-vars.js +1033 -0
- package/dist/rules/no-use-before-define.d.ts +16 -0
- package/dist/rules/no-use-before-define.js +303 -0
- package/dist/rules/no-useless-constructor.d.ts +11 -0
- package/dist/rules/no-useless-constructor.js +57 -0
- package/dist/rules/no-useless-default-assignment.d.ts +11 -0
- package/dist/rules/no-useless-default-assignment.js +318 -0
- package/dist/rules/no-useless-empty-export.d.ts +4 -0
- package/dist/rules/no-useless-empty-export.js +70 -0
- package/dist/rules/no-var-requires.d.ts +10 -0
- package/dist/rules/no-var-requires.js +83 -0
- package/dist/rules/no-wrapper-object-types.d.ts +5 -0
- package/dist/rules/no-wrapper-object-types.js +60 -0
- package/dist/rules/non-nullable-type-assertion-style.d.ts +4 -0
- package/dist/rules/non-nullable-type-assertion-style.js +132 -0
- package/dist/rules/only-throw-error.d.ts +14 -0
- package/dist/rules/only-throw-error.js +158 -0
- package/dist/rules/parameter-properties.d.ts +13 -0
- package/dist/rules/parameter-properties.js +164 -0
- package/dist/rules/prefer-as-const.d.ts +5 -0
- package/dist/rules/prefer-as-const.js +72 -0
- package/dist/rules/prefer-destructuring.d.ts +19 -0
- package/dist/rules/prefer-destructuring.js +216 -0
- package/dist/rules/prefer-enum-initializers.d.ts +6 -0
- package/dist/rules/prefer-enum-initializers.js +62 -0
- package/dist/rules/prefer-find.d.ts +5 -0
- package/dist/rules/prefer-find.js +247 -0
- package/dist/rules/prefer-for-of.d.ts +5 -0
- package/dist/rules/prefer-for-of.js +115 -0
- package/dist/rules/prefer-function-type.d.ts +9 -0
- package/dist/rules/prefer-function-type.js +186 -0
- package/dist/rules/prefer-includes.d.ts +5 -0
- package/dist/rules/prefer-includes.js +242 -0
- package/dist/rules/prefer-literal-enum-member.d.ts +6 -0
- package/dist/rules/prefer-literal-enum-member.js +116 -0
- package/dist/rules/prefer-namespace-keyword.d.ts +4 -0
- package/dist/rules/prefer-namespace-keyword.js +42 -0
- package/dist/rules/prefer-nullish-coalescing.d.ts +22 -0
- package/dist/rules/prefer-nullish-coalescing.js +647 -0
- package/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.d.ts +11 -0
- package/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js +2 -0
- package/dist/rules/prefer-optional-chain-utils/analyzeChain.d.ts +7 -0
- package/dist/rules/prefer-optional-chain-utils/analyzeChain.js +569 -0
- package/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.d.ts +6 -0
- package/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js +45 -0
- package/dist/rules/prefer-optional-chain-utils/compareNodes.d.ts +15 -0
- package/dist/rules/prefer-optional-chain-utils/compareNodes.js +326 -0
- package/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.d.ts +61 -0
- package/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js +411 -0
- package/dist/rules/prefer-optional-chain.d.ts +5 -0
- package/dist/rules/prefer-optional-chain.js +150 -0
- package/dist/rules/prefer-promise-reject-errors.d.ts +14 -0
- package/dist/rules/prefer-promise-reject-errors.js +124 -0
- package/dist/rules/prefer-readonly-parameter-types.d.ts +14 -0
- package/dist/rules/prefer-readonly-parameter-types.js +89 -0
- package/dist/rules/prefer-readonly.d.ts +10 -0
- package/dist/rules/prefer-readonly.js +439 -0
- package/dist/rules/prefer-reduce-type-parameter.d.ts +4 -0
- package/dist/rules/prefer-reduce-type-parameter.js +114 -0
- package/dist/rules/prefer-regexp-exec.d.ts +4 -0
- package/dist/rules/prefer-regexp-exec.js +178 -0
- package/dist/rules/prefer-return-this-type.d.ts +4 -0
- package/dist/rules/prefer-return-this-type.js +154 -0
- package/dist/rules/prefer-string-starts-ends-with.d.ts +12 -0
- package/dist/rules/prefer-string-starts-ends-with.js +512 -0
- package/dist/rules/prefer-ts-expect-error.d.ts +5 -0
- package/dist/rules/prefer-ts-expect-error.js +71 -0
- package/dist/rules/promise-function-async.d.ts +15 -0
- package/dist/rules/promise-function-async.js +204 -0
- package/dist/rules/related-getter-setter-pairs.d.ts +4 -0
- package/dist/rules/related-getter-setter-pairs.js +71 -0
- package/dist/rules/require-array-sort-compare.d.ts +10 -0
- package/dist/rules/require-array-sort-compare.js +63 -0
- package/dist/rules/require-await.d.ts +4 -0
- package/dist/rules/require-await.js +263 -0
- package/dist/rules/restrict-plus-operands.d.ts +15 -0
- package/dist/rules/restrict-plus-operands.js +231 -0
- package/dist/rules/restrict-template-expressions.d.ts +19 -0
- package/dist/rules/restrict-template-expressions.js +119 -0
- package/dist/rules/return-await.d.ts +5 -0
- package/dist/rules/return-await.js +363 -0
- package/dist/rules/sort-type-constituents.d.ts +14 -0
- package/dist/rules/sort-type-constituents.js +272 -0
- package/dist/rules/strict-boolean-expressions.d.ts +19 -0
- package/dist/rules/strict-boolean-expressions.js +882 -0
- package/dist/rules/strict-void-return.d.ts +10 -0
- package/dist/rules/strict-void-return.js +374 -0
- package/dist/rules/switch-exhaustiveness-check.d.ts +33 -0
- package/dist/rules/switch-exhaustiveness-check.js +291 -0
- package/dist/rules/triple-slash-reference.d.ts +12 -0
- package/dist/rules/triple-slash-reference.js +110 -0
- package/dist/rules/typedef.d.ts +16 -0
- package/dist/rules/typedef.js +239 -0
- package/dist/rules/unbound-method.d.ts +9 -0
- package/dist/rules/unbound-method.js +334 -0
- package/dist/rules/unified-signatures.d.ts +11 -0
- package/dist/rules/unified-signatures.js +465 -0
- package/dist/rules/use-unknown-in-catch-callback-variable.d.ts +6 -0
- package/dist/rules/use-unknown-in-catch-callback-variable.js +261 -0
- package/dist/util/assertionFunctionUtils.d.ts +16 -0
- package/dist/util/assertionFunctionUtils.js +116 -0
- package/dist/util/astUtils.d.ts +17 -0
- package/dist/util/astUtils.js +143 -0
- package/dist/util/baseTypeUtils.d.ts +13 -0
- package/dist/util/baseTypeUtils.js +75 -0
- package/dist/util/class-scope-analyzer/classScopeAnalyzer.d.ts +52 -0
- package/dist/util/class-scope-analyzer/classScopeAnalyzer.js +566 -0
- package/dist/util/class-scope-analyzer/extractComputedName.d.ts +17 -0
- package/dist/util/class-scope-analyzer/extractComputedName.js +70 -0
- package/dist/util/class-scope-analyzer/types.d.ts +12 -0
- package/dist/util/class-scope-analyzer/types.js +10 -0
- package/dist/util/collectUnusedVariables.d.ts +15 -0
- package/dist/util/collectUnusedVariables.js +598 -0
- package/dist/util/createRule.d.ts +5 -0
- package/dist/util/createRule.js +5 -0
- package/dist/util/escapeRegExp.d.ts +1 -0
- package/dist/util/escapeRegExp.js +14 -0
- package/dist/util/explicitReturnTypeUtils.d.ts +47 -0
- package/dist/util/explicitReturnTypeUtils.js +238 -0
- package/dist/util/getBaseTypesOfClassMember.d.ts +11 -0
- package/dist/util/getBaseTypesOfClassMember.js +31 -0
- package/dist/util/getConstraintInfo.d.ts +35 -0
- package/dist/util/getConstraintInfo.js +70 -0
- package/dist/util/getESLintCoreRule.d.ts +27 -0
- package/dist/util/getESLintCoreRule.js +16 -0
- package/dist/util/getFixOrSuggest.d.ts +9 -0
- package/dist/util/getFixOrSuggest.js +13 -0
- package/dist/util/getForStatementHeadLoc.d.ts +17 -0
- package/dist/util/getForStatementHeadLoc.js +26 -0
- package/dist/util/getFunctionHeadLoc.d.ts +101 -0
- package/dist/util/getFunctionHeadLoc.js +161 -0
- package/dist/util/getMemberHeadLoc.d.ts +36 -0
- package/dist/util/getMemberHeadLoc.js +79 -0
- package/dist/util/getOperatorPrecedence.d.ts +39 -0
- package/dist/util/getOperatorPrecedence.js +421 -0
- package/dist/util/getParentFunctionNode.d.ts +2 -0
- package/dist/util/getParentFunctionNode.js +18 -0
- package/dist/util/getStaticStringValue.d.ts +11 -0
- package/dist/util/getStaticStringValue.js +44 -0
- package/dist/util/getStringLength.d.ts +1 -0
- package/dist/util/getStringLength.js +14 -0
- package/dist/util/getTextWithParentheses.d.ts +3 -0
- package/dist/util/getTextWithParentheses.js +16 -0
- package/dist/util/getThisExpression.d.ts +2 -0
- package/dist/util/getThisExpression.js +24 -0
- package/dist/util/getValueOfLiteralType.d.ts +2 -0
- package/dist/util/getValueOfLiteralType.js +16 -0
- package/dist/util/getWrappedCode.d.ts +2 -0
- package/dist/util/getWrappedCode.js +6 -0
- package/dist/util/getWrappingFixer.d.ts +42 -0
- package/dist/util/getWrappingFixer.js +184 -0
- package/dist/util/hasOverloadSignatures.d.ts +6 -0
- package/dist/util/hasOverloadSignatures.js +47 -0
- package/dist/util/index.d.ts +40 -0
- package/dist/util/index.js +53 -0
- package/dist/util/isArrayMethodCallWithPredicate.d.ts +3 -0
- package/dist/util/isArrayMethodCallWithPredicate.js +64 -0
- package/dist/util/isAssignee.d.ts +2 -0
- package/dist/util/isAssignee.js +50 -0
- package/dist/util/isHigherPrecedenceThanAwait.d.ts +2 -0
- package/dist/util/isHigherPrecedenceThanAwait.js +46 -0
- package/dist/util/isNodeEqual.d.ts +2 -0
- package/dist/util/isNodeEqual.js +25 -0
- package/dist/util/isNullLiteral.d.ts +2 -0
- package/dist/util/isNullLiteral.js +7 -0
- package/dist/util/isPromiseAggregatorMethod.d.ts +3 -0
- package/dist/util/isPromiseAggregatorMethod.js +22 -0
- package/dist/util/isStartOfExpressionStatement.d.ts +7 -0
- package/dist/util/isStartOfExpressionStatement.js +22 -0
- package/dist/util/isTypeImport.d.ts +12 -0
- package/dist/util/isTypeImport.js +21 -0
- package/dist/util/isUndefinedIdentifier.d.ts +2 -0
- package/dist/util/isUndefinedIdentifier.js +7 -0
- package/dist/util/misc.d.ts +115 -0
- package/dist/util/misc.js +270 -0
- package/dist/util/needsPrecedingSemiColon.d.ts +11 -0
- package/dist/util/needsPrecedingSemiColon.js +97 -0
- package/dist/util/needsToBeAwaited.d.ts +7 -0
- package/dist/util/needsToBeAwaited.js +63 -0
- package/dist/util/objectIterators.d.ts +3 -0
- package/dist/util/objectIterators.js +25 -0
- package/dist/util/promiseUtils.d.ts +27 -0
- package/dist/util/promiseUtils.js +98 -0
- package/dist/util/rangeToLoc.d.ts +2 -0
- package/dist/util/rangeToLoc.js +9 -0
- package/dist/util/referenceContainsTypeQuery.d.ts +5 -0
- package/dist/util/referenceContainsTypeQuery.js +19 -0
- package/dist/util/scopeUtils.d.ts +3 -0
- package/dist/util/scopeUtils.js +10 -0
- package/dist/util/skipChainExpression.d.ts +2 -0
- package/dist/util/skipChainExpression.js +7 -0
- package/dist/util/truthinessUtils.d.ts +3 -0
- package/dist/util/truthinessUtils.js +60 -0
- package/dist/util/types.d.ts +2 -0
- package/dist/util/types.js +2 -0
- package/dist/util/walkStatements.d.ts +7 -0
- package/dist/util/walkStatements.js +56 -0
- package/index.d.ts +13 -0
- package/package.json +137 -0
- package/raw-plugin.d.ts +25 -0
- package/rules.d.ts +87 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS CODE WAS AUTOMATICALLY GENERATED
|
|
3
|
+
// DO NOT EDIT THIS CODE BY HAND
|
|
4
|
+
// SEE https://typescript-eslint.io/users/configs
|
|
5
|
+
//
|
|
6
|
+
// For developers working in the typescript-eslint monorepo:
|
|
7
|
+
// You can regenerate it using `pnpm run generate-configs`
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const base_1 = __importDefault(require("./base"));
|
|
13
|
+
const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
|
|
14
|
+
/**
|
|
15
|
+
* A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules.
|
|
16
|
+
* @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only}
|
|
17
|
+
*/
|
|
18
|
+
exports.default = (plugin, parser) => [
|
|
19
|
+
(0, base_1.default)(plugin, parser),
|
|
20
|
+
(0, eslint_recommended_1.default)(plugin, parser),
|
|
21
|
+
{
|
|
22
|
+
name: 'typescript-eslint/recommended-type-checked-only',
|
|
23
|
+
rules: {
|
|
24
|
+
'@typescript-eslint/await-thenable': 'error',
|
|
25
|
+
'@typescript-eslint/no-array-delete': 'error',
|
|
26
|
+
'@typescript-eslint/no-base-to-string': 'error',
|
|
27
|
+
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
|
28
|
+
'@typescript-eslint/no-floating-promises': 'error',
|
|
29
|
+
'@typescript-eslint/no-for-in-array': 'error',
|
|
30
|
+
'no-implied-eval': 'off',
|
|
31
|
+
'@typescript-eslint/no-implied-eval': 'error',
|
|
32
|
+
'@typescript-eslint/no-misused-promises': 'error',
|
|
33
|
+
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
|
34
|
+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
35
|
+
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
36
|
+
'@typescript-eslint/no-unsafe-assignment': 'error',
|
|
37
|
+
'@typescript-eslint/no-unsafe-call': 'error',
|
|
38
|
+
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
|
|
39
|
+
'@typescript-eslint/no-unsafe-member-access': 'error',
|
|
40
|
+
'@typescript-eslint/no-unsafe-return': 'error',
|
|
41
|
+
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
|
42
|
+
'no-throw-literal': 'off',
|
|
43
|
+
'@typescript-eslint/only-throw-error': 'error',
|
|
44
|
+
'prefer-promise-reject-errors': 'off',
|
|
45
|
+
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
|
46
|
+
'require-await': 'off',
|
|
47
|
+
'@typescript-eslint/require-await': 'error',
|
|
48
|
+
'@typescript-eslint/restrict-plus-operands': 'error',
|
|
49
|
+
'@typescript-eslint/restrict-template-expressions': 'error',
|
|
50
|
+
'@typescript-eslint/unbound-method': 'error',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
/**
|
|
3
|
+
* Contains all of `recommended` along with additional recommended rules that require type information.
|
|
4
|
+
* @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked}
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS CODE WAS AUTOMATICALLY GENERATED
|
|
3
|
+
// DO NOT EDIT THIS CODE BY HAND
|
|
4
|
+
// SEE https://typescript-eslint.io/users/configs
|
|
5
|
+
//
|
|
6
|
+
// For developers working in the typescript-eslint monorepo:
|
|
7
|
+
// You can regenerate it using `pnpm run generate-configs`
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const base_1 = __importDefault(require("./base"));
|
|
13
|
+
const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
|
|
14
|
+
/**
|
|
15
|
+
* Contains all of `recommended` along with additional recommended rules that require type information.
|
|
16
|
+
* @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked}
|
|
17
|
+
*/
|
|
18
|
+
exports.default = (plugin, parser) => [
|
|
19
|
+
(0, base_1.default)(plugin, parser),
|
|
20
|
+
(0, eslint_recommended_1.default)(plugin, parser),
|
|
21
|
+
{
|
|
22
|
+
name: 'typescript-eslint/recommended-type-checked',
|
|
23
|
+
rules: {
|
|
24
|
+
'@typescript-eslint/await-thenable': 'error',
|
|
25
|
+
'@typescript-eslint/ban-ts-comment': 'error',
|
|
26
|
+
'no-array-constructor': 'off',
|
|
27
|
+
'@typescript-eslint/no-array-constructor': 'error',
|
|
28
|
+
'@typescript-eslint/no-array-delete': 'error',
|
|
29
|
+
'@typescript-eslint/no-base-to-string': 'error',
|
|
30
|
+
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
|
31
|
+
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
|
32
|
+
'@typescript-eslint/no-empty-object-type': 'error',
|
|
33
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
34
|
+
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
35
|
+
'@typescript-eslint/no-floating-promises': 'error',
|
|
36
|
+
'@typescript-eslint/no-for-in-array': 'error',
|
|
37
|
+
'no-implied-eval': 'off',
|
|
38
|
+
'@typescript-eslint/no-implied-eval': 'error',
|
|
39
|
+
'@typescript-eslint/no-misused-new': 'error',
|
|
40
|
+
'@typescript-eslint/no-misused-promises': 'error',
|
|
41
|
+
'@typescript-eslint/no-namespace': 'error',
|
|
42
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
43
|
+
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
|
44
|
+
'@typescript-eslint/no-require-imports': 'error',
|
|
45
|
+
'@typescript-eslint/no-this-alias': 'error',
|
|
46
|
+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
47
|
+
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
48
|
+
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
49
|
+
'@typescript-eslint/no-unsafe-assignment': 'error',
|
|
50
|
+
'@typescript-eslint/no-unsafe-call': 'error',
|
|
51
|
+
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
|
52
|
+
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
|
|
53
|
+
'@typescript-eslint/no-unsafe-function-type': 'error',
|
|
54
|
+
'@typescript-eslint/no-unsafe-member-access': 'error',
|
|
55
|
+
'@typescript-eslint/no-unsafe-return': 'error',
|
|
56
|
+
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
|
57
|
+
'no-unused-expressions': 'off',
|
|
58
|
+
'@typescript-eslint/no-unused-expressions': 'error',
|
|
59
|
+
'no-unused-vars': 'off',
|
|
60
|
+
'@typescript-eslint/no-unused-vars': 'error',
|
|
61
|
+
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
62
|
+
'no-throw-literal': 'off',
|
|
63
|
+
'@typescript-eslint/only-throw-error': 'error',
|
|
64
|
+
'@typescript-eslint/prefer-as-const': 'error',
|
|
65
|
+
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
66
|
+
'prefer-promise-reject-errors': 'off',
|
|
67
|
+
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
|
68
|
+
'require-await': 'off',
|
|
69
|
+
'@typescript-eslint/require-await': 'error',
|
|
70
|
+
'@typescript-eslint/restrict-plus-operands': 'error',
|
|
71
|
+
'@typescript-eslint/restrict-template-expressions': 'error',
|
|
72
|
+
'@typescript-eslint/triple-slash-reference': 'error',
|
|
73
|
+
'@typescript-eslint/unbound-method': 'error',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
/**
|
|
3
|
+
* Recommended rules for code correctness that you can drop in without additional configuration.
|
|
4
|
+
* @see {@link https://typescript-eslint.io/users/configs#recommended}
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS CODE WAS AUTOMATICALLY GENERATED
|
|
3
|
+
// DO NOT EDIT THIS CODE BY HAND
|
|
4
|
+
// SEE https://typescript-eslint.io/users/configs
|
|
5
|
+
//
|
|
6
|
+
// For developers working in the typescript-eslint monorepo:
|
|
7
|
+
// You can regenerate it using `pnpm run generate-configs`
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const base_1 = __importDefault(require("./base"));
|
|
13
|
+
const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
|
|
14
|
+
/**
|
|
15
|
+
* Recommended rules for code correctness that you can drop in without additional configuration.
|
|
16
|
+
* @see {@link https://typescript-eslint.io/users/configs#recommended}
|
|
17
|
+
*/
|
|
18
|
+
exports.default = (plugin, parser) => [
|
|
19
|
+
(0, base_1.default)(plugin, parser),
|
|
20
|
+
(0, eslint_recommended_1.default)(plugin, parser),
|
|
21
|
+
{
|
|
22
|
+
name: 'typescript-eslint/recommended',
|
|
23
|
+
rules: {
|
|
24
|
+
'@typescript-eslint/ban-ts-comment': 'error',
|
|
25
|
+
'no-array-constructor': 'off',
|
|
26
|
+
'@typescript-eslint/no-array-constructor': 'error',
|
|
27
|
+
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
|
28
|
+
'@typescript-eslint/no-empty-object-type': 'error',
|
|
29
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
30
|
+
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
31
|
+
'@typescript-eslint/no-misused-new': 'error',
|
|
32
|
+
'@typescript-eslint/no-namespace': 'error',
|
|
33
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
34
|
+
'@typescript-eslint/no-require-imports': 'error',
|
|
35
|
+
'@typescript-eslint/no-this-alias': 'error',
|
|
36
|
+
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
37
|
+
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
|
38
|
+
'@typescript-eslint/no-unsafe-function-type': 'error',
|
|
39
|
+
'no-unused-expressions': 'off',
|
|
40
|
+
'@typescript-eslint/no-unused-expressions': 'error',
|
|
41
|
+
'no-unused-vars': 'off',
|
|
42
|
+
'@typescript-eslint/no-unused-vars': 'error',
|
|
43
|
+
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
44
|
+
'@typescript-eslint/prefer-as-const': 'error',
|
|
45
|
+
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
46
|
+
'@typescript-eslint/triple-slash-reference': 'error',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
/**
|
|
3
|
+
* A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules.
|
|
4
|
+
* @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only}
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS CODE WAS AUTOMATICALLY GENERATED
|
|
3
|
+
// DO NOT EDIT THIS CODE BY HAND
|
|
4
|
+
// SEE https://typescript-eslint.io/users/configs
|
|
5
|
+
//
|
|
6
|
+
// For developers working in the typescript-eslint monorepo:
|
|
7
|
+
// You can regenerate it using `pnpm run generate-configs`
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const base_1 = __importDefault(require("./base"));
|
|
13
|
+
const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
|
|
14
|
+
/**
|
|
15
|
+
* A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules.
|
|
16
|
+
* @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only}
|
|
17
|
+
*/
|
|
18
|
+
exports.default = (plugin, parser) => [
|
|
19
|
+
(0, base_1.default)(plugin, parser),
|
|
20
|
+
(0, eslint_recommended_1.default)(plugin, parser),
|
|
21
|
+
{
|
|
22
|
+
name: 'typescript-eslint/strict-type-checked-only',
|
|
23
|
+
rules: {
|
|
24
|
+
'@typescript-eslint/await-thenable': 'error',
|
|
25
|
+
'@typescript-eslint/no-array-delete': 'error',
|
|
26
|
+
'@typescript-eslint/no-base-to-string': 'error',
|
|
27
|
+
'@typescript-eslint/no-confusing-void-expression': 'error',
|
|
28
|
+
'@typescript-eslint/no-deprecated': 'error',
|
|
29
|
+
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
|
30
|
+
'@typescript-eslint/no-floating-promises': 'error',
|
|
31
|
+
'@typescript-eslint/no-for-in-array': 'error',
|
|
32
|
+
'no-implied-eval': 'off',
|
|
33
|
+
'@typescript-eslint/no-implied-eval': 'error',
|
|
34
|
+
'@typescript-eslint/no-meaningless-void-operator': 'error',
|
|
35
|
+
'@typescript-eslint/no-misused-promises': 'error',
|
|
36
|
+
'@typescript-eslint/no-misused-spread': 'error',
|
|
37
|
+
'@typescript-eslint/no-mixed-enums': 'error',
|
|
38
|
+
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
|
39
|
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
|
40
|
+
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
41
|
+
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
|
42
|
+
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
|
43
|
+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
44
|
+
'@typescript-eslint/no-unnecessary-type-conversion': 'error',
|
|
45
|
+
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
|
46
|
+
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
47
|
+
'@typescript-eslint/no-unsafe-assignment': 'error',
|
|
48
|
+
'@typescript-eslint/no-unsafe-call': 'error',
|
|
49
|
+
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
|
|
50
|
+
'@typescript-eslint/no-unsafe-member-access': 'error',
|
|
51
|
+
'@typescript-eslint/no-unsafe-return': 'error',
|
|
52
|
+
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
|
53
|
+
'@typescript-eslint/no-useless-default-assignment': 'error',
|
|
54
|
+
'no-throw-literal': 'off',
|
|
55
|
+
'@typescript-eslint/only-throw-error': 'error',
|
|
56
|
+
'prefer-promise-reject-errors': 'off',
|
|
57
|
+
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
|
58
|
+
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
|
59
|
+
'@typescript-eslint/prefer-return-this-type': 'error',
|
|
60
|
+
'@typescript-eslint/related-getter-setter-pairs': 'error',
|
|
61
|
+
'require-await': 'off',
|
|
62
|
+
'@typescript-eslint/require-await': 'error',
|
|
63
|
+
'@typescript-eslint/restrict-plus-operands': [
|
|
64
|
+
'error',
|
|
65
|
+
{
|
|
66
|
+
allowAny: false,
|
|
67
|
+
allowBoolean: false,
|
|
68
|
+
allowNullish: false,
|
|
69
|
+
allowNumberAndString: false,
|
|
70
|
+
allowRegExp: false,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
'@typescript-eslint/restrict-template-expressions': [
|
|
74
|
+
'error',
|
|
75
|
+
{
|
|
76
|
+
allowAny: false,
|
|
77
|
+
allowBoolean: false,
|
|
78
|
+
allowNever: false,
|
|
79
|
+
allowNullish: false,
|
|
80
|
+
allowNumber: false,
|
|
81
|
+
allowRegExp: false,
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
'no-return-await': 'off',
|
|
85
|
+
'@typescript-eslint/return-await': [
|
|
86
|
+
'error',
|
|
87
|
+
'error-handling-correctness-only',
|
|
88
|
+
],
|
|
89
|
+
'@typescript-eslint/unbound-method': 'error',
|
|
90
|
+
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
/**
|
|
3
|
+
* Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information.
|
|
4
|
+
* @see {@link https://typescript-eslint.io/users/configs#strict-type-checked}
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS CODE WAS AUTOMATICALLY GENERATED
|
|
3
|
+
// DO NOT EDIT THIS CODE BY HAND
|
|
4
|
+
// SEE https://typescript-eslint.io/users/configs
|
|
5
|
+
//
|
|
6
|
+
// For developers working in the typescript-eslint monorepo:
|
|
7
|
+
// You can regenerate it using `pnpm run generate-configs`
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const base_1 = __importDefault(require("./base"));
|
|
13
|
+
const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
|
|
14
|
+
/**
|
|
15
|
+
* Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information.
|
|
16
|
+
* @see {@link https://typescript-eslint.io/users/configs#strict-type-checked}
|
|
17
|
+
*/
|
|
18
|
+
exports.default = (plugin, parser) => [
|
|
19
|
+
(0, base_1.default)(plugin, parser),
|
|
20
|
+
(0, eslint_recommended_1.default)(plugin, parser),
|
|
21
|
+
{
|
|
22
|
+
name: 'typescript-eslint/strict-type-checked',
|
|
23
|
+
rules: {
|
|
24
|
+
'@typescript-eslint/await-thenable': 'error',
|
|
25
|
+
'@typescript-eslint/ban-ts-comment': [
|
|
26
|
+
'error',
|
|
27
|
+
{ minimumDescriptionLength: 10 },
|
|
28
|
+
],
|
|
29
|
+
'no-array-constructor': 'off',
|
|
30
|
+
'@typescript-eslint/no-array-constructor': 'error',
|
|
31
|
+
'@typescript-eslint/no-array-delete': 'error',
|
|
32
|
+
'@typescript-eslint/no-base-to-string': 'error',
|
|
33
|
+
'@typescript-eslint/no-confusing-void-expression': 'error',
|
|
34
|
+
'@typescript-eslint/no-deprecated': 'error',
|
|
35
|
+
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
|
36
|
+
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
|
37
|
+
'@typescript-eslint/no-dynamic-delete': 'error',
|
|
38
|
+
'@typescript-eslint/no-empty-object-type': 'error',
|
|
39
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
40
|
+
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
41
|
+
'@typescript-eslint/no-extraneous-class': 'error',
|
|
42
|
+
'@typescript-eslint/no-floating-promises': 'error',
|
|
43
|
+
'@typescript-eslint/no-for-in-array': 'error',
|
|
44
|
+
'no-implied-eval': 'off',
|
|
45
|
+
'@typescript-eslint/no-implied-eval': 'error',
|
|
46
|
+
'@typescript-eslint/no-invalid-void-type': 'error',
|
|
47
|
+
'@typescript-eslint/no-meaningless-void-operator': 'error',
|
|
48
|
+
'@typescript-eslint/no-misused-new': 'error',
|
|
49
|
+
'@typescript-eslint/no-misused-promises': 'error',
|
|
50
|
+
'@typescript-eslint/no-misused-spread': 'error',
|
|
51
|
+
'@typescript-eslint/no-mixed-enums': 'error',
|
|
52
|
+
'@typescript-eslint/no-namespace': 'error',
|
|
53
|
+
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
|
54
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
55
|
+
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
56
|
+
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
|
57
|
+
'@typescript-eslint/no-require-imports': 'error',
|
|
58
|
+
'@typescript-eslint/no-this-alias': 'error',
|
|
59
|
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
|
60
|
+
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
61
|
+
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
|
62
|
+
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
|
63
|
+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
64
|
+
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
65
|
+
'@typescript-eslint/no-unnecessary-type-conversion': 'error',
|
|
66
|
+
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
|
67
|
+
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
68
|
+
'@typescript-eslint/no-unsafe-assignment': 'error',
|
|
69
|
+
'@typescript-eslint/no-unsafe-call': 'error',
|
|
70
|
+
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
|
71
|
+
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
|
|
72
|
+
'@typescript-eslint/no-unsafe-function-type': 'error',
|
|
73
|
+
'@typescript-eslint/no-unsafe-member-access': 'error',
|
|
74
|
+
'@typescript-eslint/no-unsafe-return': 'error',
|
|
75
|
+
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
|
76
|
+
'no-unused-expressions': 'off',
|
|
77
|
+
'@typescript-eslint/no-unused-expressions': 'error',
|
|
78
|
+
'no-unused-vars': 'off',
|
|
79
|
+
'@typescript-eslint/no-unused-vars': 'error',
|
|
80
|
+
'no-useless-constructor': 'off',
|
|
81
|
+
'@typescript-eslint/no-useless-constructor': 'error',
|
|
82
|
+
'@typescript-eslint/no-useless-default-assignment': 'error',
|
|
83
|
+
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
84
|
+
'no-throw-literal': 'off',
|
|
85
|
+
'@typescript-eslint/only-throw-error': 'error',
|
|
86
|
+
'@typescript-eslint/prefer-as-const': 'error',
|
|
87
|
+
'@typescript-eslint/prefer-literal-enum-member': 'error',
|
|
88
|
+
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
89
|
+
'prefer-promise-reject-errors': 'off',
|
|
90
|
+
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
|
91
|
+
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
|
92
|
+
'@typescript-eslint/prefer-return-this-type': 'error',
|
|
93
|
+
'@typescript-eslint/related-getter-setter-pairs': 'error',
|
|
94
|
+
'require-await': 'off',
|
|
95
|
+
'@typescript-eslint/require-await': 'error',
|
|
96
|
+
'@typescript-eslint/restrict-plus-operands': [
|
|
97
|
+
'error',
|
|
98
|
+
{
|
|
99
|
+
allowAny: false,
|
|
100
|
+
allowBoolean: false,
|
|
101
|
+
allowNullish: false,
|
|
102
|
+
allowNumberAndString: false,
|
|
103
|
+
allowRegExp: false,
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
'@typescript-eslint/restrict-template-expressions': [
|
|
107
|
+
'error',
|
|
108
|
+
{
|
|
109
|
+
allowAny: false,
|
|
110
|
+
allowBoolean: false,
|
|
111
|
+
allowNever: false,
|
|
112
|
+
allowNullish: false,
|
|
113
|
+
allowNumber: false,
|
|
114
|
+
allowRegExp: false,
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
'no-return-await': 'off',
|
|
118
|
+
'@typescript-eslint/return-await': [
|
|
119
|
+
'error',
|
|
120
|
+
'error-handling-correctness-only',
|
|
121
|
+
],
|
|
122
|
+
'@typescript-eslint/triple-slash-reference': 'error',
|
|
123
|
+
'@typescript-eslint/unbound-method': 'error',
|
|
124
|
+
'@typescript-eslint/unified-signatures': 'error',
|
|
125
|
+
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
/**
|
|
3
|
+
* Contains all of `recommended`, as well as additional strict rules that can also catch bugs.
|
|
4
|
+
* @see {@link https://typescript-eslint.io/users/configs#strict}
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS CODE WAS AUTOMATICALLY GENERATED
|
|
3
|
+
// DO NOT EDIT THIS CODE BY HAND
|
|
4
|
+
// SEE https://typescript-eslint.io/users/configs
|
|
5
|
+
//
|
|
6
|
+
// For developers working in the typescript-eslint monorepo:
|
|
7
|
+
// You can regenerate it using `pnpm run generate-configs`
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const base_1 = __importDefault(require("./base"));
|
|
13
|
+
const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
|
|
14
|
+
/**
|
|
15
|
+
* Contains all of `recommended`, as well as additional strict rules that can also catch bugs.
|
|
16
|
+
* @see {@link https://typescript-eslint.io/users/configs#strict}
|
|
17
|
+
*/
|
|
18
|
+
exports.default = (plugin, parser) => [
|
|
19
|
+
(0, base_1.default)(plugin, parser),
|
|
20
|
+
(0, eslint_recommended_1.default)(plugin, parser),
|
|
21
|
+
{
|
|
22
|
+
name: 'typescript-eslint/strict',
|
|
23
|
+
rules: {
|
|
24
|
+
'@typescript-eslint/ban-ts-comment': [
|
|
25
|
+
'error',
|
|
26
|
+
{ minimumDescriptionLength: 10 },
|
|
27
|
+
],
|
|
28
|
+
'no-array-constructor': 'off',
|
|
29
|
+
'@typescript-eslint/no-array-constructor': 'error',
|
|
30
|
+
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
|
31
|
+
'@typescript-eslint/no-dynamic-delete': 'error',
|
|
32
|
+
'@typescript-eslint/no-empty-object-type': 'error',
|
|
33
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
34
|
+
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
35
|
+
'@typescript-eslint/no-extraneous-class': 'error',
|
|
36
|
+
'@typescript-eslint/no-invalid-void-type': 'error',
|
|
37
|
+
'@typescript-eslint/no-misused-new': 'error',
|
|
38
|
+
'@typescript-eslint/no-namespace': 'error',
|
|
39
|
+
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
|
40
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
41
|
+
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
42
|
+
'@typescript-eslint/no-require-imports': 'error',
|
|
43
|
+
'@typescript-eslint/no-this-alias': 'error',
|
|
44
|
+
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
45
|
+
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
|
46
|
+
'@typescript-eslint/no-unsafe-function-type': 'error',
|
|
47
|
+
'no-unused-expressions': 'off',
|
|
48
|
+
'@typescript-eslint/no-unused-expressions': 'error',
|
|
49
|
+
'no-unused-vars': 'off',
|
|
50
|
+
'@typescript-eslint/no-unused-vars': 'error',
|
|
51
|
+
'no-useless-constructor': 'off',
|
|
52
|
+
'@typescript-eslint/no-useless-constructor': 'error',
|
|
53
|
+
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
54
|
+
'@typescript-eslint/prefer-as-const': 'error',
|
|
55
|
+
'@typescript-eslint/prefer-literal-enum-member': 'error',
|
|
56
|
+
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
57
|
+
'@typescript-eslint/triple-slash-reference': 'error',
|
|
58
|
+
'@typescript-eslint/unified-signatures': 'error',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
/**
|
|
3
|
+
* A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules.
|
|
4
|
+
* @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only}
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS CODE WAS AUTOMATICALLY GENERATED
|
|
3
|
+
// DO NOT EDIT THIS CODE BY HAND
|
|
4
|
+
// SEE https://typescript-eslint.io/users/configs
|
|
5
|
+
//
|
|
6
|
+
// For developers working in the typescript-eslint monorepo:
|
|
7
|
+
// You can regenerate it using `pnpm run generate-configs`
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const base_1 = __importDefault(require("./base"));
|
|
13
|
+
const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
|
|
14
|
+
/**
|
|
15
|
+
* A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules.
|
|
16
|
+
* @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only}
|
|
17
|
+
*/
|
|
18
|
+
exports.default = (plugin, parser) => [
|
|
19
|
+
(0, base_1.default)(plugin, parser),
|
|
20
|
+
(0, eslint_recommended_1.default)(plugin, parser),
|
|
21
|
+
{
|
|
22
|
+
name: 'typescript-eslint/stylistic-type-checked-only',
|
|
23
|
+
rules: {
|
|
24
|
+
'dot-notation': 'off',
|
|
25
|
+
'@typescript-eslint/dot-notation': 'error',
|
|
26
|
+
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
|
27
|
+
'@typescript-eslint/prefer-find': 'error',
|
|
28
|
+
'@typescript-eslint/prefer-includes': 'error',
|
|
29
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
30
|
+
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
31
|
+
'@typescript-eslint/prefer-regexp-exec': 'error',
|
|
32
|
+
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
/**
|
|
3
|
+
* Contains all of `stylistic`, along with additional stylistic rules that require type information.
|
|
4
|
+
* @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked}
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS CODE WAS AUTOMATICALLY GENERATED
|
|
3
|
+
// DO NOT EDIT THIS CODE BY HAND
|
|
4
|
+
// SEE https://typescript-eslint.io/users/configs
|
|
5
|
+
//
|
|
6
|
+
// For developers working in the typescript-eslint monorepo:
|
|
7
|
+
// You can regenerate it using `pnpm run generate-configs`
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const base_1 = __importDefault(require("./base"));
|
|
13
|
+
const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
|
|
14
|
+
/**
|
|
15
|
+
* Contains all of `stylistic`, along with additional stylistic rules that require type information.
|
|
16
|
+
* @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked}
|
|
17
|
+
*/
|
|
18
|
+
exports.default = (plugin, parser) => [
|
|
19
|
+
(0, base_1.default)(plugin, parser),
|
|
20
|
+
(0, eslint_recommended_1.default)(plugin, parser),
|
|
21
|
+
{
|
|
22
|
+
name: 'typescript-eslint/stylistic-type-checked',
|
|
23
|
+
rules: {
|
|
24
|
+
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
25
|
+
'@typescript-eslint/array-type': 'error',
|
|
26
|
+
'@typescript-eslint/ban-tslint-comment': 'error',
|
|
27
|
+
'@typescript-eslint/class-literal-property-style': 'error',
|
|
28
|
+
'@typescript-eslint/consistent-generic-constructors': 'error',
|
|
29
|
+
'@typescript-eslint/consistent-indexed-object-style': 'error',
|
|
30
|
+
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
31
|
+
'@typescript-eslint/consistent-type-definitions': 'error',
|
|
32
|
+
'dot-notation': 'off',
|
|
33
|
+
'@typescript-eslint/dot-notation': 'error',
|
|
34
|
+
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
|
35
|
+
'no-empty-function': 'off',
|
|
36
|
+
'@typescript-eslint/no-empty-function': 'error',
|
|
37
|
+
'@typescript-eslint/no-inferrable-types': 'error',
|
|
38
|
+
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
|
39
|
+
'@typescript-eslint/prefer-find': 'error',
|
|
40
|
+
'@typescript-eslint/prefer-for-of': 'error',
|
|
41
|
+
'@typescript-eslint/prefer-function-type': 'error',
|
|
42
|
+
'@typescript-eslint/prefer-includes': 'error',
|
|
43
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
44
|
+
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
45
|
+
'@typescript-eslint/prefer-regexp-exec': 'error',
|
|
46
|
+
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
/**
|
|
3
|
+
* Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic.
|
|
4
|
+
* @see {@link https://typescript-eslint.io/users/configs#stylistic}
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
|
|
7
|
+
export default _default;
|