xo 0.49.0 → 0.50.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/config/plugins.cjs +24 -24
- package/lib/constants.js +6 -6
- package/lib/options-manager.js +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/README.md +97 -100
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +0 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +1 -6
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +55 -54
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js +18 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +11 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +29 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +7 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +8 -8
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +8 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js +17 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +21 -19
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +36 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +98 -100
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +28 -27
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +3 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md +3 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md +3 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.md +5 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md +19 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md +255 -31
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implicit-any-catch.md +3 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.md +2 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.md +57 -12
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md +17 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md +3 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +0 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.md +17 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.md +0 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +1 -9
- package/node_modules/@typescript-eslint/eslint-plugin/package.json +7 -7
- package/node_modules/@typescript-eslint/parser/README.md +14 -10
- package/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/parser/dist/parser.js +1 -8
- package/node_modules/@typescript-eslint/parser/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/package.json +7 -7
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +9 -9
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +4 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +44 -4
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +2 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +11 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +3 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +11 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +2 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +2 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +4 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +13 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/package.json +6 -6
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts +8 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getConstrainedTypeAtLocation.d.ts +6 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getContextualType.d.ts +8 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getDeclaration.d.ts +6 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getSourceFileOfNode.d.ts +6 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTokenAtPosition.d.ts +3 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTypeArguments.d.ts +3 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTypeName.d.ts +8 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/index.d.ts +15 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/isTypeReadonly.d.ts +20 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/isUnsafeAssignment.d.ts +17 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/predicates.d.ts +52 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/propertyTypes.d.ts +4 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/requiresQuoting.d.ts +4 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/typeFlagUtils.d.ts +11 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +27 -27
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/package.json +6 -6
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +390 -48
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +1 -0
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/lib.d.ts +1 -1
- package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +0 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/package.json +4 -4
- package/node_modules/@typescript-eslint/typescript-estree/README.md +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +25 -11
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +2 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +34 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts +5 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +72 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +1 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +8 -23
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +6 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +2 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +7 -7
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +48 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +76 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +76 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/index.d.ts +6 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +32 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +18 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts +47 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/index.d.ts +5 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/misc.d.ts +8 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts +180 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +11 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +35 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleTester.d.ts +18 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/applyDefault.d.ts +10 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts +24 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts +17 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/getParserServices.d.ts +8 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/index.d.ts +9 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/nullThrows.d.ts +14 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/index.d.ts +8 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/json-schema.d.ts +2 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/AST.d.ts +9 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/CLIEngine.d.ts +137 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/ESLint.d.ts +376 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Linter.d.ts +326 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/ParserOptions.d.ts +2 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +389 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +154 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Scope.d.ts +44 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts +342 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/index.d.ts +10 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Definition.d.ts +19 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts +15 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts +25 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +28 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts +55 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +103 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/ScopeManager.d.ts +50 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Variable.d.ts +17 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/analyze.d.ts +16 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/index.d.ts +11 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-estree.d.ts +3 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +7 -7
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +6 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +2 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts +3 -3
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/package.json +7 -7
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +1 -0
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/package.json +5 -5
- package/package.json +10 -10
- package/readme.md +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `no-unused-vars`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Disallows unused variables.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -26,11 +26,3 @@ See [`eslint/no-unused-vars` options](https://eslint.org/docs/rules/no-unused-va
|
|
|
26
26
|
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/no-unused-vars.md)
|
|
27
27
|
|
|
28
28
|
</sup>
|
|
29
|
-
|
|
30
|
-
## Attributes
|
|
31
|
-
|
|
32
|
-
- Configs:
|
|
33
|
-
- [x] ✅ Recommended
|
|
34
|
-
- [x] 🔒 Strict
|
|
35
|
-
- [ ] 🔧 Fixable
|
|
36
|
-
- [ ] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `no-use-before-define`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Disallows the use of variables before they are defined.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -112,11 +112,3 @@ See [`eslint/no-use-before-define` options](https://eslint.org/docs/rules/no-use
|
|
|
112
112
|
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/no-use-before-define.md)
|
|
113
113
|
|
|
114
114
|
</sup>
|
|
115
|
-
|
|
116
|
-
## Attributes
|
|
117
|
-
|
|
118
|
-
- Configs:
|
|
119
|
-
- [ ] ✅ Recommended
|
|
120
|
-
- [ ] 🔒 Strict
|
|
121
|
-
- [ ] 🔧 Fixable
|
|
122
|
-
- [ ] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `no-useless-constructor`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Disallows unnecessary constructors.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -35,11 +35,3 @@ Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/
|
|
|
35
35
|
|
|
36
36
|
This lint rule will report on constructors whose sole purpose is to change visibility of a parent constructor.
|
|
37
37
|
See [discussion on this rule's lack of type information](https://github.com/typescript-eslint/typescript-eslint/issues/3820#issuecomment-917821240) for context.
|
|
38
|
-
|
|
39
|
-
## Attributes
|
|
40
|
-
|
|
41
|
-
- Configs:
|
|
42
|
-
- [ ] ✅ Recommended
|
|
43
|
-
- [x] 🔒 Strict
|
|
44
|
-
- [ ] 🔧 Fixable
|
|
45
|
-
- [ ] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `no-useless-empty-export`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Disallows empty exports that don't change anything in a module file.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -50,11 +50,3 @@ import 'some-other-module';
|
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
This rule is not configurable.
|
|
53
|
-
|
|
54
|
-
## Attributes
|
|
55
|
-
|
|
56
|
-
- Configs:
|
|
57
|
-
- [ ] ✅ Recommended
|
|
58
|
-
- [ ] 🔒 Strict
|
|
59
|
-
- [x] 🔧 Fixable
|
|
60
|
-
- [ ] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `no-var-requires`
|
|
2
2
|
|
|
3
|
-
Disallows
|
|
3
|
+
Disallows `require` statements except in import statements.
|
|
4
4
|
|
|
5
5
|
In other words, the use of forms such as `var foo = require("foo")` are banned. Instead use ES6 style imports or `import foo = require("foo")` imports.
|
|
6
6
|
|
|
@@ -46,11 +46,3 @@ If you don't care about TypeScript module syntax, then you will not need this ru
|
|
|
46
46
|
## Related To
|
|
47
47
|
|
|
48
48
|
- TSLint: [no-var-requires](https://palantir.github.io/tslint/rules/no-var-requires/)
|
|
49
|
-
|
|
50
|
-
## Attributes
|
|
51
|
-
|
|
52
|
-
- Configs:
|
|
53
|
-
- [x] ✅ Recommended
|
|
54
|
-
- [x] 🔒 Strict
|
|
55
|
-
- [ ] 🔧 Fixable
|
|
56
|
-
- [ ] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `non-nullable-type-assertion-style`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces non-null assertions over explicit type casts.
|
|
4
4
|
|
|
5
5
|
This rule detects when an `as` cast is doing the same job as a `!` would, and suggests fixing the code to be an `!`.
|
|
6
6
|
|
|
@@ -44,11 +44,3 @@ This rule is not configurable.
|
|
|
44
44
|
## When Not To Use It
|
|
45
45
|
|
|
46
46
|
If you don't mind having unnecessarily verbose type casts, you can avoid this rule.
|
|
47
|
-
|
|
48
|
-
## Attributes
|
|
49
|
-
|
|
50
|
-
- Configs:
|
|
51
|
-
- [ ] ✅ Recommended
|
|
52
|
-
- [x] 🔒 Strict
|
|
53
|
-
- [x] 🔧 Fixable
|
|
54
|
-
- [x] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `object-curly-spacing`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces consistent spacing inside braces.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -26,11 +26,3 @@ See [`eslint/object-curly-spacing` options](https://eslint.org/docs/rules/object
|
|
|
26
26
|
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/object-curly-spacing.md)
|
|
27
27
|
|
|
28
28
|
</sup>
|
|
29
|
-
|
|
30
|
-
## Attributes
|
|
31
|
-
|
|
32
|
-
- Configs:
|
|
33
|
-
- [ ] ✅ Recommended
|
|
34
|
-
- [ ] 🔒 Strict
|
|
35
|
-
- [x] 🔧 Fixable
|
|
36
|
-
- [ ] 💭 Requires type information
|
package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `padding-line-between-statements`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Requires or disallows padding lines between statements.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -54,11 +54,3 @@ In addition to options provided by ESLint, `interface` and `type` can be used as
|
|
|
54
54
|
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/padding-line-between-statements.md)
|
|
55
55
|
|
|
56
56
|
</sup>
|
|
57
|
-
|
|
58
|
-
## Attributes
|
|
59
|
-
|
|
60
|
-
- Configs:
|
|
61
|
-
- [ ] ✅ Recommended
|
|
62
|
-
- [ ] 🔒 Strict
|
|
63
|
-
- [x] 🔧 Fixable
|
|
64
|
-
- [ ] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `parameter-properties`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Requires or disallows parameter properties in class constructors.
|
|
4
4
|
|
|
5
5
|
Parameter properties can be confusing to those new to TypeScript as they are less explicit than other ways
|
|
6
6
|
of declaring and initializing class members.
|
|
@@ -486,11 +486,3 @@ If you don't care about the using parameter properties in constructors, then you
|
|
|
486
486
|
## Related To
|
|
487
487
|
|
|
488
488
|
- TSLint: [no-parameter-properties](https://palantir.github.io/tslint/rules/no-parameter-properties/)
|
|
489
|
-
|
|
490
|
-
## Attributes
|
|
491
|
-
|
|
492
|
-
- Configs:
|
|
493
|
-
- [ ] ✅ Recommended
|
|
494
|
-
- [ ] 🔒 Strict
|
|
495
|
-
- [ ] 🔧 Fixable
|
|
496
|
-
- [ ] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-as-const`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces the use of `as const` over literal type.
|
|
4
4
|
|
|
5
5
|
This rule recommends usage of `const` assertion when type primitive value is equal to type.
|
|
6
6
|
|
|
@@ -47,11 +47,3 @@ This rule is not configurable.
|
|
|
47
47
|
## When Not To Use It
|
|
48
48
|
|
|
49
49
|
If you are using TypeScript < 3.4
|
|
50
|
-
|
|
51
|
-
## Attributes
|
|
52
|
-
|
|
53
|
-
- Configs:
|
|
54
|
-
- [x] ✅ Recommended
|
|
55
|
-
- [x] 🔒 Strict
|
|
56
|
-
- [x] 🔧 Fixable
|
|
57
|
-
- [ ] 💭 Requires type information
|
package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-enum-initializers`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Requires each enum member value to be explicitly initialized.
|
|
4
4
|
|
|
5
5
|
This rule recommends having each `enum`s member value explicitly initialized.
|
|
6
6
|
|
|
@@ -87,11 +87,3 @@ This rule is not configurable.
|
|
|
87
87
|
## When Not To Use It
|
|
88
88
|
|
|
89
89
|
If you don't care about `enum`s having implicit values you can safely disable this rule.
|
|
90
|
-
|
|
91
|
-
## Attributes
|
|
92
|
-
|
|
93
|
-
- Configs:
|
|
94
|
-
- [ ] ✅ Recommended
|
|
95
|
-
- [ ] 🔒 Strict
|
|
96
|
-
- [ ] 🔧 Fixable
|
|
97
|
-
- [ ] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-for-of`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces the use of `for-of` loop over the standard `for` loop where possible.
|
|
4
4
|
|
|
5
5
|
This rule recommends a for-of loop when the loop index is only used to read from an array that is being iterated.
|
|
6
6
|
|
|
@@ -58,11 +58,3 @@ If you transpile for browsers that do not support for-of loops, you may wish to
|
|
|
58
58
|
## Related To
|
|
59
59
|
|
|
60
60
|
- TSLint: ['prefer-for-of'](https://palantir.github.io/tslint/rules/prefer-for-of/)
|
|
61
|
-
|
|
62
|
-
## Attributes
|
|
63
|
-
|
|
64
|
-
- Configs:
|
|
65
|
-
- [ ] ✅ Recommended
|
|
66
|
-
- [x] 🔒 Strict
|
|
67
|
-
- [ ] 🔧 Fixable
|
|
68
|
-
- [ ] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-function-type`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces using function types instead of interfaces with call signatures.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -98,11 +98,3 @@ If you specifically want to use an interface or type literal with a single call
|
|
|
98
98
|
## Further Reading
|
|
99
99
|
|
|
100
100
|
- TSLint: [`callable-types`](https://palantir.github.io/tslint/rules/callable-types/)
|
|
101
|
-
|
|
102
|
-
## Attributes
|
|
103
|
-
|
|
104
|
-
- Configs:
|
|
105
|
-
- [ ] ✅ Recommended
|
|
106
|
-
- [x] 🔒 Strict
|
|
107
|
-
- [x] 🔧 Fixable
|
|
108
|
-
- [ ] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-includes`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces `includes` method over `indexOf` method.
|
|
4
4
|
|
|
5
5
|
Until ES5, we were using `String#indexOf` method to check whether a string contains an arbitrary substring or not.
|
|
6
6
|
Until ES2015, we were using `Array#indexOf` method to check whether an array contains an arbitrary value or not.
|
|
@@ -86,11 +86,3 @@ This rule is not configurable.
|
|
|
86
86
|
## When Not To Use It
|
|
87
87
|
|
|
88
88
|
If you don't want to suggest `includes`, you can safely turn this rule off.
|
|
89
|
-
|
|
90
|
-
## Attributes
|
|
91
|
-
|
|
92
|
-
- Configs:
|
|
93
|
-
- [ ] ✅ Recommended
|
|
94
|
-
- [x] 🔒 Strict
|
|
95
|
-
- [x] 🔧 Fixable
|
|
96
|
-
- [x] 💭 Requires type information
|
package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-literal-enum-member`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Requires all enum members to be literal values.
|
|
4
4
|
|
|
5
5
|
TypeScript allows the value of an enum member to be many different kinds of valid JavaScript expressions. However, because enums create their own scope whereby each enum member becomes a variable in that scope, unexpected values could be used at runtime. Example:
|
|
6
6
|
|
|
@@ -96,11 +96,3 @@ enum Foo {
|
|
|
96
96
|
## When Not To Use It
|
|
97
97
|
|
|
98
98
|
If you want use anything other than simple literals as an enum value.
|
|
99
|
-
|
|
100
|
-
## Attributes
|
|
101
|
-
|
|
102
|
-
- Configs:
|
|
103
|
-
- [ ] ✅ Recommended
|
|
104
|
-
- [x] 🔒 Strict
|
|
105
|
-
- [ ] 🔧 Fixable
|
|
106
|
-
- [ ] 💭 Requires type information
|
package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-namespace-keyword`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Requires using `namespace` keyword over `module` keyword to declare custom TypeScript modules.
|
|
4
4
|
|
|
5
5
|
In an effort to prevent further confusion between custom TypeScript modules and the new ES2015 modules, starting
|
|
6
6
|
with TypeScript `v1.5` the keyword `namespace` is now the preferred way to declare custom TypeScript modules.
|
|
@@ -35,11 +35,3 @@ This rule is not configurable.
|
|
|
35
35
|
## Related To
|
|
36
36
|
|
|
37
37
|
- TSLint: [no-internal-module](https://palantir.github.io/tslint/rules/no-internal-module/)
|
|
38
|
-
|
|
39
|
-
## Attributes
|
|
40
|
-
|
|
41
|
-
- Configs:
|
|
42
|
-
- [x] ✅ Recommended
|
|
43
|
-
- [x] 🔒 Strict
|
|
44
|
-
- [x] 🔧 Fixable
|
|
45
|
-
- [ ] 💭 Requires type information
|
package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-nullish-coalescing`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces using the nullish coalescing operator instead of logical chaining.
|
|
4
4
|
|
|
5
5
|
TypeScript 3.7 added support for the nullish coalescing operator.
|
|
6
6
|
This operator allows you to safely cascade a value when dealing with `null` or `undefined`.
|
|
@@ -141,11 +141,3 @@ If you are not using TypeScript 3.7 (or greater), then you will not be able to u
|
|
|
141
141
|
|
|
142
142
|
- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html)
|
|
143
143
|
- [Nullish Coalescing Operator Proposal](https://github.com/tc39/proposal-nullish-coalescing/)
|
|
144
|
-
|
|
145
|
-
## Attributes
|
|
146
|
-
|
|
147
|
-
- Configs:
|
|
148
|
-
- [ ] ✅ Recommended
|
|
149
|
-
- [x] 🔒 Strict
|
|
150
|
-
- [ ] 🔧 Fixable
|
|
151
|
-
- [x] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-optional-chain`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces using concise optional chain expressions instead of chained logical ands.
|
|
4
4
|
|
|
5
5
|
TypeScript 3.7 added support for the optional chain operator.
|
|
6
6
|
This operator allows you to safely access properties and methods on objects when they are potentially `null` or `undefined`.
|
|
@@ -106,11 +106,3 @@ If you are not using TypeScript 3.7 (or greater), then you will not be able to u
|
|
|
106
106
|
|
|
107
107
|
- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html)
|
|
108
108
|
- [Optional Chaining Proposal](https://github.com/tc39/proposal-optional-chaining/)
|
|
109
|
-
|
|
110
|
-
## Attributes
|
|
111
|
-
|
|
112
|
-
- Configs:
|
|
113
|
-
- [ ] ✅ Recommended
|
|
114
|
-
- [x] 🔒 Strict
|
|
115
|
-
- [ ] 🔧 Fixable
|
|
116
|
-
- [ ] 💭 Requires type information
|
package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-readonly-parameter-types`
|
|
2
2
|
|
|
3
|
-
Requires
|
|
3
|
+
Requires function parameters to be typed as `readonly` to prevent accidental mutation of inputs.
|
|
4
4
|
|
|
5
5
|
Mutating function arguments can lead to confusing, hard to debug behavior.
|
|
6
6
|
Whilst it's easy to implicitly remember to not modify function arguments, explicitly typing arguments as readonly provides clear contract to consumers.
|
|
@@ -191,7 +191,7 @@ Examples of code for this rule with `{ignoreInferredTypes: true}`:
|
|
|
191
191
|
```ts
|
|
192
192
|
import { acceptsCallback, CallbackOptions } from 'external-dependency';
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
acceptsCallback((options: CallbackOptions) => {});
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
<details>
|
|
@@ -214,7 +214,7 @@ export const acceptsCallback: AcceptsCallback;
|
|
|
214
214
|
```ts
|
|
215
215
|
import { acceptsCallback } from 'external-dependency';
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
acceptsCallback(options => {});
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
<details>
|
|
@@ -277,11 +277,3 @@ type MyType = {
|
|
|
277
277
|
};
|
|
278
278
|
function foo(arg: MyType) {}
|
|
279
279
|
```
|
|
280
|
-
|
|
281
|
-
## Attributes
|
|
282
|
-
|
|
283
|
-
- Configs:
|
|
284
|
-
- [ ] ✅ Recommended
|
|
285
|
-
- [ ] 🔒 Strict
|
|
286
|
-
- [ ] 🔧 Fixable
|
|
287
|
-
- [x] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-readonly`
|
|
2
2
|
|
|
3
|
-
Requires
|
|
3
|
+
Requires private members to be marked as `readonly` if they're never modified outside of the constructor.
|
|
4
4
|
|
|
5
5
|
This rule enforces that private members are marked as `readonly` if they're never modified outside of the constructor.
|
|
6
6
|
|
|
@@ -89,11 +89,3 @@ class Container {
|
|
|
89
89
|
## Related To
|
|
90
90
|
|
|
91
91
|
- TSLint: ['prefer-readonly'](https://palantir.github.io/tslint/rules/prefer-readonly)
|
|
92
|
-
|
|
93
|
-
## Attributes
|
|
94
|
-
|
|
95
|
-
- Configs:
|
|
96
|
-
- [ ] ✅ Recommended
|
|
97
|
-
- [ ] 🔒 Strict
|
|
98
|
-
- [x] 🔧 Fixable
|
|
99
|
-
- [x] 💭 Requires type information
|
package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-reduce-type-parameter`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces using type parameter when calling `Array#reduce` instead of casting.
|
|
4
4
|
|
|
5
5
|
It's common to call `Array#reduce` with a generic type, such as an array or object, as the initial value.
|
|
6
6
|
Since these values are empty, their types are not usable:
|
|
@@ -67,11 +67,3 @@ This rule is not configurable.
|
|
|
67
67
|
## When Not To Use It
|
|
68
68
|
|
|
69
69
|
If you don't want to use typechecking in your linting, you can't use this rule.
|
|
70
|
-
|
|
71
|
-
## Attributes
|
|
72
|
-
|
|
73
|
-
- Configs:
|
|
74
|
-
- [ ] ✅ Recommended
|
|
75
|
-
- [x] 🔒 Strict
|
|
76
|
-
- [x] 🔧 Fixable
|
|
77
|
-
- [x] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-regexp-exec`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces `RegExp#exec` over `String#match` if no global flag is provided.
|
|
4
4
|
|
|
5
5
|
As `String#match` is defined to be the same as `RegExp#exec` when the regular expression does not include the `g` flag, prefer a consistent usage.
|
|
6
6
|
|
|
@@ -58,11 +58,3 @@ This rule is not configurable.
|
|
|
58
58
|
## When Not To Use It
|
|
59
59
|
|
|
60
60
|
If you prefer consistent use of `String#match` for both, with `g` flag and without it, you can turn this rule off.
|
|
61
|
-
|
|
62
|
-
## Attributes
|
|
63
|
-
|
|
64
|
-
- Configs:
|
|
65
|
-
- [ ] ✅ Recommended
|
|
66
|
-
- [ ] 🔒 Strict
|
|
67
|
-
- [x] 🔧 Fixable
|
|
68
|
-
- [x] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-return-this-type`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces that `this` is used when only `this` type is returned.
|
|
4
4
|
|
|
5
5
|
[Method chaining](https://en.wikipedia.org/wiki/Method_chaining) is a common pattern in OOP languages and TypeScript provides a special [polymorphic this type](https://www.typescriptlang.org/docs/handbook/2/classes.html#this-types).
|
|
6
6
|
If any type other than `this` is specified as the return type of these chaining methods, TypeScript will fail to cast it when invoking in subclass.
|
|
@@ -109,11 +109,3 @@ This rule is not configurable.
|
|
|
109
109
|
## When Not To Use It
|
|
110
110
|
|
|
111
111
|
If you don't use method chaining or explicit return values, you can safely turn this rule off.
|
|
112
|
-
|
|
113
|
-
## Attributes
|
|
114
|
-
|
|
115
|
-
- Configs:
|
|
116
|
-
- [ ] ✅ Recommended
|
|
117
|
-
- [x] 🔒 Strict
|
|
118
|
-
- [x] 🔧 Fixable
|
|
119
|
-
- [x] 💭 Requires type information
|
package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-string-starts-ends-with`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings.
|
|
4
4
|
|
|
5
5
|
There are multiple ways to verify if a string starts or ends with a specific string, such as `foo.indexOf('bar') === 0`.
|
|
6
6
|
|
|
@@ -61,11 +61,3 @@ This rule is not configurable.
|
|
|
61
61
|
## When Not To Use It
|
|
62
62
|
|
|
63
63
|
If you don't mind that style, you can turn this rule off safely.
|
|
64
|
-
|
|
65
|
-
## Attributes
|
|
66
|
-
|
|
67
|
-
- Configs:
|
|
68
|
-
- [ ] ✅ Recommended
|
|
69
|
-
- [x] 🔒 Strict
|
|
70
|
-
- [x] 🔧 Fixable
|
|
71
|
-
- [x] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `prefer-ts-expect-error`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces using `@ts-expect-error` over `@ts-ignore`.
|
|
4
4
|
|
|
5
5
|
TypeScript allows you to suppress all errors on a line by placing a single-line comment or a comment block line starting with `@ts-ignore` immediately before the erroring line.
|
|
6
6
|
While powerful, there is no way to know if a `@ts-ignore` is actually suppressing an error without manually investigating what happens when the `@ts-ignore` is removed.
|
|
@@ -82,11 +82,3 @@ If you are **NOT** using TypeScript 3.9 (or greater), then you will not be able
|
|
|
82
82
|
## Further Reading
|
|
83
83
|
|
|
84
84
|
- [Original Implementing PR](https://github.com/microsoft/TypeScript/pull/36014)
|
|
85
|
-
|
|
86
|
-
## Attributes
|
|
87
|
-
|
|
88
|
-
- Configs:
|
|
89
|
-
- [ ] ✅ Recommended
|
|
90
|
-
- [x] 🔒 Strict
|
|
91
|
-
- [x] 🔧 Fixable
|
|
92
|
-
- [ ] 💭 Requires type information
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Requires any function or method that returns a Promise to be marked async.
|
|
4
4
|
|
|
5
|
-
Requires any function or method that returns a Promise to be marked async.
|
|
6
5
|
Ensures that each function is only capable of:
|
|
7
6
|
|
|
8
7
|
- returning a rejected promise, or
|
|
@@ -70,11 +69,3 @@ In addition, each of the following properties may be provided, and default to `t
|
|
|
70
69
|
## Related To
|
|
71
70
|
|
|
72
71
|
- TSLint: [promise-function-async](https://palantir.github.io/tslint/rules/promise-function-async)
|
|
73
|
-
|
|
74
|
-
## Attributes
|
|
75
|
-
|
|
76
|
-
- Configs:
|
|
77
|
-
- [ ] ✅ Recommended
|
|
78
|
-
- [ ] 🔒 Strict
|
|
79
|
-
- [x] 🔧 Fixable
|
|
80
|
-
- [x] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `quotes`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces the consistent use of either backticks, double, or single quotes.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -26,11 +26,3 @@ See [`eslint/quotes` options](https://eslint.org/docs/rules/quotes#options).
|
|
|
26
26
|
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/quotes.md)
|
|
27
27
|
|
|
28
28
|
</sup>
|
|
29
|
-
|
|
30
|
-
## Attributes
|
|
31
|
-
|
|
32
|
-
- Configs:
|
|
33
|
-
- [ ] ✅ Recommended
|
|
34
|
-
- [ ] 🔒 Strict
|
|
35
|
-
- [x] 🔧 Fixable
|
|
36
|
-
- [ ] 💭 Requires type information
|
package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md
CHANGED
|
@@ -97,11 +97,3 @@ const three = '3';
|
|
|
97
97
|
## When Not To Use It
|
|
98
98
|
|
|
99
99
|
If you understand the language specification enough, you can turn this rule off safely.
|
|
100
|
-
|
|
101
|
-
## Attributes
|
|
102
|
-
|
|
103
|
-
- Configs:
|
|
104
|
-
- [ ] ✅ Recommended
|
|
105
|
-
- [ ] 🔒 Strict
|
|
106
|
-
- [ ] 🔧 Fixable
|
|
107
|
-
- [x] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `require-await`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Disallows async functions which have no `await` expression.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -36,11 +36,3 @@ See [`eslint/require-await` options](https://eslint.org/docs/rules/require-await
|
|
|
36
36
|
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/require-await.md)
|
|
37
37
|
|
|
38
38
|
</sup>
|
|
39
|
-
|
|
40
|
-
## Attributes
|
|
41
|
-
|
|
42
|
-
- Configs:
|
|
43
|
-
- [x] ✅ Recommended
|
|
44
|
-
- [x] 🔒 Strict
|
|
45
|
-
- [ ] 🔧 Fixable
|
|
46
|
-
- [x] 💭 Requires type information
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `restrict-plus-operands`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Requires both operands of addition to have type `number` or `string`.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -104,11 +104,3 @@ var fn = (a: any, b: number) => a + b;
|
|
|
104
104
|
## Related To
|
|
105
105
|
|
|
106
106
|
- TSLint: [restrict-plus-operands](https://palantir.github.io/tslint/rules/restrict-plus-operands/)
|
|
107
|
-
|
|
108
|
-
## Attributes
|
|
109
|
-
|
|
110
|
-
- Configs:
|
|
111
|
-
- [x] ✅ Recommended
|
|
112
|
-
- [x] 🔒 Strict
|
|
113
|
-
- [ ] 🔧 Fixable
|
|
114
|
-
- [x] 💭 Requires type information
|
package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `restrict-template-expressions`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enforces template literal expressions to be of `string` type.
|
|
4
4
|
|
|
5
5
|
## Rule Details
|
|
6
6
|
|
|
@@ -108,11 +108,3 @@ const msg1 = `arg = ${arg}`;
|
|
|
108
108
|
const arg = /foo/;
|
|
109
109
|
const msg1 = `arg = ${arg}`;
|
|
110
110
|
```
|
|
111
|
-
|
|
112
|
-
## Attributes
|
|
113
|
-
|
|
114
|
-
- Configs:
|
|
115
|
-
- [x] ✅ Recommended
|
|
116
|
-
- [x] 🔒 Strict
|
|
117
|
-
- [ ] 🔧 Fixable
|
|
118
|
-
- [x] 💭 Requires type information
|