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
|
@@ -11,7 +11,7 @@ import type { SyntaxKind } from 'typescript';
|
|
|
11
11
|
export declare type Accessibility = 'private' | 'protected' | 'public';
|
|
12
12
|
export declare interface ArrayExpression extends BaseNode {
|
|
13
13
|
type: AST_NODE_TYPES.ArrayExpression;
|
|
14
|
-
elements: Expression[];
|
|
14
|
+
elements: (Expression | SpreadElement)[];
|
|
15
15
|
}
|
|
16
16
|
export declare interface ArrayPattern extends BaseNode {
|
|
17
17
|
type: AST_NODE_TYPES.ArrayPattern;
|
|
@@ -160,6 +160,7 @@ export declare enum AST_NODE_TYPES {
|
|
|
160
160
|
TSExportKeyword = "TSExportKeyword",
|
|
161
161
|
TSExternalModuleReference = "TSExternalModuleReference",
|
|
162
162
|
TSFunctionType = "TSFunctionType",
|
|
163
|
+
TSInstantiationExpression = "TSInstantiationExpression",
|
|
163
164
|
TSImportEqualsDeclaration = "TSImportEqualsDeclaration",
|
|
164
165
|
TSImportType = "TSImportType",
|
|
165
166
|
TSIndexedAccessType = "TSIndexedAccessType",
|
|
@@ -293,27 +294,84 @@ export declare interface ChainExpression extends BaseNode {
|
|
|
293
294
|
type: AST_NODE_TYPES.ChainExpression;
|
|
294
295
|
expression: ChainElement;
|
|
295
296
|
}
|
|
297
|
+
declare interface ClassBase extends BaseNode {
|
|
298
|
+
/**
|
|
299
|
+
* Whether the class is an abstract class.
|
|
300
|
+
* ```
|
|
301
|
+
* abstract class Foo {...}
|
|
302
|
+
* ```
|
|
303
|
+
* This is always `undefined` for `ClassExpression`.
|
|
304
|
+
*/
|
|
305
|
+
abstract?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* The class body.
|
|
308
|
+
*/
|
|
309
|
+
body: ClassBody;
|
|
310
|
+
/**
|
|
311
|
+
* Whether the class has been `declare`d:
|
|
312
|
+
* ```
|
|
313
|
+
* declare class Foo {...}
|
|
314
|
+
* ```
|
|
315
|
+
* This is always `undefined` for `ClassExpression`.
|
|
316
|
+
*/
|
|
317
|
+
declare?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* The decorators declared for the class.
|
|
320
|
+
* This is `undefined` if there are no decorators.
|
|
321
|
+
* ```
|
|
322
|
+
* @deco
|
|
323
|
+
* class Foo {...}
|
|
324
|
+
* ```
|
|
325
|
+
* This is always `undefined` for `ClassExpression`.
|
|
326
|
+
*/
|
|
327
|
+
decorators?: Decorator[];
|
|
328
|
+
/**
|
|
329
|
+
* The class's name.
|
|
330
|
+
* - For a `ClassExpression` this may be `null` if the name is omitted.
|
|
331
|
+
* - For a `ClassDeclaration` this may be `null` if and only if the parent is
|
|
332
|
+
* an `ExportDefaultDeclaration`.
|
|
333
|
+
*/
|
|
334
|
+
id: Identifier | null;
|
|
335
|
+
/**
|
|
336
|
+
* The implemented interfaces for the class.
|
|
337
|
+
* This is `undefined` if there are no implemented interfaces.
|
|
338
|
+
*/
|
|
339
|
+
implements?: TSClassImplements[];
|
|
340
|
+
/**
|
|
341
|
+
* The super class this class extends.
|
|
342
|
+
*/
|
|
343
|
+
superClass: LeftHandSideExpression | null;
|
|
344
|
+
/**
|
|
345
|
+
* The generic type parameters passed to the superClass.
|
|
346
|
+
* This is `undefined` if there are no generic type parameters passed.
|
|
347
|
+
*/
|
|
348
|
+
superTypeParameters?: TSTypeParameterInstantiation;
|
|
349
|
+
/**
|
|
350
|
+
* The generic type parameters declared for the class.
|
|
351
|
+
* This is `undefined` if there are no generic type parameters declared.
|
|
352
|
+
*/
|
|
353
|
+
typeParameters?: TSTypeParameterDeclaration;
|
|
354
|
+
}
|
|
296
355
|
export declare interface ClassBody extends BaseNode {
|
|
297
356
|
type: AST_NODE_TYPES.ClassBody;
|
|
298
357
|
body: ClassElement[];
|
|
299
358
|
}
|
|
300
|
-
export declare
|
|
359
|
+
export declare type ClassDeclaration = ClassDeclarationWithName | ClassDeclarationWithOptionalName;
|
|
360
|
+
declare interface ClassDeclarationBase extends ClassBase {
|
|
301
361
|
type: AST_NODE_TYPES.ClassDeclaration;
|
|
302
362
|
}
|
|
303
|
-
declare interface
|
|
304
|
-
|
|
305
|
-
|
|
363
|
+
export declare interface ClassDeclarationWithName extends ClassDeclarationBase {
|
|
364
|
+
id: Identifier;
|
|
365
|
+
}
|
|
366
|
+
export declare interface ClassDeclarationWithOptionalName extends ClassDeclarationBase {
|
|
306
367
|
id: Identifier | null;
|
|
307
|
-
body: ClassBody;
|
|
308
|
-
superClass: LeftHandSideExpression | null;
|
|
309
|
-
implements?: TSClassImplements[];
|
|
310
|
-
abstract?: boolean;
|
|
311
|
-
declare?: boolean;
|
|
312
|
-
decorators?: Decorator[];
|
|
313
368
|
}
|
|
314
369
|
export declare type ClassElement = MethodDefinition | PropertyDefinition | StaticBlock | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSIndexSignature;
|
|
315
|
-
export declare interface ClassExpression extends
|
|
370
|
+
export declare interface ClassExpression extends ClassBase {
|
|
316
371
|
type: AST_NODE_TYPES.ClassExpression;
|
|
372
|
+
abstract?: undefined;
|
|
373
|
+
declare?: undefined;
|
|
374
|
+
decorators?: undefined;
|
|
317
375
|
}
|
|
318
376
|
declare interface ClassMethodDefinitionNonComputedNameBase extends MethodDefinitionBase {
|
|
319
377
|
key: ClassPropertyNameNonComputed;
|
|
@@ -343,6 +401,7 @@ export declare interface Decorator extends BaseNode {
|
|
|
343
401
|
type: AST_NODE_TYPES.Decorator;
|
|
344
402
|
expression: LeftHandSideExpression;
|
|
345
403
|
}
|
|
404
|
+
export declare type DefaultExportDeclarations = ClassDeclarationWithOptionalName | Expression | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration;
|
|
346
405
|
export declare type DestructuringPattern = ArrayPattern | AssignmentPattern | Identifier | MemberExpression | ObjectPattern | RestElement;
|
|
347
406
|
export declare interface DoWhileStatement extends BaseNode {
|
|
348
407
|
type: AST_NODE_TYPES.DoWhileStatement;
|
|
@@ -355,27 +414,93 @@ export declare interface EmptyStatement extends BaseNode {
|
|
|
355
414
|
export declare type EntityName = Identifier | TSQualifiedName;
|
|
356
415
|
export declare interface ExportAllDeclaration extends BaseNode {
|
|
357
416
|
type: AST_NODE_TYPES.ExportAllDeclaration;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
417
|
+
/**
|
|
418
|
+
* The assertions declared for the export.
|
|
419
|
+
* ```
|
|
420
|
+
* export * from 'mod' assert { type: 'json' };
|
|
421
|
+
* ```
|
|
422
|
+
*/
|
|
361
423
|
assertions: ImportAttribute[];
|
|
424
|
+
/**
|
|
425
|
+
* The name for the exported items. `null` if no name is assigned.
|
|
426
|
+
*/
|
|
427
|
+
exported: Identifier | null;
|
|
428
|
+
/**
|
|
429
|
+
* The kind of the export.
|
|
430
|
+
*/
|
|
431
|
+
exportKind: ExportKind;
|
|
432
|
+
/**
|
|
433
|
+
* The source module being exported from.
|
|
434
|
+
*/
|
|
435
|
+
source: StringLiteral;
|
|
362
436
|
}
|
|
363
437
|
declare type ExportAndImportKind = 'type' | 'value';
|
|
364
|
-
export declare type ExportDeclaration =
|
|
438
|
+
export declare type ExportDeclaration = DefaultExportDeclarations | NamedExportDeclarations;
|
|
365
439
|
export declare interface ExportDefaultDeclaration extends BaseNode {
|
|
366
440
|
type: AST_NODE_TYPES.ExportDefaultDeclaration;
|
|
367
|
-
|
|
368
|
-
|
|
441
|
+
/**
|
|
442
|
+
* The declaration being exported.
|
|
443
|
+
*/
|
|
444
|
+
declaration: DefaultExportDeclarations;
|
|
445
|
+
/**
|
|
446
|
+
* The kind of the export.
|
|
447
|
+
*/
|
|
369
448
|
exportKind: ExportKind;
|
|
370
449
|
}
|
|
371
450
|
declare type ExportKind = ExportAndImportKind;
|
|
372
|
-
export declare
|
|
451
|
+
export declare type ExportNamedDeclaration = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle | ExportNamedDeclarationWithSource;
|
|
452
|
+
declare interface ExportNamedDeclarationBase extends BaseNode {
|
|
373
453
|
type: AST_NODE_TYPES.ExportNamedDeclaration;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
454
|
+
/**
|
|
455
|
+
* The assertions declared for the export.
|
|
456
|
+
* ```
|
|
457
|
+
* export { foo } from 'mod' assert { type: 'json' };
|
|
458
|
+
* ```
|
|
459
|
+
* This will be an empty array if `source` is `null`
|
|
460
|
+
*/
|
|
461
|
+
assertions: ImportAttribute[];
|
|
462
|
+
/**
|
|
463
|
+
* The exported declaration.
|
|
464
|
+
* ```
|
|
465
|
+
* export const x = 1;
|
|
466
|
+
* ```
|
|
467
|
+
* This will be `null` if `source` is not `null`, or if there are `specifiers`
|
|
468
|
+
*/
|
|
469
|
+
declaration: NamedExportDeclarations | null;
|
|
470
|
+
/**
|
|
471
|
+
* The kind of the export.
|
|
472
|
+
*/
|
|
377
473
|
exportKind: ExportKind;
|
|
474
|
+
/**
|
|
475
|
+
* The source module being exported from.
|
|
476
|
+
*/
|
|
477
|
+
source: StringLiteral | null;
|
|
478
|
+
/**
|
|
479
|
+
* The specifiers being exported.
|
|
480
|
+
* ```
|
|
481
|
+
* export { a, b };
|
|
482
|
+
* ```
|
|
483
|
+
* This will be an empty array if `declaration` is not `null`
|
|
484
|
+
*/
|
|
485
|
+
specifiers: ExportSpecifier[];
|
|
486
|
+
}
|
|
487
|
+
export declare interface ExportNamedDeclarationWithoutSourceWithMultiple extends ExportNamedDeclarationBase {
|
|
378
488
|
assertions: ImportAttribute[];
|
|
489
|
+
declaration: NamedExportDeclarations;
|
|
490
|
+
source: null;
|
|
491
|
+
specifiers: ExportSpecifier[];
|
|
492
|
+
}
|
|
493
|
+
export declare interface ExportNamedDeclarationWithoutSourceWithSingle extends ExportNamedDeclarationBase {
|
|
494
|
+
assertions: ImportAttribute[];
|
|
495
|
+
declaration: null;
|
|
496
|
+
source: null;
|
|
497
|
+
specifiers: ExportSpecifier[];
|
|
498
|
+
}
|
|
499
|
+
export declare interface ExportNamedDeclarationWithSource extends ExportNamedDeclarationBase {
|
|
500
|
+
assertions: ImportAttribute[];
|
|
501
|
+
declaration: null;
|
|
502
|
+
source: StringLiteral;
|
|
503
|
+
specifiers: ExportSpecifier[];
|
|
379
504
|
}
|
|
380
505
|
export declare interface ExportSpecifier extends BaseNode {
|
|
381
506
|
type: AST_NODE_TYPES.ExportSpecifier;
|
|
@@ -383,7 +508,7 @@ export declare interface ExportSpecifier extends BaseNode {
|
|
|
383
508
|
exported: Identifier;
|
|
384
509
|
exportKind: ExportKind;
|
|
385
510
|
}
|
|
386
|
-
export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression;
|
|
511
|
+
export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression;
|
|
387
512
|
export declare interface ExpressionStatement extends BaseNode {
|
|
388
513
|
type: AST_NODE_TYPES.ExpressionStatement;
|
|
389
514
|
expression: Expression;
|
|
@@ -410,24 +535,88 @@ export declare interface ForStatement extends BaseNode {
|
|
|
410
535
|
update: Expression | null;
|
|
411
536
|
body: Statement;
|
|
412
537
|
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
538
|
+
declare interface FunctionBase extends BaseNode {
|
|
539
|
+
/**
|
|
540
|
+
* Whether the function is async:
|
|
541
|
+
* ```
|
|
542
|
+
* async function foo(...) {...}
|
|
543
|
+
* const x = async function (...) {...}
|
|
544
|
+
* const x = async (...) => {...}
|
|
545
|
+
* ```
|
|
546
|
+
*/
|
|
421
547
|
async: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* The body of the function.
|
|
550
|
+
* - For an `ArrowFunctionExpression` this may be an `Expression` or `BlockStatement`.
|
|
551
|
+
* - For a `FunctionDeclaration` or `FunctionExpression` this is always a `BlockStatement.
|
|
552
|
+
* - For a `TSDeclareFunction` this is always `undefined`.
|
|
553
|
+
* - For a `TSEmptyBodyFunctionExpression` this is always `null`.
|
|
554
|
+
*/
|
|
555
|
+
body?: BlockStatement | Expression | null;
|
|
556
|
+
/**
|
|
557
|
+
* This is only `true` if and only if the node is a `TSDeclareFunction` and it has `declare`:
|
|
558
|
+
* ```
|
|
559
|
+
* declare function foo(...) {...}
|
|
560
|
+
* ```
|
|
561
|
+
*/
|
|
562
|
+
declare?: boolean;
|
|
563
|
+
/**
|
|
564
|
+
* This is only ever `true` if and only the node is an `ArrowFunctionExpression` and the body
|
|
565
|
+
* is an expression:
|
|
566
|
+
* ```
|
|
567
|
+
* (() => 1)
|
|
568
|
+
* ```
|
|
569
|
+
*/
|
|
570
|
+
expression: boolean;
|
|
571
|
+
/**
|
|
572
|
+
* Whether the function is a generator function:
|
|
573
|
+
* ```
|
|
574
|
+
* function *foo(...) {...}
|
|
575
|
+
* const x = function *(...) {...}
|
|
576
|
+
* ```
|
|
577
|
+
* This is always `false` for arrow functions as they cannot be generators.
|
|
578
|
+
*/
|
|
579
|
+
generator: boolean;
|
|
580
|
+
/**
|
|
581
|
+
* The function's name.
|
|
582
|
+
* - For an `ArrowFunctionExpression` this is always `null`.
|
|
583
|
+
* - For a `FunctionExpression` this may be `null` if the name is omitted.
|
|
584
|
+
* - For a `FunctionDeclaration` or `TSDeclareFunction` this may be `null` if
|
|
585
|
+
* and only if the parent is an `ExportDefaultDeclaration`.
|
|
586
|
+
*/
|
|
587
|
+
id: Identifier | null;
|
|
588
|
+
/**
|
|
589
|
+
* The list of parameters declared for the function.
|
|
590
|
+
*/
|
|
422
591
|
params: Parameter[];
|
|
423
|
-
|
|
592
|
+
/**
|
|
593
|
+
* The return type annotation for the function.
|
|
594
|
+
* This is `undefined` if there is no return type declared.
|
|
595
|
+
*/
|
|
424
596
|
returnType?: TSTypeAnnotation;
|
|
597
|
+
/**
|
|
598
|
+
* The generic type parameter declaration for the function.
|
|
599
|
+
* This is `undefined` if there are no generic type parameters declared.
|
|
600
|
+
*/
|
|
425
601
|
typeParameters?: TSTypeParameterDeclaration;
|
|
426
|
-
declare?: boolean;
|
|
427
602
|
}
|
|
428
|
-
export declare
|
|
603
|
+
export declare type FunctionDeclaration = FunctionDeclarationWithName | FunctionDeclarationWithOptionalName;
|
|
604
|
+
declare interface FunctionDeclarationBase extends FunctionBase {
|
|
605
|
+
type: AST_NODE_TYPES.FunctionDeclaration;
|
|
606
|
+
body: BlockStatement;
|
|
607
|
+
declare?: false;
|
|
608
|
+
expression: false;
|
|
609
|
+
}
|
|
610
|
+
export declare interface FunctionDeclarationWithName extends FunctionDeclarationBase {
|
|
611
|
+
id: Identifier;
|
|
612
|
+
}
|
|
613
|
+
export declare interface FunctionDeclarationWithOptionalName extends FunctionDeclarationBase {
|
|
614
|
+
id: Identifier | null;
|
|
615
|
+
}
|
|
616
|
+
export declare interface FunctionExpression extends FunctionBase {
|
|
429
617
|
type: AST_NODE_TYPES.FunctionExpression;
|
|
430
618
|
body: BlockStatement;
|
|
619
|
+
expression: false;
|
|
431
620
|
}
|
|
432
621
|
export declare type FunctionLike = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression;
|
|
433
622
|
export declare interface Identifier extends BaseNode {
|
|
@@ -454,10 +643,33 @@ export declare interface ImportAttribute extends BaseNode {
|
|
|
454
643
|
export declare type ImportClause = ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier;
|
|
455
644
|
export declare interface ImportDeclaration extends BaseNode {
|
|
456
645
|
type: AST_NODE_TYPES.ImportDeclaration;
|
|
646
|
+
/**
|
|
647
|
+
* The assertions declared for the export.
|
|
648
|
+
* ```
|
|
649
|
+
* import * from 'mod' assert { type: 'json' };
|
|
650
|
+
* ```
|
|
651
|
+
*/
|
|
652
|
+
assertions: ImportAttribute[];
|
|
653
|
+
/**
|
|
654
|
+
* The kind of the import.
|
|
655
|
+
*/
|
|
656
|
+
importKind: ImportKind;
|
|
657
|
+
/**
|
|
658
|
+
* The source module being imported from.
|
|
659
|
+
*/
|
|
457
660
|
source: StringLiteral;
|
|
661
|
+
/**
|
|
662
|
+
* The specifiers being imported.
|
|
663
|
+
* If this is an empty array then either there are no specifiers:
|
|
664
|
+
* ```
|
|
665
|
+
* import {} from 'mod';
|
|
666
|
+
* ```
|
|
667
|
+
* Or it is a side-effect import:
|
|
668
|
+
* ```
|
|
669
|
+
* import 'mod';
|
|
670
|
+
* ```
|
|
671
|
+
*/
|
|
458
672
|
specifiers: ImportClause[];
|
|
459
|
-
importKind: ImportKind;
|
|
460
|
-
assertions: ImportAttribute[];
|
|
461
673
|
}
|
|
462
674
|
export declare interface ImportDefaultSpecifier extends BaseNode {
|
|
463
675
|
type: AST_NODE_TYPES.ImportDefaultSpecifier;
|
|
@@ -633,13 +845,14 @@ declare interface MethodDefinitionNonComputedNameBase extends MethodDefinitionBa
|
|
|
633
845
|
computed: false;
|
|
634
846
|
}
|
|
635
847
|
export declare type Modifier = TSAbstractKeyword | TSAsyncKeyword | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSReadonlyKeyword | TSStaticKeyword;
|
|
848
|
+
export declare type NamedExportDeclarations = ClassDeclarationWithName | ClassDeclarationWithOptionalName | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration;
|
|
636
849
|
export declare interface NewExpression extends BaseNode {
|
|
637
850
|
type: AST_NODE_TYPES.NewExpression;
|
|
638
851
|
callee: LeftHandSideExpression;
|
|
639
852
|
arguments: Expression[];
|
|
640
853
|
typeParameters?: TSTypeParameterInstantiation;
|
|
641
854
|
}
|
|
642
|
-
export declare type Node = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression;
|
|
855
|
+
export declare type Node = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression;
|
|
643
856
|
declare interface NodeOrTokenData {
|
|
644
857
|
/**
|
|
645
858
|
* The source location information of the node.
|
|
@@ -877,7 +1090,7 @@ export declare interface SpreadElement extends BaseNode {
|
|
|
877
1090
|
type: AST_NODE_TYPES.SpreadElement;
|
|
878
1091
|
argument: Expression;
|
|
879
1092
|
}
|
|
880
|
-
export declare type Statement = BlockStatement | BreakStatement |
|
|
1093
|
+
export declare type Statement = BlockStatement | BreakStatement | ClassDeclarationWithName | ContinueStatement | DebuggerStatement | DoWhileStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclarationWithName | IfStatement | ImportDeclaration | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | TSDeclareFunction | TSEnumDeclaration | TSExportAssignment | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration | VariableDeclaration | WhileStatement | WithStatement;
|
|
881
1094
|
export declare interface StaticBlock extends BaseNode {
|
|
882
1095
|
type: AST_NODE_TYPES.StaticBlock;
|
|
883
1096
|
body: Statement[];
|
|
@@ -997,22 +1210,44 @@ export declare interface TSConstructorType extends TSFunctionSignatureBase {
|
|
|
997
1210
|
export declare interface TSConstructSignatureDeclaration extends TSFunctionSignatureBase {
|
|
998
1211
|
type: AST_NODE_TYPES.TSConstructSignatureDeclaration;
|
|
999
1212
|
}
|
|
1000
|
-
export declare interface TSDeclareFunction extends
|
|
1213
|
+
export declare interface TSDeclareFunction extends FunctionBase {
|
|
1001
1214
|
type: AST_NODE_TYPES.TSDeclareFunction;
|
|
1215
|
+
body?: BlockStatement;
|
|
1216
|
+
declare?: boolean;
|
|
1217
|
+
expression: false;
|
|
1002
1218
|
}
|
|
1003
1219
|
export declare interface TSDeclareKeyword extends BaseNode {
|
|
1004
1220
|
type: AST_NODE_TYPES.TSDeclareKeyword;
|
|
1005
1221
|
}
|
|
1006
|
-
export declare interface TSEmptyBodyFunctionExpression extends
|
|
1222
|
+
export declare interface TSEmptyBodyFunctionExpression extends FunctionBase {
|
|
1007
1223
|
type: AST_NODE_TYPES.TSEmptyBodyFunctionExpression;
|
|
1008
1224
|
body: null;
|
|
1225
|
+
id: null;
|
|
1009
1226
|
}
|
|
1010
1227
|
export declare interface TSEnumDeclaration extends BaseNode {
|
|
1011
1228
|
type: AST_NODE_TYPES.TSEnumDeclaration;
|
|
1012
|
-
|
|
1013
|
-
|
|
1229
|
+
/**
|
|
1230
|
+
* Whether this is a `const` enum.
|
|
1231
|
+
* ```
|
|
1232
|
+
* const enum Foo {...}
|
|
1233
|
+
* ```
|
|
1234
|
+
*/
|
|
1014
1235
|
const?: boolean;
|
|
1236
|
+
/**
|
|
1237
|
+
* Whether this is a `declare`d enum.
|
|
1238
|
+
* ```
|
|
1239
|
+
* declare enum Foo {...}
|
|
1240
|
+
* ```
|
|
1241
|
+
*/
|
|
1015
1242
|
declare?: boolean;
|
|
1243
|
+
/**
|
|
1244
|
+
* The enum name.
|
|
1245
|
+
*/
|
|
1246
|
+
id: Identifier;
|
|
1247
|
+
/**
|
|
1248
|
+
* The enum members.
|
|
1249
|
+
*/
|
|
1250
|
+
members: TSEnumMember[];
|
|
1016
1251
|
modifiers?: Modifier[];
|
|
1017
1252
|
}
|
|
1018
1253
|
export declare type TSEnumMember = TSEnumMemberComputedName | TSEnumMemberNonComputedName;
|
|
@@ -1066,9 +1301,26 @@ declare interface TSHeritageBase extends BaseNode {
|
|
|
1066
1301
|
}
|
|
1067
1302
|
export declare interface TSImportEqualsDeclaration extends BaseNode {
|
|
1068
1303
|
type: AST_NODE_TYPES.TSImportEqualsDeclaration;
|
|
1304
|
+
/**
|
|
1305
|
+
* The locally imported name
|
|
1306
|
+
*/
|
|
1069
1307
|
id: Identifier;
|
|
1308
|
+
/**
|
|
1309
|
+
* The value being aliased.
|
|
1310
|
+
* ```
|
|
1311
|
+
* import F1 = A;
|
|
1312
|
+
* import F2 = A.B.C;
|
|
1313
|
+
* import F3 = require('mod');
|
|
1314
|
+
* ```
|
|
1315
|
+
*/
|
|
1070
1316
|
moduleReference: EntityName | TSExternalModuleReference;
|
|
1071
1317
|
importKind: ImportKind;
|
|
1318
|
+
/**
|
|
1319
|
+
* Whether this is immediately exported
|
|
1320
|
+
* ```
|
|
1321
|
+
* export import F = A;
|
|
1322
|
+
* ```
|
|
1323
|
+
*/
|
|
1072
1324
|
isExport: boolean;
|
|
1073
1325
|
}
|
|
1074
1326
|
export declare interface TSImportType extends BaseNode {
|
|
@@ -1096,19 +1348,40 @@ export declare interface TSInferType extends BaseNode {
|
|
|
1096
1348
|
type: AST_NODE_TYPES.TSInferType;
|
|
1097
1349
|
typeParameter: TSTypeParameter;
|
|
1098
1350
|
}
|
|
1351
|
+
export declare interface TSInstantiationExpression extends BaseNode {
|
|
1352
|
+
type: AST_NODE_TYPES.TSInstantiationExpression;
|
|
1353
|
+
expression: Expression;
|
|
1354
|
+
typeParameters: TSTypeParameterInstantiation;
|
|
1355
|
+
}
|
|
1099
1356
|
export declare interface TSInterfaceBody extends BaseNode {
|
|
1100
1357
|
type: AST_NODE_TYPES.TSInterfaceBody;
|
|
1101
1358
|
body: TypeElement[];
|
|
1102
1359
|
}
|
|
1103
1360
|
export declare interface TSInterfaceDeclaration extends BaseNode {
|
|
1104
1361
|
type: AST_NODE_TYPES.TSInterfaceDeclaration;
|
|
1362
|
+
abstract?: boolean;
|
|
1363
|
+
/**
|
|
1364
|
+
* The body of the interface
|
|
1365
|
+
*/
|
|
1105
1366
|
body: TSInterfaceBody;
|
|
1106
|
-
|
|
1107
|
-
|
|
1367
|
+
/**
|
|
1368
|
+
* Whether the interface was `declare`d, `undefined` otherwise
|
|
1369
|
+
*/
|
|
1370
|
+
declare?: boolean;
|
|
1371
|
+
/**
|
|
1372
|
+
* The types this interface `extends`
|
|
1373
|
+
*/
|
|
1108
1374
|
extends?: TSInterfaceHeritage[];
|
|
1375
|
+
/**
|
|
1376
|
+
* The name of this interface
|
|
1377
|
+
*/
|
|
1378
|
+
id: Identifier;
|
|
1109
1379
|
implements?: TSInterfaceHeritage[];
|
|
1110
|
-
|
|
1111
|
-
|
|
1380
|
+
/**
|
|
1381
|
+
* The generic type parameters declared for the interface.
|
|
1382
|
+
* This is `undefined` if there are no generic type parameters declared.
|
|
1383
|
+
*/
|
|
1384
|
+
typeParameters?: TSTypeParameterDeclaration;
|
|
1112
1385
|
}
|
|
1113
1386
|
export declare interface TSInterfaceHeritage extends TSHeritageBase {
|
|
1114
1387
|
type: AST_NODE_TYPES.TSInterfaceHeritage;
|
|
@@ -1161,9 +1434,34 @@ export declare interface TSModuleBlock extends BaseNode {
|
|
|
1161
1434
|
}
|
|
1162
1435
|
export declare interface TSModuleDeclaration extends BaseNode {
|
|
1163
1436
|
type: AST_NODE_TYPES.TSModuleDeclaration;
|
|
1437
|
+
/**
|
|
1438
|
+
* The name of the module
|
|
1439
|
+
* ```
|
|
1440
|
+
* namespace A {}
|
|
1441
|
+
* namespace A.B.C {}
|
|
1442
|
+
* module 'a' {}
|
|
1443
|
+
* ```
|
|
1444
|
+
*/
|
|
1164
1445
|
id: Identifier | Literal;
|
|
1446
|
+
/**
|
|
1447
|
+
* The body of the module.
|
|
1448
|
+
* This can only be `undefined` for the code `declare module 'mod';`
|
|
1449
|
+
* This will be a `TSModuleDeclaration` if the name is "nested" (`Foo.Bar`).
|
|
1450
|
+
*/
|
|
1165
1451
|
body?: TSModuleBlock | TSModuleDeclaration;
|
|
1452
|
+
/**
|
|
1453
|
+
* Whether this is a global declaration
|
|
1454
|
+
* ```
|
|
1455
|
+
* declare global {}
|
|
1456
|
+
* ```
|
|
1457
|
+
*/
|
|
1166
1458
|
global?: boolean;
|
|
1459
|
+
/**
|
|
1460
|
+
* Whether the module is `declare`d
|
|
1461
|
+
* ```
|
|
1462
|
+
* declare namespace F {}
|
|
1463
|
+
* ```
|
|
1464
|
+
*/
|
|
1167
1465
|
declare?: boolean;
|
|
1168
1466
|
modifiers?: Modifier[];
|
|
1169
1467
|
}
|
|
@@ -1175,6 +1473,9 @@ export declare interface TSNamedTupleMember extends BaseNode {
|
|
|
1175
1473
|
}
|
|
1176
1474
|
export declare interface TSNamespaceExportDeclaration extends BaseNode {
|
|
1177
1475
|
type: AST_NODE_TYPES.TSNamespaceExportDeclaration;
|
|
1476
|
+
/**
|
|
1477
|
+
* The name the global variable being exported to
|
|
1478
|
+
*/
|
|
1178
1479
|
id: Identifier;
|
|
1179
1480
|
}
|
|
1180
1481
|
export declare interface TSNeverKeyword extends BaseNode {
|
|
@@ -1272,9 +1573,25 @@ export declare interface TSTupleType extends BaseNode {
|
|
|
1272
1573
|
}
|
|
1273
1574
|
export declare interface TSTypeAliasDeclaration extends BaseNode {
|
|
1274
1575
|
type: AST_NODE_TYPES.TSTypeAliasDeclaration;
|
|
1576
|
+
/**
|
|
1577
|
+
* Whether the type was `declare`d.
|
|
1578
|
+
* ```
|
|
1579
|
+
* declare type T = 1;
|
|
1580
|
+
* ```
|
|
1581
|
+
*/
|
|
1582
|
+
declare?: boolean;
|
|
1583
|
+
/**
|
|
1584
|
+
* The name of the type.
|
|
1585
|
+
*/
|
|
1275
1586
|
id: Identifier;
|
|
1587
|
+
/**
|
|
1588
|
+
* The "value" (type) of the declaration
|
|
1589
|
+
*/
|
|
1276
1590
|
typeAnnotation: TypeNode;
|
|
1277
|
-
|
|
1591
|
+
/**
|
|
1592
|
+
* The generic type parameters declared for the type.
|
|
1593
|
+
* This is `undefined` if there are no generic type parameters declared.
|
|
1594
|
+
*/
|
|
1278
1595
|
typeParameters?: TSTypeParameterDeclaration;
|
|
1279
1596
|
}
|
|
1280
1597
|
export declare interface TSTypeAnnotation extends BaseNode {
|
|
@@ -1300,6 +1617,8 @@ export declare interface TSTypeParameter extends BaseNode {
|
|
|
1300
1617
|
name: Identifier;
|
|
1301
1618
|
constraint?: TypeNode;
|
|
1302
1619
|
default?: TypeNode;
|
|
1620
|
+
in: boolean;
|
|
1621
|
+
out: boolean;
|
|
1303
1622
|
}
|
|
1304
1623
|
export declare interface TSTypeParameterDeclaration extends BaseNode {
|
|
1305
1624
|
type: AST_NODE_TYPES.TSTypeParameterDeclaration;
|
|
@@ -1318,6 +1637,7 @@ export declare interface TSTypePredicate extends BaseNode {
|
|
|
1318
1637
|
export declare interface TSTypeQuery extends BaseNode {
|
|
1319
1638
|
type: AST_NODE_TYPES.TSTypeQuery;
|
|
1320
1639
|
exprName: EntityName;
|
|
1640
|
+
typeParameters?: TSTypeParameterInstantiation;
|
|
1321
1641
|
}
|
|
1322
1642
|
export declare interface TSTypeReference extends BaseNode {
|
|
1323
1643
|
type: AST_NODE_TYPES.TSTypeReference;
|
|
@@ -1356,9 +1676,31 @@ export declare interface UpdateExpression extends UnaryExpressionBase {
|
|
|
1356
1676
|
declare type ValueOf<T> = T[keyof T];
|
|
1357
1677
|
export declare interface VariableDeclaration extends BaseNode {
|
|
1358
1678
|
type: AST_NODE_TYPES.VariableDeclaration;
|
|
1679
|
+
/**
|
|
1680
|
+
* The variables declared by this declaration.
|
|
1681
|
+
* Note that there may be 0 declarations (i.e. `const;`).
|
|
1682
|
+
* ```
|
|
1683
|
+
* let x;
|
|
1684
|
+
* let y, z;
|
|
1685
|
+
* ```
|
|
1686
|
+
*/
|
|
1359
1687
|
declarations: VariableDeclarator[];
|
|
1360
|
-
|
|
1688
|
+
/**
|
|
1689
|
+
* Whether the declaration is `declare`d
|
|
1690
|
+
* ```
|
|
1691
|
+
* declare const x = 1;
|
|
1692
|
+
* ```
|
|
1693
|
+
*/
|
|
1361
1694
|
declare?: boolean;
|
|
1695
|
+
/**
|
|
1696
|
+
* The keyword used to declare the variable(s)
|
|
1697
|
+
* ```
|
|
1698
|
+
* const x = 1;
|
|
1699
|
+
* let y = 2;
|
|
1700
|
+
* var z = 3;
|
|
1701
|
+
* ```
|
|
1702
|
+
*/
|
|
1703
|
+
kind: 'const' | 'let' | 'var';
|
|
1362
1704
|
}
|
|
1363
1705
|
export declare interface VariableDeclarator extends BaseNode {
|
|
1364
1706
|
type: AST_NODE_TYPES.VariableDeclarator;
|