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
|
@@ -20,9 +20,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.isTypeReadonly = exports.readonlynessOptionsDefaults = exports.readonlynessOptionsSchema = void 0;
|
|
23
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
23
24
|
const tsutils_1 = require("tsutils");
|
|
24
25
|
const ts = __importStar(require("typescript"));
|
|
25
|
-
const nullThrows_1 = require("./nullThrows");
|
|
26
26
|
const propertyTypes_1 = require("./propertyTypes");
|
|
27
27
|
exports.readonlynessOptionsSchema = {
|
|
28
28
|
type: 'object',
|
|
@@ -61,7 +61,7 @@ function isTypeReadonlyArrayOrTuple(checker, type, options, seenTypes) {
|
|
|
61
61
|
return 3 /* Readonly */;
|
|
62
62
|
}
|
|
63
63
|
if (checker.isArrayType(type)) {
|
|
64
|
-
const symbol =
|
|
64
|
+
const symbol = utils_1.ESLintUtils.nullThrows(type.getSymbol(), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('symbol', 'array type'));
|
|
65
65
|
const escapedName = symbol.getEscapedName();
|
|
66
66
|
if (escapedName === 'Array') {
|
|
67
67
|
return 2 /* Mutable */;
|
|
@@ -80,9 +80,10 @@ function isTypeReadonlyObject(checker, type, options, seenTypes) {
|
|
|
80
80
|
function checkIndexSignature(kind) {
|
|
81
81
|
const indexInfo = checker.getIndexInfoOfType(type, kind);
|
|
82
82
|
if (indexInfo) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
if (!indexInfo.isReadonly) {
|
|
84
|
+
return 2 /* Mutable */;
|
|
85
|
+
}
|
|
86
|
+
return isTypeReadonlyRecurser(checker, indexInfo.type, options, seenTypes);
|
|
86
87
|
}
|
|
87
88
|
return 1 /* UnknownType */;
|
|
88
89
|
}
|
|
@@ -90,13 +91,26 @@ function isTypeReadonlyObject(checker, type, options, seenTypes) {
|
|
|
90
91
|
if (properties.length) {
|
|
91
92
|
// ensure the properties are marked as readonly
|
|
92
93
|
for (const property of properties) {
|
|
93
|
-
if (
|
|
94
|
-
(
|
|
95
|
-
property.valueDeclaration !== undefined &&
|
|
94
|
+
if (options.treatMethodsAsReadonly) {
|
|
95
|
+
if (property.valueDeclaration !== undefined &&
|
|
96
96
|
hasSymbol(property.valueDeclaration) &&
|
|
97
|
-
(0, tsutils_1.isSymbolFlagSet)(property.valueDeclaration.symbol, ts.SymbolFlags.Method))
|
|
98
|
-
|
|
97
|
+
(0, tsutils_1.isSymbolFlagSet)(property.valueDeclaration.symbol, ts.SymbolFlags.Method)) {
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
const declarations = property.getDeclarations();
|
|
101
|
+
const lastDeclaration = declarations !== undefined && declarations.length > 0
|
|
102
|
+
? declarations[declarations.length - 1]
|
|
103
|
+
: undefined;
|
|
104
|
+
if (lastDeclaration !== undefined &&
|
|
105
|
+
hasSymbol(lastDeclaration) &&
|
|
106
|
+
(0, tsutils_1.isSymbolFlagSet)(lastDeclaration.symbol, ts.SymbolFlags.Method)) {
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
99
109
|
}
|
|
110
|
+
if ((0, tsutils_1.isPropertyReadonlyInType)(type, property.getEscapedName(), checker)) {
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
return 2 /* Mutable */;
|
|
100
114
|
}
|
|
101
115
|
// all properties were readonly
|
|
102
116
|
// now ensure that all of the values are readonly also.
|
|
@@ -104,7 +118,7 @@ function isTypeReadonlyObject(checker, type, options, seenTypes) {
|
|
|
104
118
|
// as we might be able to bail out early due to a mutable property before
|
|
105
119
|
// doing this deep, potentially expensive check.
|
|
106
120
|
for (const property of properties) {
|
|
107
|
-
const propertyType =
|
|
121
|
+
const propertyType = utils_1.ESLintUtils.nullThrows((0, propertyTypes_1.getTypeOfPropertyOfType)(checker, type, property), utils_1.ESLintUtils.NullThrowsReasons.MissingToken(`property "${property.name}"`, 'type'));
|
|
108
122
|
// handle recursive types.
|
|
109
123
|
// we only need this simple check, because a mutable recursive type will break via the above prop readonly check
|
|
110
124
|
if (seenTypes.has(propertyType)) {
|
|
@@ -132,13 +146,37 @@ function isTypeReadonlyRecurser(checker, type, options, seenTypes) {
|
|
|
132
146
|
if ((0, tsutils_1.isUnionType)(type)) {
|
|
133
147
|
// all types in the union must be readonly
|
|
134
148
|
const result = (0, tsutils_1.unionTypeParts)(type).every(t => seenTypes.has(t) ||
|
|
135
|
-
isTypeReadonlyRecurser(checker, t, options, seenTypes)
|
|
149
|
+
isTypeReadonlyRecurser(checker, t, options, seenTypes) ===
|
|
150
|
+
3 /* Readonly */);
|
|
151
|
+
const readonlyness = result ? 3 /* Readonly */ : 2 /* Mutable */;
|
|
152
|
+
return readonlyness;
|
|
153
|
+
}
|
|
154
|
+
if ((0, tsutils_1.isIntersectionType)(type)) {
|
|
155
|
+
// Special case for handling arrays/tuples (as readonly arrays/tuples always have mutable methods).
|
|
156
|
+
if (type.types.some(t => checker.isArrayType(t) || checker.isTupleType(t))) {
|
|
157
|
+
const allReadonlyParts = type.types.every(t => seenTypes.has(t) ||
|
|
158
|
+
isTypeReadonlyRecurser(checker, t, options, seenTypes) ===
|
|
159
|
+
3 /* Readonly */);
|
|
160
|
+
return allReadonlyParts ? 3 /* Readonly */ : 2 /* Mutable */;
|
|
161
|
+
}
|
|
162
|
+
// Normal case.
|
|
163
|
+
const isReadonlyObject = isTypeReadonlyObject(checker, type, options, seenTypes);
|
|
164
|
+
if (isReadonlyObject !== 1 /* UnknownType */) {
|
|
165
|
+
return isReadonlyObject;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
if ((0, tsutils_1.isConditionalType)(type)) {
|
|
169
|
+
const result = [type.root.node.trueType, type.root.node.falseType]
|
|
170
|
+
.map(checker.getTypeFromTypeNode)
|
|
171
|
+
.every(t => seenTypes.has(t) ||
|
|
172
|
+
isTypeReadonlyRecurser(checker, t, options, seenTypes) ===
|
|
173
|
+
3 /* Readonly */);
|
|
136
174
|
const readonlyness = result ? 3 /* Readonly */ : 2 /* Mutable */;
|
|
137
175
|
return readonlyness;
|
|
138
176
|
}
|
|
139
177
|
// all non-object, non-intersection types are readonly.
|
|
140
178
|
// this should only be primitive types
|
|
141
|
-
if (!(0, tsutils_1.isObjectType)(type)
|
|
179
|
+
if (!(0, tsutils_1.isObjectType)(type)) {
|
|
142
180
|
return 3 /* Readonly */;
|
|
143
181
|
}
|
|
144
182
|
// pure function types are readonly
|
|
@@ -159,7 +197,7 @@ function isTypeReadonlyRecurser(checker, type, options, seenTypes) {
|
|
|
159
197
|
/**
|
|
160
198
|
* Checks if the given type is readonly
|
|
161
199
|
*/
|
|
162
|
-
function isTypeReadonly(checker, type, options) {
|
|
200
|
+
function isTypeReadonly(checker, type, options = exports.readonlynessOptionsDefaults) {
|
|
163
201
|
return (isTypeReadonlyRecurser(checker, type, options, new Set()) ===
|
|
164
202
|
3 /* Readonly */);
|
|
165
203
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isTypeReadonly.js","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuD;AACvD,qCAQiB;AACjB,+CAAiC;AACjC,mDAA0D;AAe7C,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,sBAAsB,EAAE;YACtB,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEW,QAAA,2BAA2B,GAAwB;IAC9D,sBAAsB,EAAE,KAAK;CAC9B,CAAC;AAEF,SAAS,SAAS,CAAC,IAAa;IAC9B,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI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,CACF,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;YAChB,sBAAsB,CAAC,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC;gCAC/B,CAC1B,CAAC;QAEJ,MAAM,YAAY,GAAG,MAAM,CAAC,CAAC,kBAAuB,CAAC,gBAAqB,CAAC;QAC3E,OAAO,YAAY,CAAC;KACrB;IAED,uDAAuD;IACvD,sCAAsC;IACtC,IAAI,CAAC,IAAA,sBAAY,EAAC,IAAI,CAAC,EAAE;QACvB,wBAA6B;KAC9B;IAED,mCAAmC;IACnC,IACE,IAAI,CAAC,iBAAiB,EAAE,CAAC,MAAM,GAAG,CAAC;QACnC,IAAI,CAAC,aAAa,EAAE,CAAC,MAAM,KAAK,CAAC,EACjC;QACA,wBAA6B;KAC9B;IAED,MAAM,eAAe,GAAG,0BAA0B,CAChD,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,IAAI,eAAe,wBAA6B,EAAE;QAChD,OAAO,eAAe,CAAC;KACxB;IAED,MAAM,gBAAgB,GAAG,oBAAoB,CAC3C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,0BAA0B,CAAC,IACzB,gBAAgB,wBAA6B,EAC7C;QACA,OAAO,gBAAgB,CAAC;KACzB;IAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CACrB,OAAuB,EACvB,IAAa,EACb,UAA+B,mCAA2B;IAE1D,OAAO,CACL,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC;wBACpC,CACtB,CAAC;AACJ,CAAC;AAEQ,wCAAc"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TSESTree } from '@typescript-eslint/utils';
|
|
2
|
+
import * as ts from 'typescript';
|
|
3
|
+
/**
|
|
4
|
+
* Does a simple check to see if there is an any being assigned to a non-any type.
|
|
5
|
+
*
|
|
6
|
+
* This also checks generic positions to ensure there's no unsafe sub-assignments.
|
|
7
|
+
* Note: in the case of generic positions, it makes the assumption that the two types are the same.
|
|
8
|
+
*
|
|
9
|
+
* @example See tests for examples
|
|
10
|
+
*
|
|
11
|
+
* @returns false if it's safe, or an object with the two types if it's unsafe
|
|
12
|
+
*/
|
|
13
|
+
export declare function isUnsafeAssignment(type: ts.Type, receiver: ts.Type, checker: ts.TypeChecker, senderNode: TSESTree.Node | null): false | {
|
|
14
|
+
sender: ts.Type;
|
|
15
|
+
receiver: ts.Type;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=isUnsafeAssignment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUnsafeAssignment.d.ts","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAkB,MAAM,0BAA0B,CAAC;AAEpE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,EAAE,CAAC,IAAI,EACjB,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,UAAU,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAC/B,KAAK,GAAG;IAAE,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC;IAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAA;CAAE,CA8DhD"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isUnsafeAssignment = void 0;
|
|
4
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
5
|
+
const tsutils_1 = require("tsutils");
|
|
6
|
+
const predicates_1 = require("./predicates");
|
|
7
|
+
/**
|
|
8
|
+
* Does a simple check to see if there is an any being assigned to a non-any type.
|
|
9
|
+
*
|
|
10
|
+
* This also checks generic positions to ensure there's no unsafe sub-assignments.
|
|
11
|
+
* Note: in the case of generic positions, it makes the assumption that the two types are the same.
|
|
12
|
+
*
|
|
13
|
+
* @example See tests for examples
|
|
14
|
+
*
|
|
15
|
+
* @returns false if it's safe, or an object with the two types if it's unsafe
|
|
16
|
+
*/
|
|
17
|
+
function isUnsafeAssignment(type, receiver, checker, senderNode) {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
if ((0, predicates_1.isTypeAnyType)(type)) {
|
|
20
|
+
// Allow assignment of any ==> unknown.
|
|
21
|
+
if ((0, predicates_1.isTypeUnknownType)(receiver)) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
if (!(0, predicates_1.isTypeAnyType)(receiver)) {
|
|
25
|
+
return { sender: type, receiver };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if ((0, tsutils_1.isTypeReference)(type) && (0, tsutils_1.isTypeReference)(receiver)) {
|
|
29
|
+
// TODO - figure out how to handle cases like this,
|
|
30
|
+
// where the types are assignable, but not the same type
|
|
31
|
+
/*
|
|
32
|
+
function foo(): ReadonlySet<number> { return new Set<any>(); }
|
|
33
|
+
|
|
34
|
+
// and
|
|
35
|
+
|
|
36
|
+
type Test<T> = { prop: T }
|
|
37
|
+
type Test2 = { prop: string }
|
|
38
|
+
declare const a: Test<any>;
|
|
39
|
+
const b: Test2 = a;
|
|
40
|
+
*/
|
|
41
|
+
if (type.target !== receiver.target) {
|
|
42
|
+
// if the type references are different, assume safe, as we won't know how to compare the two types
|
|
43
|
+
// the generic positions might not be equivalent for both types
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
if ((senderNode === null || senderNode === void 0 ? void 0 : senderNode.type) === utils_1.AST_NODE_TYPES.NewExpression &&
|
|
47
|
+
senderNode.callee.type === utils_1.AST_NODE_TYPES.Identifier &&
|
|
48
|
+
senderNode.callee.name === 'Map' &&
|
|
49
|
+
senderNode.arguments.length === 0 &&
|
|
50
|
+
senderNode.typeParameters == null) {
|
|
51
|
+
// special case to handle `new Map()`
|
|
52
|
+
// unfortunately Map's default empty constructor is typed to return `Map<any, any>` :(
|
|
53
|
+
// https://github.com/typescript-eslint/typescript-eslint/issues/2109#issuecomment-634144396
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
const typeArguments = (_a = type.typeArguments) !== null && _a !== void 0 ? _a : [];
|
|
57
|
+
const receiverTypeArguments = (_b = receiver.typeArguments) !== null && _b !== void 0 ? _b : [];
|
|
58
|
+
for (let i = 0; i < typeArguments.length; i += 1) {
|
|
59
|
+
const arg = typeArguments[i];
|
|
60
|
+
const receiverArg = receiverTypeArguments[i];
|
|
61
|
+
const unsafe = isUnsafeAssignment(arg, receiverArg, checker, senderNode);
|
|
62
|
+
if (unsafe) {
|
|
63
|
+
return { sender: type, receiver };
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
exports.isUnsafeAssignment = isUnsafeAssignment;
|
|
71
|
+
//# sourceMappingURL=isUnsafeAssignment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUnsafeAssignment.js","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":";;;AAAA,oDAAoE;AACpE,qCAA0C;AAE1C,6CAAgE;AAEhE;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAChC,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC;;IAEhC,IAAI,IAAA,0BAAa,EAAC,IAAI,CAAC,EAAE;QACvB,uCAAuC;QACvC,IAAI,IAAA,8BAAiB,EAAC,QAAQ,CAAC,EAAE;YAC/B,OAAO,KAAK,CAAC;SACd;QAED,IAAI,CAAC,IAAA,0BAAa,EAAC,QAAQ,CAAC,EAAE;YAC5B,OAAO,EAAE,MAAM,EAAE,IA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O,KAAK,CAAC;AACf,CAAC;AAnED,gDAmEC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as ts from 'typescript';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the given type is (or accepts) nullable
|
|
4
|
+
* @param isReceiver true if the type is a receiving type (i.e. the type of a called function's parameter)
|
|
5
|
+
*/
|
|
6
|
+
export declare function isNullableType(type: ts.Type, { isReceiver, allowUndefined, }?: {
|
|
7
|
+
isReceiver?: boolean;
|
|
8
|
+
allowUndefined?: boolean;
|
|
9
|
+
}): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Checks if the given type is either an array type,
|
|
12
|
+
* or a union made up solely of array types.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isTypeArrayTypeOrUnionOfArrayTypes(type: ts.Type, checker: ts.TypeChecker): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @returns true if the type is `unknown`
|
|
17
|
+
*/
|
|
18
|
+
export declare function isTypeUnknownType(type: ts.Type): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @returns true if the type is `any`
|
|
21
|
+
*/
|
|
22
|
+
export declare function isTypeAnyType(type: ts.Type): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @returns true if the type is `any[]`
|
|
25
|
+
*/
|
|
26
|
+
export declare function isTypeAnyArrayType(type: ts.Type, checker: ts.TypeChecker): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @returns true if the type is `unknown[]`
|
|
29
|
+
*/
|
|
30
|
+
export declare function isTypeUnknownArrayType(type: ts.Type, checker: ts.TypeChecker): boolean;
|
|
31
|
+
export declare enum AnyType {
|
|
32
|
+
Any = 0,
|
|
33
|
+
AnyArray = 1,
|
|
34
|
+
Safe = 2
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`,
|
|
38
|
+
* otherwise it returns `AnyType.Safe`.
|
|
39
|
+
*/
|
|
40
|
+
export declare function isAnyOrAnyArrayTypeDiscriminated(node: ts.Node, checker: ts.TypeChecker): AnyType;
|
|
41
|
+
/**
|
|
42
|
+
* @returns Whether a type is an instance of the parent type, including for the parent's base types.
|
|
43
|
+
*/
|
|
44
|
+
export declare function typeIsOrHasBaseType(type: ts.Type, parentType: ts.Type): boolean;
|
|
45
|
+
//# sourceMappingURL=predicates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,EACE,UAAkB,EAClB,cAAqB,GACtB,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAA;CAAO,GACzD,OAAO,CAYT;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAQT;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAExD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAQpD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAQT;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAQT;AAED,oBAAY,OAAO;IACjB,GAAG,IAAA;IACH,QAAQ,IAAA;IACR,IAAI,IAAA;CACL;AACD;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAST;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,UAAU,EAAE,EAAE,CAAC,IAAI,GAClB,OAAO,CAqBT"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.typeIsOrHasBaseType = exports.isAnyOrAnyArrayTypeDiscriminated = exports.AnyType = exports.isTypeUnknownArrayType = exports.isTypeAnyArrayType = exports.isTypeAnyType = exports.isTypeUnknownType = exports.isTypeArrayTypeOrUnionOfArrayTypes = exports.isNullableType = void 0;
|
|
26
|
+
const debug_1 = __importDefault(require("debug"));
|
|
27
|
+
const tsutils_1 = require("tsutils");
|
|
28
|
+
const ts = __importStar(require("typescript"));
|
|
29
|
+
const getTypeArguments_1 = require("./getTypeArguments");
|
|
30
|
+
const typeFlagUtils_1 = require("./typeFlagUtils");
|
|
31
|
+
const log = (0, debug_1.default)('typescript-eslint:eslint-plugin:utils:types');
|
|
32
|
+
/**
|
|
33
|
+
* Checks if the given type is (or accepts) nullable
|
|
34
|
+
* @param isReceiver true if the type is a receiving type (i.e. the type of a called function's parameter)
|
|
35
|
+
*/
|
|
36
|
+
function isNullableType(type, { isReceiver = false, allowUndefined = true, } = {}) {
|
|
37
|
+
const flags = (0, typeFlagUtils_1.getTypeFlags)(type);
|
|
38
|
+
if (isReceiver && flags & (ts.TypeFlags.Any | ts.TypeFlags.Unknown)) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
if (allowUndefined) {
|
|
42
|
+
return (flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) !== 0;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return (flags & ts.TypeFlags.Null) !== 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.isNullableType = isNullableType;
|
|
49
|
+
/**
|
|
50
|
+
* Checks if the given type is either an array type,
|
|
51
|
+
* or a union made up solely of array types.
|
|
52
|
+
*/
|
|
53
|
+
function isTypeArrayTypeOrUnionOfArrayTypes(type, checker) {
|
|
54
|
+
for (const t of (0, tsutils_1.unionTypeParts)(type)) {
|
|
55
|
+
if (!checker.isArrayType(t)) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
exports.isTypeArrayTypeOrUnionOfArrayTypes = isTypeArrayTypeOrUnionOfArrayTypes;
|
|
62
|
+
/**
|
|
63
|
+
* @returns true if the type is `unknown`
|
|
64
|
+
*/
|
|
65
|
+
function isTypeUnknownType(type) {
|
|
66
|
+
return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Unknown);
|
|
67
|
+
}
|
|
68
|
+
exports.isTypeUnknownType = isTypeUnknownType;
|
|
69
|
+
/**
|
|
70
|
+
* @returns true if the type is `any`
|
|
71
|
+
*/
|
|
72
|
+
function isTypeAnyType(type) {
|
|
73
|
+
if ((0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Any)) {
|
|
74
|
+
if (type.intrinsicName === 'error') {
|
|
75
|
+
log('Found an "error" any type');
|
|
76
|
+
}
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
exports.isTypeAnyType = isTypeAnyType;
|
|
82
|
+
/**
|
|
83
|
+
* @returns true if the type is `any[]`
|
|
84
|
+
*/
|
|
85
|
+
function isTypeAnyArrayType(type, checker) {
|
|
86
|
+
return (checker.isArrayType(type) &&
|
|
87
|
+
isTypeAnyType(
|
|
88
|
+
// getTypeArguments was only added in TS3.7
|
|
89
|
+
(0, getTypeArguments_1.getTypeArguments)(type, checker)[0]));
|
|
90
|
+
}
|
|
91
|
+
exports.isTypeAnyArrayType = isTypeAnyArrayType;
|
|
92
|
+
/**
|
|
93
|
+
* @returns true if the type is `unknown[]`
|
|
94
|
+
*/
|
|
95
|
+
function isTypeUnknownArrayType(type, checker) {
|
|
96
|
+
return (checker.isArrayType(type) &&
|
|
97
|
+
isTypeUnknownType(
|
|
98
|
+
// getTypeArguments was only added in TS3.7
|
|
99
|
+
(0, getTypeArguments_1.getTypeArguments)(type, checker)[0]));
|
|
100
|
+
}
|
|
101
|
+
exports.isTypeUnknownArrayType = isTypeUnknownArrayType;
|
|
102
|
+
var AnyType;
|
|
103
|
+
(function (AnyType) {
|
|
104
|
+
AnyType[AnyType["Any"] = 0] = "Any";
|
|
105
|
+
AnyType[AnyType["AnyArray"] = 1] = "AnyArray";
|
|
106
|
+
AnyType[AnyType["Safe"] = 2] = "Safe";
|
|
107
|
+
})(AnyType = exports.AnyType || (exports.AnyType = {}));
|
|
108
|
+
/**
|
|
109
|
+
* @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`,
|
|
110
|
+
* otherwise it returns `AnyType.Safe`.
|
|
111
|
+
*/
|
|
112
|
+
function isAnyOrAnyArrayTypeDiscriminated(node, checker) {
|
|
113
|
+
const type = checker.getTypeAtLocation(node);
|
|
114
|
+
if (isTypeAnyType(type)) {
|
|
115
|
+
return AnyType.Any;
|
|
116
|
+
}
|
|
117
|
+
if (isTypeAnyArrayType(type, checker)) {
|
|
118
|
+
return AnyType.AnyArray;
|
|
119
|
+
}
|
|
120
|
+
return AnyType.Safe;
|
|
121
|
+
}
|
|
122
|
+
exports.isAnyOrAnyArrayTypeDiscriminated = isAnyOrAnyArrayTypeDiscriminated;
|
|
123
|
+
/**
|
|
124
|
+
* @returns Whether a type is an instance of the parent type, including for the parent's base types.
|
|
125
|
+
*/
|
|
126
|
+
function typeIsOrHasBaseType(type, parentType) {
|
|
127
|
+
const parentSymbol = parentType.getSymbol();
|
|
128
|
+
if (!type.getSymbol() || !parentSymbol) {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
const typeAndBaseTypes = [type];
|
|
132
|
+
const ancestorTypes = type.getBaseTypes();
|
|
133
|
+
if (ancestorTypes) {
|
|
134
|
+
typeAndBaseTypes.push(...ancestorTypes);
|
|
135
|
+
}
|
|
136
|
+
for (const baseType of typeAndBaseTypes) {
|
|
137
|
+
const baseSymbol = baseType.getSymbol();
|
|
138
|
+
if (baseSymbol && baseSymbol.name === parentSymbol.name) {
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
exports.typeIsOrHasBaseType = typeIsOrHasBaseType;
|
|
145
|
+
//# sourceMappingURL=predicates.js.map
|
|
@@ -0,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I,EAAE,OAAO,CAAC,EAAE;QACrC,OAAO,OAAO,CAAC,QAAQ,CAAC;KACzB;IACD,OAAO,OAAO,CAAC,IAAI,CAAC;AACtB,CAAC;AAZD,4EAYC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CACjC,IAAa,EACb,UAAmB;IAEnB,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;IAC5C,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE;QACtC,OAAO,KAAK,CAAC;KACd;IAED,MAAM,gBAAgB,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,aAAa,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAE1C,IAAI,aAAa,EAAE;QACjB,gBAAgB,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;KACzC;IAED,KAAK,MAAM,QAAQ,IAAI,gBAAgB,EAAE;QACvC,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,UAAU,IAAI,UAAU,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,EAAE;YACvD,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAxBD,kDAwBC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as ts from 'typescript';
|
|
2
|
+
export declare function getTypeOfPropertyOfName(checker: ts.TypeChecker, type: ts.Type, name: string, escapedName?: ts.__String): ts.Type | undefined;
|
|
3
|
+
export declare function getTypeOfPropertyOfType(checker: ts.TypeChecker, type: ts.Type, property: ts.Symbol): ts.Type | undefined;
|
|
4
|
+
//# sourceMappingURL=propertyTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyTypes.d.ts","sourceRoot":"","sources":["../src/propertyTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,EAAE,CAAC,QAAQ,GACxB,EAAE,CAAC,IAAI,GAAG,SAAS,CAerB;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,EAAE,CAAC,MAAM,GAClB,EAAE,CAAC,IAAI,GAAG,SAAS,CAOrB"}
|
package/node_modules/@typescript-eslint/{eslint-plugin/dist/util → type-utils/dist}/propertyTypes.js
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyTypes.js","sourceRoot":"","sources":["../src/propertyTypes.ts"],"names":[],"mappings":";;;AAEA,SAAgB,uBAAuB,CACrC,OAAuB,EACvB,IAAa,EACb,IAAY,EACZ,WAAyB;IAEzB,wFAAwF;IACxF,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QAC1C,OAAO,OAAO,CAAC,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KACpD;IAED,wFAAwF;IACxF,qEAAqE;IACrE,MAAM,eAAe,GAAG,IAAI;SACzB,aAAa,EAAE;SACf,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;IAE1D,OAAO,eAAe;QACpB,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,eAAe,CAAC;QAClD,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AApBD,0DAoBC;AAED,SAAgB,uBAAuB,CACrC,OAAuB,EACvB,IAAa,EACb,QAAmB;IAEnB,OAAO,uBAAuB,CAC5B,OAAO,EACP,IAAI,EACJ,QAAQ,CAAC,OAAO,EAAE,EAClB,QAAQ,CAAC,cAAc,EAAE,CAC1B,CAAC;AACJ,CAAC;AAXD,0DAWC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requiresQuoting.d.ts","sourceRoot":"","sources":["../src/requiresQuoting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,iBAAS,eAAe,CACtB,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,EAAE,CAAC,YAAqC,GAC/C,OAAO,CAgBT;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requiresQuoting.js","sourceRoot":"","sources":["../src/requiresQuoting.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,SAAS,eAAe,CACtB,IAAY,EACZ,SAA0B,EAAE,CAAC,YAAY,CAAC,MAAM;IAEhD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACrB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE;QACrD,OAAO,IAAI,CAAC;KACb;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QACvC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE;YACpD,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAEQ,0CAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as ts from 'typescript';
|
|
2
|
+
/**
|
|
3
|
+
* Gets all of the type flags in a type, iterating through unions automatically
|
|
4
|
+
*/
|
|
5
|
+
export declare function getTypeFlags(type: ts.Type): ts.TypeFlags;
|
|
6
|
+
/**
|
|
7
|
+
* Checks if the given type is (or accepts) the given flags
|
|
8
|
+
* @param isReceiver true if the type is a receiving type (i.e. the type of a called function's parameter)
|
|
9
|
+
*/
|
|
10
|
+
export declare function isTypeFlagSet(type: ts.Type, flagsToCheck: ts.TypeFlags, isReceiver?: boolean): boolean;
|
|
11
|
+
//# sourceMappingURL=typeFlagUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeFlagUtils.d.ts","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAMxD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,YAAY,EAAE,EAAE,CAAC,SAAS,EAC1B,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAQT"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.isTypeFlagSet = exports.getTypeFlags = void 0;
|
|
23
|
+
const tsutils_1 = require("tsutils");
|
|
24
|
+
const ts = __importStar(require("typescript"));
|
|
25
|
+
/**
|
|
26
|
+
* Gets all of the type flags in a type, iterating through unions automatically
|
|
27
|
+
*/
|
|
28
|
+
function getTypeFlags(type) {
|
|
29
|
+
let flags = 0;
|
|
30
|
+
for (const t of (0, tsutils_1.unionTypeParts)(type)) {
|
|
31
|
+
flags |= t.flags;
|
|
32
|
+
}
|
|
33
|
+
return flags;
|
|
34
|
+
}
|
|
35
|
+
exports.getTypeFlags = getTypeFlags;
|
|
36
|
+
/**
|
|
37
|
+
* Checks if the given type is (or accepts) the given flags
|
|
38
|
+
* @param isReceiver true if the type is a receiving type (i.e. the type of a called function's parameter)
|
|
39
|
+
*/
|
|
40
|
+
function isTypeFlagSet(type, flagsToCheck, isReceiver) {
|
|
41
|
+
const flags = getTypeFlags(type);
|
|
42
|
+
if (isReceiver && flags & (ts.TypeFlags.Any | ts.TypeFlags.Unknown)) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
return (flags & flagsToCheck) !== 0;
|
|
46
|
+
}
|
|
47
|
+
exports.isTypeFlagSet = isTypeFlagSet;
|
|
48
|
+
//# sourceMappingURL=typeFlagUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeFlagUtils.js","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAAiC;AAEjC;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAa;IACxC,IAAI,KAAK,GAAiB,CAAC,CAAC;IAC5B,KAAK,MAAM,CAAC,IAAI,IAAA,wBAAc,EAAC,IAAI,CAAC,EAAE;QACpC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC;KAClB;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAND,oCAMC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAC3B,IAAa,EACb,YAA0B,EAC1B,UAAoB;IAEpB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,UAAU,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QACnE,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAZD,sCAYC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@typescript-eslint/type-utils",
|
|
3
|
+
"version": "5.11.0",
|
|
4
|
+
"description": "Type utilities for working with TypeScript + ESLint together",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"eslint",
|
|
7
|
+
"typescript",
|
|
8
|
+
"estree"
|
|
9
|
+
],
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"_ts3.4",
|
|
16
|
+
"package.json",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/typescript-eslint/typescript-eslint.git",
|
|
23
|
+
"directory": "packages/type-utils"
|
|
24
|
+
},
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"main": "dist/index.js",
|
|
30
|
+
"types": "dist/index.d.ts",
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc -b tsconfig.build.json",
|
|
33
|
+
"postbuild": "downlevel-dts dist _ts3.4/dist",
|
|
34
|
+
"clean": "tsc -b tsconfig.build.json --clean",
|
|
35
|
+
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf coverage",
|
|
36
|
+
"format": "prettier --write \"./**/*.{ts,js,json,md}\" --ignore-path ../../.prettierignore",
|
|
37
|
+
"lint": "eslint . --ext .js,.ts --ignore-path='../../.eslintignore'",
|
|
38
|
+
"test": "jest --coverage",
|
|
39
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@typescript-eslint/utils": "5.11.0",
|
|
43
|
+
"debug": "^4.3.2",
|
|
44
|
+
"tsutils": "^3.21.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@typescript-eslint/parser": "5.11.0",
|
|
48
|
+
"typescript": "*"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"eslint": "*"
|
|
52
|
+
},
|
|
53
|
+
"peerDependenciesMeta": {
|
|
54
|
+
"typescript": {
|
|
55
|
+
"optional": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"funding": {
|
|
59
|
+
"type": "opencollective",
|
|
60
|
+
"url": "https://opencollective.com/typescript-eslint"
|
|
61
|
+
},
|
|
62
|
+
"typesVersions": {
|
|
63
|
+
"<3.8": {
|
|
64
|
+
"*": [
|
|
65
|
+
"_ts3.4/*"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"gitHead": "cb91d76c0842014cce3a6c0f0c57f98884e93d11"
|
|
70
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
This package exists to help us reduce cycles and provide lighter-weight packages at runtime.
|
|
10
10
|
You probably don't want to use it directly.
|
|
11
11
|
|
|
12
|
-
If you're building an ESLint plugin, consider using [`@typescript-eslint/
|
|
12
|
+
If you're building an ESLint plugin, consider using [`@typescript-eslint/utils`](../utils).
|
|
13
13
|
If you're parsing TypeScript code, consider using [`@typescript-eslint/typescript-estree`](../typescript-estree).
|
|
14
14
|
|
|
15
15
|
## Contributing
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type Lib = 'es5' | 'es6' | 'es2015' | 'es7' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'esnext' | 'dom' | 'dom.iterable' | 'webworker' | 'webworker.importscripts' | 'webworker.iterable' | 'scripthost' | 'es2015.core' | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016.array.include' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.intl' | 'es2017.typedarrays' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019.array' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020.bigint' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2020.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'esnext.array' | 'esnext.symbol' | 'esnext.asynciterable' | 'esnext.intl' | 'esnext.bigint' | 'esnext.string' | 'esnext.promise' | 'esnext.weakref' | 'es2016.full' | 'es2017.full' | 'es2018.full' | 'es2019.full' | 'es2020.full' | 'es2021.full' | 'esnext.full' | 'lib';
|
|
1
|
+
declare type Lib = 'es5' | 'es6' | 'es2015' | 'es7' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'esnext' | 'dom' | 'dom.iterable' | 'webworker' | 'webworker.importscripts' | 'webworker.iterable' | 'scripthost' | 'es2015.core' | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016.array.include' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.intl' | 'es2017.typedarrays' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019.array' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020.bigint' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2020.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2021.intl' | 'esnext.array' | 'esnext.symbol' | 'esnext.asynciterable' | 'esnext.intl' | 'esnext.bigint' | 'esnext.string' | 'esnext.promise' | 'esnext.weakref' | 'es2016.full' | 'es2017.full' | 'es2018.full' | 'es2019.full' | 'es2020.full' | 'es2021.full' | 'esnext.full' | 'lib';
|
|
2
2
|
export { Lib };
|
|
3
3
|
//# sourceMappingURL=lib.d.ts.map
|