xo 0.47.0 → 0.48.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/node_modules/@typescript-eslint/eslint-plugin/README.md +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +14 -14
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +39 -32
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +3 -3
- 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 +2 -2
- 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 +13 -13
- 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 +5 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js +4 -4
- 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 +2 -2
- 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 +29 -7
- 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 +14 -14
- 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 +6 -6
- 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 +87 -42
- 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 +61 -41
- 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/default-param-last.js +5 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +68 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +7 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +45 -85
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/index.js +161 -161
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/index.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js +78 -78
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js +3 -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/member-ordering.js +50 -32
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +7 -7
- 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-utils/validator.js +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +16 -16
- 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-array-constructor.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +4 -4
- 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-non-null-assertion.js +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +14 -14
- 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-dupe-class-members.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js +4 -9
- 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 +5 -5
- 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 +7 -5
- 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 +15 -15
- 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-extra-parens.js +13 -13
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js +6 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +2 -2
- 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 +19 -19
- 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-implicit-any-catch.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +16 -16
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +31 -31
- 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-this.js +11 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +19 -19
- 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-loop-func.js +10 -10
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +29 -24
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +6 -6
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +2 -2
- 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 +3 -3
- 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 +4 -4
- 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 +3 -3
- 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 +3 -3
- 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-parameter-properties.js +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +14 -14
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +2 -2
- 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-restricted-imports.js +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +23 -21
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js +31 -9
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +23 -23
- 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 +30 -4
- 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 +19 -19
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +3 -3
- 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-assertion.js +4 -4
- 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 +4 -4
- 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 +2 -2
- 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 +16 -16
- 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-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 +8 -8
- 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-unused-expressions.js +6 -6
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +33 -33
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +9 -9
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +15 -12
- 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 +24 -7
- 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/object-curly-spacing.js +7 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +74 -60
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +3 -3
- 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-for-of.js +19 -18
- 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 +16 -16
- 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-includes.js +7 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +8 -8
- 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 +3 -3
- 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 +11 -11
- 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 +37 -37
- 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 +12 -12
- 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 +7 -7
- 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 +2 -2
- 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 +6 -6
- 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-return-this-type.js +7 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +20 -20
- 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 +2 -2
- 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 +9 -9
- 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/quotes.js +10 -10
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +20 -11
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +38 -11
- 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 +2 -2
- 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 +4 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js +9 -9
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +40 -40
- 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-function-paren.js +5 -5
- 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 +2 -2
- 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 +20 -6
- 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/triple-slash-reference.js +3 -3
- 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 -21
- 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 +27 -27
- 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 +14 -14
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js +43 -44
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js +2 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js +59 -22
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js +5 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js +5 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +30 -50
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +6 -8
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +7 -7
- 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 +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md +57 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.md +21 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.md +17 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +23 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md +20 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.md +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +15 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.md +44 -30
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +20 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md +29 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md +19 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +57 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +3 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md +13 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +57 -13
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md +4 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md +34 -14
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md +12 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +78 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.md +18 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md +13 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md +7 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md +7 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.md +8 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.md +20 -16
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md +9 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md +8 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.md +17 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md +11 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.md +23 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implicit-any-catch.md +11 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md +15 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.md +51 -43
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.md +13 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.md +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.md +17 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.md +75 -43
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md +32 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md +22 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +22 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.md +52 -18
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.md +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md +20 -14
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md +5 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md +30 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md +4 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md +22 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md +11 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.md +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md +11 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md +22 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.md +27 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.md +25 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.md +23 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.md +23 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.md +25 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md +15 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md +14 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.md +23 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md +24 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.md +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md +17 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.md +17 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md +3 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md +31 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md +20 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.md +11 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md +15 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.md +61 -13
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +18 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md +22 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md +9 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +10 -5
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.md +12 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.md +4 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md +34 -12
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md +52 -18
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.md +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +14 -10
- package/node_modules/@typescript-eslint/eslint-plugin/index.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/README.md +26 -6
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/index.d.ts +7 -9
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/index.js +20 -11
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/legacy.js +20 -14
- package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/package.json +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/package.json +8 -4
- package/node_modules/@typescript-eslint/parser/README.md +3 -3
- package/node_modules/@typescript-eslint/parser/package.json +5 -6
- package/node_modules/@typescript-eslint/scope-manager/README.md +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts +2 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +5 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -1
- 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.js +4 -4
- 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 +175 -249
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +11 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +1 -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 +2 -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.iterable.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +3 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +82 -78
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +12 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts +10 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +12 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/package.json +5 -5
- package/node_modules/@typescript-eslint/type-utils/LICENSE +21 -0
- package/node_modules/@typescript-eslint/type-utils/README.md +15 -0
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +8 -0
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +51 -0
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts +6 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js +13 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts +8 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +66 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts +6 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js +17 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts +6 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +34 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts +3 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js +47 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts +3 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js +13 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts +8 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +70 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/index.d.ts +15 -0
- package/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/index.js +27 -0
- package/node_modules/@typescript-eslint/type-utils/dist/index.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts +20 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/{eslint-plugin/dist/util → type-utils/dist}/isTypeReadonly.js +52 -14
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts +17 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +71 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts +45 -0
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.js +145 -0
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts +4 -0
- package/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/{eslint-plugin/dist/util → type-utils/dist}/propertyTypes.js +0 -0
- package/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts +4 -0
- package/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/{eslint-plugin/dist/util → type-utils/dist}/requiresQuoting.js +0 -0
- package/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts +11 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +48 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +1 -0
- package/node_modules/@typescript-eslint/type-utils/package.json +70 -0
- package/node_modules/@typescript-eslint/types/README.md +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/package.json +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/README.md +3 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +4 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/globby/package.json +4 -4
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/README.md +26 -6
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/index.d.ts +7 -9
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/index.js +20 -11
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/legacy.js +20 -14
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/package.json +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -5
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/LICENSE +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/README.md +2 -12
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/PatternMatcher.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/PatternMatcher.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +1 -1
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/ReferenceTracker.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/astUtilities.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/astUtilities.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/astUtilities.js.map +1 -1
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/index.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/index.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/index.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/index.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/predicates.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/predicates.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/predicates.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/predicates.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/scopeAnalysis.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/helpers.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/helpers.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/helpers.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/helpers.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/index.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/index.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/index.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/index.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/misc.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/misc.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/misc.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/misc.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/predicates.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/predicates.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/predicates.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ast-utils/predicates.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/InferTypesFromRule.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/InferTypesFromRule.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/InferTypesFromRule.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/InferTypesFromRule.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/RuleCreator.d.ts +8 -8
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/RuleCreator.js +0 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map +1 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/RuleTester.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/RuleTester.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/RuleTester.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/RuleTester.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/applyDefault.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/applyDefault.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/applyDefault.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/applyDefault.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/batchedSingleLineTests.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/batchedSingleLineTests.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/batchedSingleLineTests.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/batchedSingleLineTests.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/deepMerge.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/deepMerge.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/deepMerge.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/deepMerge.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/getParserServices.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/getParserServices.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/getParserServices.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/getParserServices.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/index.d.ts +1 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/eslint-utils/index.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts +14 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/{eslint-plugin/dist/util → utils/dist/eslint-utils}/nullThrows.js +0 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +1 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/index.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/index.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/index.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/index.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/json-schema.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/json-schema.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/json-schema.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/json-schema.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/AST.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/AST.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/AST.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/AST.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/CLIEngine.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/CLIEngine.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/CLIEngine.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/CLIEngine.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/ESLint.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/ESLint.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/ESLint.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/ESLint.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Linter.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Linter.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Linter.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Linter.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/ParserOptions.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/ParserOptions.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/ParserOptions.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/ParserOptions.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Rule.d.ts +8 -8
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Rule.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Rule.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/RuleTester.d.ts +2 -2
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/RuleTester.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/RuleTester.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/RuleTester.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Scope.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Scope.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Scope.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/Scope.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/SourceCode.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/SourceCode.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/SourceCode.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/SourceCode.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/index.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/index.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/index.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint/index.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Definition.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Definition.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Definition.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Definition.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Options.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Options.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Options.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Options.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/PatternVisitor.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/PatternVisitor.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/PatternVisitor.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/PatternVisitor.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Reference.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Reference.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Reference.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Reference.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Referencer.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Referencer.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Referencer.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Referencer.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Scope.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Scope.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Scope.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Scope.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/ScopeManager.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/ScopeManager.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/ScopeManager.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/ScopeManager.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Variable.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Variable.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Variable.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/Variable.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/analyze.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/analyze.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/analyze.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/analyze.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/index.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/index.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/index.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-eslint-scope/index.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-estree.d.ts +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-estree.d.ts.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-estree.js +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/dist/ts-estree.js.map +0 -0
- package/node_modules/@typescript-eslint/{experimental-utils → utils}/package.json +9 -9
- 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 +4 -2
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/package.json +3 -3
- package/node_modules/{@typescript-eslint/typescript-estree/node_modules/array-union → array-union}/index.d.ts +0 -0
- package/node_modules/{@typescript-eslint/typescript-estree/node_modules/array-union → array-union}/index.js +0 -0
- package/node_modules/{@typescript-eslint/typescript-estree/node_modules/array-union → array-union}/license +0 -0
- package/node_modules/{@typescript-eslint/typescript-estree/node_modules/array-union → array-union}/package.json +0 -0
- package/node_modules/{@typescript-eslint/typescript-estree/node_modules/array-union → array-union}/readme.md +0 -0
- package/node_modules/debug/LICENSE +10 -9
- package/node_modules/debug/README.md +24 -1
- package/node_modules/debug/package.json +6 -6
- package/node_modules/debug/src/common.js +1 -1
- package/node_modules/eslint-config-xo-typescript/index.js +113 -84
- package/node_modules/eslint-config-xo-typescript/package.json +4 -5
- package/node_modules/eslint-visitor-keys/README.md +2 -2
- package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +2 -0
- package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +2 -0
- package/node_modules/eslint-visitor-keys/package.json +1 -1
- package/node_modules/fast-glob/README.md +1 -1
- package/node_modules/fast-glob/out/index.js +3 -2
- package/node_modules/fast-glob/out/managers/patterns.d.ts +6 -0
- package/node_modules/fast-glob/out/managers/patterns.js +21 -0
- package/node_modules/fast-glob/out/providers/filters/entry.d.ts +4 -0
- package/node_modules/fast-glob/out/providers/filters/entry.js +5 -1
- package/node_modules/fast-glob/out/utils/pattern.js +17 -5
- package/node_modules/fast-glob/package.json +2 -2
- package/node_modules/picomatch/CHANGELOG.md +10 -0
- package/node_modules/picomatch/README.md +4 -3
- package/node_modules/picomatch/lib/parse.js +8 -1
- package/node_modules/picomatch/package.json +1 -1
- package/package.json +21 -20
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeReadonly.js.map +0 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/nullThrows.js.map +0 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/propertyTypes.js.map +0 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/requiresQuoting.js.map +0 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js +0 -428
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map +0 -1
- package/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.js.map +0 -1
- package/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/Rule.d.ts.map +0 -1
|
@@ -19,13 +19,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
const
|
|
22
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
23
23
|
const util = __importStar(require("../util"));
|
|
24
24
|
function isImportToken(token) {
|
|
25
|
-
return token.type ===
|
|
25
|
+
return token.type === utils_1.AST_TOKEN_TYPES.Keyword && token.value === 'import';
|
|
26
26
|
}
|
|
27
27
|
function isTypeToken(token) {
|
|
28
|
-
return token.type ===
|
|
28
|
+
return token.type === utils_1.AST_TOKEN_TYPES.Identifier && token.value === 'type';
|
|
29
29
|
}
|
|
30
30
|
exports.default = util.createRule({
|
|
31
31
|
name: 'consistent-type-imports',
|
|
@@ -86,20 +86,26 @@ exports.default = util.createRule({
|
|
|
86
86
|
});
|
|
87
87
|
if (node.importKind === 'type') {
|
|
88
88
|
if (!sourceImports.typeOnlyNamedImport &&
|
|
89
|
-
node.specifiers.every(specifier => specifier.type ===
|
|
89
|
+
node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier)) {
|
|
90
90
|
sourceImports.typeOnlyNamedImport = node;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
94
94
|
if (!sourceImports.valueOnlyNamedImport &&
|
|
95
|
-
node.specifiers.every(specifier => specifier.type ===
|
|
95
|
+
node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier)) {
|
|
96
96
|
sourceImports.valueOnlyNamedImport = node;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
const typeSpecifiers = [];
|
|
100
|
+
const inlineTypeSpecifiers = [];
|
|
100
101
|
const valueSpecifiers = [];
|
|
101
102
|
const unusedSpecifiers = [];
|
|
102
103
|
for (const specifier of node.specifiers) {
|
|
104
|
+
if (specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier &&
|
|
105
|
+
specifier.importKind === 'type') {
|
|
106
|
+
inlineTypeSpecifiers.push(specifier);
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
103
109
|
const [variable] = context.getDeclaredVariables(specifier);
|
|
104
110
|
if (variable.references.length === 0) {
|
|
105
111
|
unusedSpecifiers.push(specifier);
|
|
@@ -113,9 +119,9 @@ exports.default = util.createRule({
|
|
|
113
119
|
* export default Type;
|
|
114
120
|
*/
|
|
115
121
|
if (((_a = ref.identifier.parent) === null || _a === void 0 ? void 0 : _a.type) ===
|
|
116
|
-
|
|
122
|
+
utils_1.AST_NODE_TYPES.ExportSpecifier ||
|
|
117
123
|
((_b = ref.identifier.parent) === null || _b === void 0 ? void 0 : _b.type) ===
|
|
118
|
-
|
|
124
|
+
utils_1.AST_NODE_TYPES.ExportDefaultDeclaration) {
|
|
119
125
|
if (ref.isValueReference && ref.isTypeReference) {
|
|
120
126
|
return node.importKind === 'type';
|
|
121
127
|
}
|
|
@@ -128,9 +134,9 @@ exports.default = util.createRule({
|
|
|
128
134
|
// CASE 1:
|
|
129
135
|
// `type T = typeof foo` will create a value reference because "foo" must be a value type
|
|
130
136
|
// however this value reference is safe to use with type-only imports
|
|
131
|
-
case
|
|
137
|
+
case utils_1.AST_NODE_TYPES.TSTypeQuery:
|
|
132
138
|
return true;
|
|
133
|
-
case
|
|
139
|
+
case utils_1.AST_NODE_TYPES.TSQualifiedName:
|
|
134
140
|
// TSTypeQuery must have a TSESTree.EntityName as its child, so we can filter here and break early
|
|
135
141
|
if (parent.left !== child) {
|
|
136
142
|
return false;
|
|
@@ -144,9 +150,9 @@ exports.default = util.createRule({
|
|
|
144
150
|
// `type T = { [foo]: string }` will create a value reference because "foo" must be a value type
|
|
145
151
|
// however this value reference is safe to use with type-only imports.
|
|
146
152
|
// Also this is represented as a non-type AST - hence it uses MemberExpression
|
|
147
|
-
case
|
|
153
|
+
case utils_1.AST_NODE_TYPES.TSPropertySignature:
|
|
148
154
|
return parent.key === child;
|
|
149
|
-
case
|
|
155
|
+
case utils_1.AST_NODE_TYPES.MemberExpression:
|
|
150
156
|
if (parent.object !== child) {
|
|
151
157
|
return false;
|
|
152
158
|
}
|
|
@@ -176,6 +182,7 @@ exports.default = util.createRule({
|
|
|
176
182
|
typeSpecifiers,
|
|
177
183
|
valueSpecifiers,
|
|
178
184
|
unusedSpecifiers,
|
|
185
|
+
inlineTypeSpecifiers,
|
|
179
186
|
});
|
|
180
187
|
}
|
|
181
188
|
},
|
|
@@ -192,7 +199,7 @@ exports.default = util.createRule({
|
|
|
192
199
|
node: report.node,
|
|
193
200
|
messageId: 'typeOverValue',
|
|
194
201
|
*fix(fixer) {
|
|
195
|
-
yield*
|
|
202
|
+
yield* fixToTypeImportDeclaration(fixer, report, sourceImports);
|
|
196
203
|
},
|
|
197
204
|
});
|
|
198
205
|
}
|
|
@@ -235,10 +242,10 @@ exports.default = util.createRule({
|
|
|
235
242
|
})();
|
|
236
243
|
context.report(Object.assign(Object.assign({ node: report.node }, message), { *fix(fixer) {
|
|
237
244
|
if (isTypeImport) {
|
|
238
|
-
yield*
|
|
245
|
+
yield* fixToValueImportDeclaration(fixer, report, sourceImports);
|
|
239
246
|
}
|
|
240
247
|
else {
|
|
241
|
-
yield*
|
|
248
|
+
yield* fixToTypeImportDeclaration(fixer, report, sourceImports);
|
|
242
249
|
}
|
|
243
250
|
} }));
|
|
244
251
|
}
|
|
@@ -253,7 +260,16 @@ exports.default = util.createRule({
|
|
|
253
260
|
node,
|
|
254
261
|
messageId: 'valueOverType',
|
|
255
262
|
fix(fixer) {
|
|
256
|
-
return
|
|
263
|
+
return fixRemoveTypeSpecifierFromImportDeclaration(fixer, node);
|
|
264
|
+
},
|
|
265
|
+
});
|
|
266
|
+
},
|
|
267
|
+
'ImportSpecifier[importKind = "type"]'(node) {
|
|
268
|
+
context.report({
|
|
269
|
+
node,
|
|
270
|
+
messageId: 'valueOverType',
|
|
271
|
+
fix(fixer) {
|
|
272
|
+
return fixRemoveTypeSpecifierFromImportSpecifier(fixer, node);
|
|
257
273
|
},
|
|
258
274
|
});
|
|
259
275
|
},
|
|
@@ -270,11 +286,11 @@ exports.default = util.createRule({
|
|
|
270
286
|
: {}));
|
|
271
287
|
function classifySpecifier(node) {
|
|
272
288
|
var _a;
|
|
273
|
-
const defaultSpecifier = node.specifiers[0].type ===
|
|
289
|
+
const defaultSpecifier = node.specifiers[0].type === utils_1.AST_NODE_TYPES.ImportDefaultSpecifier
|
|
274
290
|
? node.specifiers[0]
|
|
275
291
|
: null;
|
|
276
|
-
const namespaceSpecifier = (_a = node.specifiers.find((specifier) => specifier.type ===
|
|
277
|
-
const namedSpecifiers = node.specifiers.filter((specifier) => specifier.type ===
|
|
292
|
+
const namespaceSpecifier = (_a = node.specifiers.find((specifier) => specifier.type === utils_1.AST_NODE_TYPES.ImportNamespaceSpecifier)) !== null && _a !== void 0 ? _a : null;
|
|
293
|
+
const namedSpecifiers = node.specifiers.filter((specifier) => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier);
|
|
278
294
|
return {
|
|
279
295
|
defaultSpecifier,
|
|
280
296
|
namespaceSpecifier,
|
|
@@ -294,7 +310,6 @@ exports.default = util.createRule({
|
|
|
294
310
|
const typeNamedSpecifiersTexts = [];
|
|
295
311
|
const removeTypeNamedSpecifiers = [];
|
|
296
312
|
if (typeNamedSpecifiers.length === allNamedSpecifiers.length) {
|
|
297
|
-
// e.g.
|
|
298
313
|
// import Foo, {Type1, Type2} from 'foo'
|
|
299
314
|
// import DefType, {Type1, Type2} from 'foo'
|
|
300
315
|
const openingBraceToken = util.nullThrows(sourceCode.getTokenBefore(typeNamedSpecifiers[0], util.isOpeningBraceToken), util.NullThrowsReasons.MissingToken('{', node.type));
|
|
@@ -367,39 +382,36 @@ exports.default = util.createRule({
|
|
|
367
382
|
* import type { Already, Type1, Type2 } from 'foo'
|
|
368
383
|
* ^^^^^^^^^^^^^ insert
|
|
369
384
|
*/
|
|
370
|
-
function
|
|
385
|
+
function fixInsertNamedSpecifiersInNamedSpecifierList(fixer, target, insertText) {
|
|
371
386
|
const closingBraceToken = util.nullThrows(sourceCode.getFirstTokenBetween(sourceCode.getFirstToken(target), target.source, util.isClosingBraceToken), util.NullThrowsReasons.MissingToken('}', target.type));
|
|
372
387
|
const before = sourceCode.getTokenBefore(closingBraceToken);
|
|
373
388
|
if (!util.isCommaToken(before) && !util.isOpeningBraceToken(before)) {
|
|
374
|
-
insertText =
|
|
389
|
+
insertText = `,${insertText}`;
|
|
375
390
|
}
|
|
376
|
-
return fixer.insertTextBefore(closingBraceToken, insertText);
|
|
391
|
+
return fixer.insertTextBefore(closingBraceToken, `${insertText}`);
|
|
377
392
|
}
|
|
378
|
-
function*
|
|
393
|
+
function* fixToTypeImportDeclaration(fixer, report, sourceImports) {
|
|
379
394
|
const { node } = report;
|
|
380
395
|
const { defaultSpecifier, namespaceSpecifier, namedSpecifiers } = classifySpecifier(node);
|
|
381
396
|
if (namespaceSpecifier && !defaultSpecifier) {
|
|
382
|
-
// e.g.
|
|
383
397
|
// import * as types from 'foo'
|
|
384
|
-
yield*
|
|
398
|
+
yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, false);
|
|
385
399
|
return;
|
|
386
400
|
}
|
|
387
401
|
else if (defaultSpecifier) {
|
|
388
402
|
if (report.typeSpecifiers.includes(defaultSpecifier) &&
|
|
389
403
|
namedSpecifiers.length === 0 &&
|
|
390
404
|
!namespaceSpecifier) {
|
|
391
|
-
// e.g.
|
|
392
405
|
// import Type from 'foo'
|
|
393
|
-
yield*
|
|
406
|
+
yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, true);
|
|
394
407
|
return;
|
|
395
408
|
}
|
|
396
409
|
}
|
|
397
410
|
else {
|
|
398
411
|
if (namedSpecifiers.every(specifier => report.typeSpecifiers.includes(specifier)) &&
|
|
399
412
|
!namespaceSpecifier) {
|
|
400
|
-
// e.g.
|
|
401
413
|
// import {Type1, Type2} from 'foo'
|
|
402
|
-
yield*
|
|
414
|
+
yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, false);
|
|
403
415
|
return;
|
|
404
416
|
}
|
|
405
417
|
}
|
|
@@ -408,7 +420,7 @@ exports.default = util.createRule({
|
|
|
408
420
|
const afterFixes = [];
|
|
409
421
|
if (typeNamedSpecifiers.length) {
|
|
410
422
|
if (sourceImports.typeOnlyNamedImport) {
|
|
411
|
-
const insertTypeNamedSpecifiers =
|
|
423
|
+
const insertTypeNamedSpecifiers = fixInsertNamedSpecifiersInNamedSpecifierList(fixer, sourceImports.typeOnlyNamedImport, fixesNamedSpecifiers.typeNamedSpecifiersText);
|
|
412
424
|
if (sourceImports.typeOnlyNamedImport.range[1] <= node.range[0]) {
|
|
413
425
|
yield insertTypeNamedSpecifiers;
|
|
414
426
|
}
|
|
@@ -423,7 +435,6 @@ exports.default = util.createRule({
|
|
|
423
435
|
const fixesRemoveTypeNamespaceSpecifier = [];
|
|
424
436
|
if (namespaceSpecifier &&
|
|
425
437
|
report.typeSpecifiers.includes(namespaceSpecifier)) {
|
|
426
|
-
// e.g.
|
|
427
438
|
// import Foo, * as Type from 'foo'
|
|
428
439
|
// import DefType, * as Type from 'foo'
|
|
429
440
|
// import DefType, * as Type from 'foo'
|
|
@@ -464,7 +475,7 @@ exports.default = util.createRule({
|
|
|
464
475
|
yield* fixesRemoveTypeNamespaceSpecifier;
|
|
465
476
|
yield* afterFixes;
|
|
466
477
|
}
|
|
467
|
-
function*
|
|
478
|
+
function* fixInsertTypeSpecifierForImportDeclaration(fixer, node, isDefaultImport) {
|
|
468
479
|
// import type Foo from 'foo'
|
|
469
480
|
// ^^^^^ insert
|
|
470
481
|
const importToken = util.nullThrows(sourceCode.getFirstToken(node, isImportToken), util.NullThrowsReasons.MissingToken('import', node.type));
|
|
@@ -490,30 +501,34 @@ exports.default = util.createRule({
|
|
|
490
501
|
}
|
|
491
502
|
}
|
|
492
503
|
}
|
|
504
|
+
// make sure we don't do anything like `import type {type T} from 'foo';`
|
|
505
|
+
for (const specifier of node.specifiers) {
|
|
506
|
+
if (specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier &&
|
|
507
|
+
specifier.importKind === 'type') {
|
|
508
|
+
yield* fixRemoveTypeSpecifierFromImportSpecifier(fixer, specifier);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
493
511
|
}
|
|
494
|
-
function*
|
|
512
|
+
function* fixToValueImportDeclaration(fixer, report, sourceImports) {
|
|
495
513
|
const { node } = report;
|
|
496
514
|
const { defaultSpecifier, namespaceSpecifier, namedSpecifiers } = classifySpecifier(node);
|
|
497
515
|
if (namespaceSpecifier) {
|
|
498
|
-
// e.g.
|
|
499
516
|
// import type * as types from 'foo'
|
|
500
|
-
yield*
|
|
517
|
+
yield* fixRemoveTypeSpecifierFromImportDeclaration(fixer, node);
|
|
501
518
|
return;
|
|
502
519
|
}
|
|
503
520
|
else if (defaultSpecifier) {
|
|
504
521
|
if (report.valueSpecifiers.includes(defaultSpecifier) &&
|
|
505
522
|
namedSpecifiers.length === 0) {
|
|
506
|
-
// e.g.
|
|
507
523
|
// import type Type from 'foo'
|
|
508
|
-
yield*
|
|
524
|
+
yield* fixRemoveTypeSpecifierFromImportDeclaration(fixer, node);
|
|
509
525
|
return;
|
|
510
526
|
}
|
|
511
527
|
}
|
|
512
528
|
else {
|
|
513
529
|
if (namedSpecifiers.every(specifier => report.valueSpecifiers.includes(specifier))) {
|
|
514
|
-
// e.g.
|
|
515
530
|
// import type {Type1, Type2} from 'foo'
|
|
516
|
-
yield*
|
|
531
|
+
yield* fixRemoveTypeSpecifierFromImportDeclaration(fixer, node);
|
|
517
532
|
return;
|
|
518
533
|
}
|
|
519
534
|
}
|
|
@@ -522,7 +537,7 @@ exports.default = util.createRule({
|
|
|
522
537
|
const afterFixes = [];
|
|
523
538
|
if (valueNamedSpecifiers.length) {
|
|
524
539
|
if (sourceImports.valueOnlyNamedImport) {
|
|
525
|
-
const insertTypeNamedSpecifiers =
|
|
540
|
+
const insertTypeNamedSpecifiers = fixInsertNamedSpecifiersInNamedSpecifierList(fixer, sourceImports.valueOnlyNamedImport, fixesNamedSpecifiers.typeNamedSpecifiersText);
|
|
526
541
|
if (sourceImports.valueOnlyNamedImport.range[1] <= node.range[0]) {
|
|
527
542
|
yield insertTypeNamedSpecifiers;
|
|
528
543
|
}
|
|
@@ -537,7 +552,7 @@ exports.default = util.createRule({
|
|
|
537
552
|
yield* fixesNamedSpecifiers.removeTypeNamedSpecifiers;
|
|
538
553
|
yield* afterFixes;
|
|
539
554
|
}
|
|
540
|
-
function*
|
|
555
|
+
function* fixRemoveTypeSpecifierFromImportDeclaration(fixer, node) {
|
|
541
556
|
var _a, _b;
|
|
542
557
|
// import type Foo from 'foo'
|
|
543
558
|
// ^^^^ remove
|
|
@@ -546,6 +561,11 @@ exports.default = util.createRule({
|
|
|
546
561
|
const afterToken = util.nullThrows(sourceCode.getTokenAfter(typeToken, { includeComments: true }), util.NullThrowsReasons.MissingToken('any token', node.type));
|
|
547
562
|
yield fixer.removeRange([typeToken.range[0], afterToken.range[0]]);
|
|
548
563
|
}
|
|
564
|
+
function* fixRemoveTypeSpecifierFromImportSpecifier(fixer, node) {
|
|
565
|
+
const typeToken = util.nullThrows(sourceCode.getFirstToken(node, isTypeToken), util.NullThrowsReasons.MissingToken('type', node.type));
|
|
566
|
+
const afterToken = util.nullThrows(sourceCode.getTokenAfter(typeToken, { includeComments: true }), util.NullThrowsReasons.MissingToken('any token', node.type));
|
|
567
|
+
yield fixer.removeRange([typeToken.range[0], afterToken.range[0]]);
|
|
568
|
+
}
|
|
549
569
|
},
|
|
550
570
|
});
|
|
551
571
|
//# sourceMappingURL=consistent-type-imports.js.map
|
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consistent-type-imports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAK+C;AAC/C,8CAAgC;AA0BhC,SAAS,aAAa,CACpB,KAAqB;IAErB,OAAO,KAAK,CAAC,IAAI,KAAK,oCAAe,CAAC,OAAO,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,CAAC;AAC5E,CAAC;AAED,SAAS,WAAW,CAClB,KAAqB;IAErB,OAAO,KAAK,CAAC,IAAI,KAAK,oCAAe,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,KAAK,MAAM,CAAC;AAC7E,CAAC;AAUD,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,aAAa,EACX,2EAA2E;YAC7E,uBAAuB,EACrB,iDAAiD;YACnD,kBAAkB,EAAE,+CAA+C;YACnE,qBAAqB,EACnB,8DAA8D;YAChE,iBAAiB,EACf,4DAA4D;YAC9D,aAAa,EAAE,8CAA8C;YAC7D,uBAAuB,EAAE,4CAA4C;SACtE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;qBAC1C;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,OAAO,EAAE,MAAM;KAChB;IAED,cAAc,EAAE;QACd;YACE,MAAM,EAAE,cAAc;YACtB,uBAAuB,EAAE,IAAI;SAC9B;KACF;IAED,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;;QACtB,M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AY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CACvD,CAAC;YACF,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAChC,UAAU,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,EAC9D,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAC5D,CAAC;YACF,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const util_1 = require("../util");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
5
5
|
exports.default = (0, util_1.createRule)({
|
|
6
6
|
name: 'default-param-last',
|
|
7
7
|
meta: {
|
|
@@ -32,15 +32,15 @@ exports.default = (0, util_1.createRule)({
|
|
|
32
32
|
* @private
|
|
33
33
|
*/
|
|
34
34
|
function isPlainParam(node) {
|
|
35
|
-
return !(node.type ===
|
|
36
|
-
node.type ===
|
|
35
|
+
return !(node.type === utils_1.AST_NODE_TYPES.AssignmentPattern ||
|
|
36
|
+
node.type === utils_1.AST_NODE_TYPES.RestElement ||
|
|
37
37
|
isOptionalParam(node));
|
|
38
38
|
}
|
|
39
39
|
function checkDefaultParamLast(node) {
|
|
40
40
|
let hasSeenPlainParam = false;
|
|
41
41
|
for (let i = node.params.length - 1; i >= 0; i--) {
|
|
42
42
|
const current = node.params[i];
|
|
43
|
-
const param = current.type ===
|
|
43
|
+
const param = current.type === utils_1.AST_NODE_TYPES.TSParameterProperty
|
|
44
44
|
? current.parameter
|
|
45
45
|
: current;
|
|
46
46
|
if (isPlainParam(param)) {
|
|
@@ -49,7 +49,7 @@ exports.default = (0, util_1.createRule)({
|
|
|
49
49
|
}
|
|
50
50
|
if (hasSeenPlainParam &&
|
|
51
51
|
(isOptionalParam(param) ||
|
|
52
|
-
param.type ===
|
|
52
|
+
param.type === utils_1.AST_NODE_TYPES.AssignmentPattern)) {
|
|
53
53
|
context.report({ node: current, messageId: 'shouldBeLast' });
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-param-last.js","sourceRoot":"","sources":["../../src/rules/default-param-last.ts"],"names":[],"mappings":";;AAAA,kCAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"default-param-last.js","sourceRoot":"","sources":["../../src/rules/default-param-last.ts"],"names":[],"mappings":";;AAAA,kCAAqC;AACrC,oDAAoE;AAEpE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,YAAY,EAAE,oCAAoC;SACnD;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;;WAIG;QACH,SAAS,eAAe,CAAC,IAAwB;YAC/C,OAAO,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC;QACtD,CAAC;QAED;;;;WAIG;QACH,SAAS,YAAY,CAAC,IAAwB;YAC5C,OAAO,CAAC,CACN,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;gBAC9C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW;gBACxC,eAAe,CAAC,IAAI,CAAC,CACtB,CAAC;QACJ,CAAC;QAED,SAAS,qBAAqB,CAC5B,IAG+B;YAE/B,IAAI,iBAAiB,GAAG,KAAK,CAAC;YAC9B,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;gBAChD,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;gBAC/B,MAAM,KAAK,GACT,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;oBACjD,CAAC,CAAC,OAAO,CAAC,SAAS;oBACnB,CAAC,CAAC,OAAO,CAAC;gBAEd,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE;oBACvB,iBAAiB,GAAG,IAAI,CAAC;oBACzB,SAAS;iBACV;gBAED,IACE,iBAAiB;oBACjB,CAAC,eAAe,CAAC,KAAK,CAAC;wBACrB,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,CAAC,EAClD;oBACA,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC;iBAC9D;aACF;QACH,CAAC;QAED,OAAO;YACL,uBAAuB,EAAE,qBAAqB;YAC9C,mBAAmB,EAAE,qBAAqB;YAC1C,kBAAkB,EAAE,qBAAqB;SAC1C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js
CHANGED
|
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
const
|
|
22
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
23
23
|
const util = __importStar(require("../util"));
|
|
24
24
|
const explicitReturnTypeUtils_1 = require("../util/explicitReturnTypeUtils");
|
|
25
25
|
exports.default = util.createRule({
|
|
@@ -52,6 +52,12 @@ exports.default = util.createRule({
|
|
|
52
52
|
allowConciseArrowFunctionExpressionsStartingWithVoid: {
|
|
53
53
|
type: 'boolean',
|
|
54
54
|
},
|
|
55
|
+
allowedNames: {
|
|
56
|
+
type: 'array',
|
|
57
|
+
items: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
55
61
|
},
|
|
56
62
|
additionalProperties: false,
|
|
57
63
|
},
|
|
@@ -64,26 +70,84 @@ exports.default = util.createRule({
|
|
|
64
70
|
allowHigherOrderFunctions: true,
|
|
65
71
|
allowDirectConstAssertionInArrowFunctions: true,
|
|
66
72
|
allowConciseArrowFunctionExpressionsStartingWithVoid: false,
|
|
73
|
+
allowedNames: [],
|
|
67
74
|
},
|
|
68
75
|
],
|
|
69
76
|
create(context, [options]) {
|
|
70
77
|
const sourceCode = context.getSourceCode();
|
|
78
|
+
function isAllowedName(node) {
|
|
79
|
+
var _a;
|
|
80
|
+
if (!options.allowedNames || !options.allowedNames.length) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression ||
|
|
84
|
+
node.type === utils_1.AST_NODE_TYPES.FunctionExpression) {
|
|
85
|
+
const parent = node.parent;
|
|
86
|
+
let funcName;
|
|
87
|
+
if ((_a = node.id) === null || _a === void 0 ? void 0 : _a.name) {
|
|
88
|
+
funcName = node.id.name;
|
|
89
|
+
}
|
|
90
|
+
else if (parent) {
|
|
91
|
+
switch (parent.type) {
|
|
92
|
+
case utils_1.AST_NODE_TYPES.VariableDeclarator: {
|
|
93
|
+
if (parent.id.type === utils_1.AST_NODE_TYPES.Identifier) {
|
|
94
|
+
funcName = parent.id.name;
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
case utils_1.AST_NODE_TYPES.MethodDefinition:
|
|
99
|
+
case utils_1.AST_NODE_TYPES.PropertyDefinition:
|
|
100
|
+
case utils_1.AST_NODE_TYPES.Property: {
|
|
101
|
+
if (parent.key.type === utils_1.AST_NODE_TYPES.Identifier &&
|
|
102
|
+
parent.computed === false) {
|
|
103
|
+
funcName = parent.key.name;
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if (!!funcName && !!options.allowedNames.includes(funcName)) {
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (node.type === utils_1.AST_NODE_TYPES.FunctionDeclaration &&
|
|
114
|
+
node.id &&
|
|
115
|
+
node.id.type === utils_1.AST_NODE_TYPES.Identifier &&
|
|
116
|
+
!!options.allowedNames.includes(node.id.name)) {
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
71
121
|
return {
|
|
72
122
|
'ArrowFunctionExpression, FunctionExpression'(node) {
|
|
73
123
|
if (options.allowConciseArrowFunctionExpressionsStartingWithVoid &&
|
|
74
|
-
node.type ===
|
|
124
|
+
node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression &&
|
|
75
125
|
node.expression &&
|
|
76
|
-
node.body.type ===
|
|
126
|
+
node.body.type === utils_1.AST_NODE_TYPES.UnaryExpression &&
|
|
77
127
|
node.body.operator === 'void') {
|
|
78
128
|
return;
|
|
79
129
|
}
|
|
80
|
-
|
|
130
|
+
if (isAllowedName(node)) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (options.allowTypedFunctionExpressions &&
|
|
134
|
+
((0, explicitReturnTypeUtils_1.isValidFunctionExpressionReturnType)(node, options) ||
|
|
135
|
+
(0, explicitReturnTypeUtils_1.ancestorHasReturnType)(node))) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
(0, explicitReturnTypeUtils_1.checkFunctionReturnType)(node, options, sourceCode, loc => context.report({
|
|
81
139
|
node,
|
|
82
140
|
loc,
|
|
83
141
|
messageId: 'missingReturnType',
|
|
84
142
|
}));
|
|
85
143
|
},
|
|
86
144
|
FunctionDeclaration(node) {
|
|
145
|
+
if (isAllowedName(node)) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (options.allowTypedFunctionExpressions && node.returnType) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
87
151
|
(0, explicitReturnTypeUtils_1.checkFunctionReturnType)(node, options, sourceCode, loc => context.report({
|
|
88
152
|
node,
|
|
89
153
|
loc,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explicit-function-return-type.js","sourceRoot":"","sources":["../../src/rules/explicit-function-return-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"explicit-function-return-type.js","sourceRoot":"","sources":["../../src/rules/explicit-function-return-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoE;AACpE,8CAAgC;AAChC,6EAIyC;AAczC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,kCAAkC;SACtD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;qBAChB;oBACD,6BAA6B,EAAE;wBAC7B,IAAI,EAAE,SAAS;qBAChB;oBACD,yBAAyB,EAAE;wBACzB,IAAI,EAAE,SAAS;qBAChB;oBACD,yCAAyC,EAAE;wBACzC,IAAI,EAAE,SAAS;qBAChB;oBACD,oDAAoD,EAAE;wBACpD,IAAI,EAAE,SAAS;qBAChB;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF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AAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;YACJ,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO;iBACR;gBACD,IAAI,OAAO,CAAC,6BAA6B,IAAI,IAAI,CAAC,UAAU,EAAE;oBAC5D,OAAO;iBACR;gBAED,IAAA,iDAAuB,EAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,CACvD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js
CHANGED
|
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
const
|
|
22
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
23
23
|
const util = __importStar(require("../util"));
|
|
24
24
|
const accessibilityLevel = { enum: ['explicit', 'no-public', 'off'] };
|
|
25
25
|
exports.default = util.createRule({
|
|
@@ -94,7 +94,7 @@ exports.default = util.createRule({
|
|
|
94
94
|
* @param methodDefinition The node representing a MethodDefinition.
|
|
95
95
|
*/
|
|
96
96
|
function checkMethodAccessibilityModifier(methodDefinition) {
|
|
97
|
-
if (methodDefinition.key.type ===
|
|
97
|
+
if (methodDefinition.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) {
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
let nodeType = 'method definition';
|
|
@@ -133,7 +133,7 @@ exports.default = util.createRule({
|
|
|
133
133
|
let rangeToRemove;
|
|
134
134
|
for (let i = 0; i < tokens.length; i++) {
|
|
135
135
|
const token = tokens[i];
|
|
136
|
-
if (token.type ===
|
|
136
|
+
if (token.type === utils_1.AST_TOKEN_TYPES.Keyword &&
|
|
137
137
|
token.value === 'public') {
|
|
138
138
|
const commensAfterPublicKeyword = sourceCode.getCommentsAfter(token);
|
|
139
139
|
if (commensAfterPublicKeyword.length) {
|
|
@@ -161,7 +161,7 @@ exports.default = util.createRule({
|
|
|
161
161
|
* @param propertyDefinition The node representing a PropertyDefinition.
|
|
162
162
|
*/
|
|
163
163
|
function checkPropertyAccessibilityModifier(propertyDefinition) {
|
|
164
|
-
if (propertyDefinition.key.type ===
|
|
164
|
+
if (propertyDefinition.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) {
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
167
|
const nodeType = 'class property';
|
|
@@ -182,11 +182,11 @@ exports.default = util.createRule({
|
|
|
182
182
|
function checkParameterPropertyAccessibilityModifier(node) {
|
|
183
183
|
const nodeType = 'parameter property';
|
|
184
184
|
// HAS to be an identifier or assignment or TSC will throw
|
|
185
|
-
if (node.parameter.type !==
|
|
186
|
-
node.parameter.type !==
|
|
185
|
+
if (node.parameter.type !== utils_1.AST_NODE_TYPES.Identifier &&
|
|
186
|
+
node.parameter.type !== utils_1.AST_NODE_TYPES.AssignmentPattern) {
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
|
-
const nodeName = node.parameter.type ===
|
|
189
|
+
const nodeName = node.parameter.type === utils_1.AST_NODE_TYPES.Identifier
|
|
190
190
|
? node.parameter.name
|
|
191
191
|
: // has to be an Identifier or TSC will throw an error
|
|
192
192
|
node.parameter.left.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explicit-member-accessibility.js","sourceRoot":"","sources":["../../src/rules/explicit-member-accessibility.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"explicit-member-accessibility.js","sourceRoot":"","sources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