xo 0.53.1 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/plugins.cjs +27 -4
- package/lib/options-manager.js +11 -58
- package/node_modules/@eslint-community/eslint-utils/README.md +37 -0
- package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.js +124 -12
- package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -0
- package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/index.mjs +124 -11
- package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -0
- package/node_modules/@eslint-community/eslint-utils/package.json +73 -0
- package/node_modules/{regexpp → @eslint-community/regexpp}/README.md +9 -10
- package/node_modules/@eslint-community/regexpp/index.d.ts +781 -0
- package/node_modules/{regexpp → @eslint-community/regexpp}/index.js +297 -262
- package/node_modules/@eslint-community/regexpp/index.js.map +1 -0
- package/node_modules/{regexpp → @eslint-community/regexpp}/index.mjs +297 -262
- package/node_modules/@eslint-community/regexpp/index.mjs.map +1 -0
- package/node_modules/{regexpp → @eslint-community/regexpp}/package.json +60 -64
- package/node_modules/@typescript-eslint/eslint-plugin/LICENSE +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/README.md +6 -92
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +10 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +4 -2
- 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 +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +2 -1
- 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-types.js +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +158 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +3 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +17 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +47 -0
- 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-imports.js +5 -11
- 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/explicit-function-return-type.js +22 -3
- 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/index.js +12 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +351 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +53 -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-around-comment.js +384 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +205 -39
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +14 -13
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +5 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +6 -6
- 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 +231 -198
- 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-confusing-void-expression.js +5 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +158 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +19 -16
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +2 -2
- 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-floating-promises.js +45 -4
- 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-implied-eval.js +1 -1
- 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-import-type-side-effects.js +79 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +15 -15
- 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-mixed-enums.js +196 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +6 -1
- 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-unnecessary-boolean-literal-compare.js +21 -31
- 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 +22 -7
- 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 +4 -5
- 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-unsafe-argument.js +9 -9
- 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-unused-vars.js +1 -2
- 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 +2 -2
- 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/object-curly-spacing.js +1 -0
- 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 +1 -0
- 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-for-of.js +3 -5
- 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 +4 -5
- 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 +2 -2
- 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-nullish-coalescing.js +19 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +47 -11
- 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.js +2 -1
- 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-regexp-exec.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -2
- 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/promise-function-async.js +3 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +7 -0
- 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/sort-type-constituents.js +5 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +5 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +1 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +2 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +46 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +20 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +2 -1
- 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 +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +27 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +3 -3
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +3 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +12 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +9 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +52 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +12 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +37 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +181 -20
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +7 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md +61 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.md +75 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.md +88 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +2 -2
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +21 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +5 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +18 -1
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +9 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +6 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +7 -10
- package/node_modules/@typescript-eslint/eslint-plugin/package.json +13 -9
- package/node_modules/@typescript-eslint/parser/LICENSE +5 -5
- package/node_modules/@typescript-eslint/parser/README.md +6 -300
- package/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts +4 -0
- package/node_modules/@typescript-eslint/parser/dist/index.d.ts +4 -0
- package/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/parser/dist/index.js +5 -1
- package/node_modules/@typescript-eslint/parser/dist/index.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/parser/dist/parser.js +15 -17
- package/node_modules/@typescript-eslint/parser/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/package.json +6 -6
- package/node_modules/@typescript-eslint/scope-manager/LICENSE +1 -1
- package/node_modules/@typescript-eslint/scope-manager/README.md +5 -117
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +10 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +21 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +15 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +5 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +44 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +12 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +15 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +24 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +14 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +11 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +1 -0
- 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 -105
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +2 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +7 -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 +14 -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 +2 -0
- 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 +43 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +4 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +14 -6
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +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.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +2 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +10 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +17 -17
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +5 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +1 -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 +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.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/package.json +12 -12
- package/node_modules/@typescript-eslint/type-utils/LICENSE +1 -1
- package/node_modules/@typescript-eslint/type-utils/README.md +7 -10
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts +4 -2
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +4 -2
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +12 -6
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +2 -4
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/package.json +6 -6
- package/node_modules/@typescript-eslint/types/LICENSE +1 -1
- package/node_modules/@typescript-eslint/types/README.md +6 -11
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +90 -16
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts +1 -1
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +9 -5
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +90 -16
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +3 -0
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/lib.d.ts +1 -1
- package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +9 -5
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/package.json +6 -6
- package/node_modules/@typescript-eslint/typescript-estree/LICENSE +5 -5
- package/node_modules/@typescript-eslint/typescript-estree/README.md +6 -379
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts +10 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +8 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts +17 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +8 -3
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts +19 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +23 -4
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +4 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +10 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +24 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +62 -16
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +7 -12
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +32 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.d.ts → getWatchProgramsForProjects.d.ts} +3 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/{createWatchProgram.js → getWatchProgramsForProjects.js} +16 -20
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +8 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +15 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +3 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +2 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +18 -5
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +17 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +62 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +22 -48
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +70 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +8 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +19 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +103 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +4 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +23 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +4 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +4 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -6
- package/node_modules/@typescript-eslint/utils/LICENSE +1 -1
- package/node_modules/@typescript-eslint/utils/README.md +6 -23
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts +60 -6
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts +13 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +6 -6
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts +5 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +4 -4
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +4 -4
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +6 -6
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +7 -7
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +5 -5
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +3 -3
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +60 -6
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +13 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +15 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts +3 -3
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js +40 -27
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +6 -6
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +5 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/package.json +8 -8
- package/node_modules/@typescript-eslint/visitor-keys/LICENSE +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/README.md +6 -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 +63 -48
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/package.json +4 -4
- package/node_modules/eslint-config-xo-typescript/index.js +8 -11
- package/node_modules/eslint-config-xo-typescript/package.json +5 -5
- package/node_modules/eslint-visitor-keys/README.md +1 -2
- package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +38 -36
- package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +38 -35
- package/node_modules/eslint-visitor-keys/package.json +16 -6
- package/node_modules/fastq/README.md +1 -1
- package/node_modules/fastq/index.d.ts +1 -1
- package/node_modules/fastq/package.json +1 -1
- package/node_modules/fastq/queue.js +6 -0
- package/node_modules/fastq/test/promise.js +27 -0
- package/node_modules/grapheme-splitter/LICENSE +22 -0
- package/node_modules/grapheme-splitter/README.md +111 -0
- package/node_modules/grapheme-splitter/index.d.ts +24 -0
- package/node_modules/grapheme-splitter/index.js +1743 -0
- package/node_modules/grapheme-splitter/package.json +34 -0
- package/node_modules/grapheme-splitter/tests/GraphemeBreakTest.txt +850 -0
- package/node_modules/grapheme-splitter/tests/grapheme_splitter_tests.js +83 -0
- package/node_modules/ignore/README.md +3 -3
- package/node_modules/ignore/index.js +24 -9
- package/node_modules/ignore/legacy.js +176 -135
- package/node_modules/ignore/package.json +13 -11
- package/package.json +19 -19
- package/readme.md +1 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +0 -1
- package/node_modules/braces/CHANGELOG.md +0 -184
- package/node_modules/eslint-scope/CHANGELOG.md +0 -70
- package/node_modules/eslint-utils/README.md +0 -38
- package/node_modules/eslint-utils/index.js.map +0 -1
- package/node_modules/eslint-utils/index.mjs.map +0 -1
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/CHANGELOG.md +0 -36
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +0 -201
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/README.md +0 -98
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +0 -81
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.json +0 -289
- package/node_modules/eslint-utils/node_modules/eslint-visitor-keys/package.json +0 -39
- package/node_modules/eslint-utils/package.json +0 -78
- package/node_modules/glob-parent/CHANGELOG.md +0 -110
- package/node_modules/picomatch/CHANGELOG.md +0 -136
- package/node_modules/regexpp/index.d.ts +0 -248
- package/node_modules/regexpp/index.js.map +0 -1
- package/node_modules/regexpp/index.mjs.map +0 -1
- /package/node_modules/{eslint-utils → @eslint-community/eslint-utils}/LICENSE +0 -0
- /package/node_modules/{regexpp → @eslint-community/regexpp}/LICENSE +0 -0
- /package/node_modules/{yallist → semver/node_modules/yallist}/LICENSE +0 -0
- /package/node_modules/{yallist → semver/node_modules/yallist}/README.md +0 -0
- /package/node_modules/{yallist → semver/node_modules/yallist}/iterator.js +0 -0
- /package/node_modules/{yallist → semver/node_modules/yallist}/package.json +0 -0
- /package/node_modules/{yallist → semver/node_modules/yallist}/yallist.js +0 -0
|
@@ -79,8 +79,10 @@ module.exports = {
|
|
|
79
79
|
parserOptions: {
|
|
80
80
|
warnOnUnsupportedTypeScriptVersion: false,
|
|
81
81
|
sourceType: 'module',
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
project: 'tsconfig.json',
|
|
83
|
+
ecmaFeatures: {
|
|
84
|
+
jsx: true
|
|
85
|
+
}
|
|
84
86
|
},
|
|
85
87
|
plugins: [
|
|
86
88
|
'@typescript-eslint'
|
|
@@ -236,7 +238,8 @@ module.exports = {
|
|
|
236
238
|
// allowExpressions: true,
|
|
237
239
|
// allowTypedFunctionExpressions: true,
|
|
238
240
|
// allowHigherOrderFunctions: true,
|
|
239
|
-
// allowConciseArrowFunctionExpressionsStartingWithVoid: false
|
|
241
|
+
// allowConciseArrowFunctionExpressionsStartingWithVoid: false,
|
|
242
|
+
// allowIIFE: true
|
|
240
243
|
// }
|
|
241
244
|
// ],
|
|
242
245
|
|
|
@@ -321,7 +324,6 @@ module.exports = {
|
|
|
321
324
|
|
|
322
325
|
'private-decorated-field',
|
|
323
326
|
'private-instance-field',
|
|
324
|
-
'private-abstract-field',
|
|
325
327
|
'private-field',
|
|
326
328
|
|
|
327
329
|
'instance-field',
|
|
@@ -346,7 +348,6 @@ module.exports = {
|
|
|
346
348
|
|
|
347
349
|
'private-decorated-method',
|
|
348
350
|
'private-instance-method',
|
|
349
|
-
'private-abstract-method',
|
|
350
351
|
'private-method',
|
|
351
352
|
|
|
352
353
|
'instance-method',
|
|
@@ -375,6 +376,7 @@ module.exports = {
|
|
|
375
376
|
'@typescript-eslint/no-dupe-class-members': 'error',
|
|
376
377
|
'@typescript-eslint/no-confusing-void-expression': 'error',
|
|
377
378
|
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
|
379
|
+
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
|
378
380
|
'@typescript-eslint/no-dynamic-delete': 'error',
|
|
379
381
|
'no-empty-function': 'off',
|
|
380
382
|
'@typescript-eslint/no-empty-function': 'error',
|
|
@@ -440,7 +442,6 @@ module.exports = {
|
|
|
440
442
|
}
|
|
441
443
|
],
|
|
442
444
|
'@typescript-eslint/no-for-in-array': 'error',
|
|
443
|
-
'@typescript-eslint/no-implicit-any-catch': 'error',
|
|
444
445
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
445
446
|
|
|
446
447
|
// Disabled for now as it has too many false-positives.
|
|
@@ -518,11 +519,7 @@ module.exports = {
|
|
|
518
519
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
|
519
520
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
520
521
|
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
521
|
-
|
|
522
|
-
// Disabled for now. When using try/catch, the error is by default `any` and if you pass the error anywhere, it will trigger this rule. This is a very common occurence.
|
|
523
|
-
// TODO: Enable this rule when TypeScript has more strongly typed errors, probably 2023 at the earliest.
|
|
524
|
-
// '@typescript-eslint/no-unsafe-argument': 'error',
|
|
525
|
-
|
|
522
|
+
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
526
523
|
'@typescript-eslint/no-unsafe-assignment': 'error',
|
|
527
524
|
'@typescript-eslint/no-unsafe-call': 'error',
|
|
528
525
|
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-xo-typescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "ESLint shareable config for TypeScript to be used with eslint-config-xo",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "xojs/eslint-config-xo-typescript",
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"simple"
|
|
45
45
|
],
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
48
|
-
"@typescript-eslint/parser": "^5.
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
48
|
+
"@typescript-eslint/parser": "^5.57.0",
|
|
49
49
|
"ava": "^2.4.0",
|
|
50
50
|
"eslint": "^7.8.1",
|
|
51
51
|
"typescript": ">=4.4"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@typescript-eslint/eslint-plugin": ">=5.
|
|
55
|
-
"@typescript-eslint/parser": ">=5.
|
|
54
|
+
"@typescript-eslint/eslint-plugin": ">=5.57.0",
|
|
55
|
+
"@typescript-eslint/parser": ">=5.57.0",
|
|
56
56
|
"eslint": ">=8.0.0",
|
|
57
57
|
"typescript": ">=4.4"
|
|
58
58
|
}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/eslint-visitor-keys)
|
|
4
4
|
[](http://www.npmtrends.com/eslint-visitor-keys)
|
|
5
|
-
[](https://david-dm.org/eslint/eslint-visitor-keys)
|
|
5
|
+
[](https://github.com/eslint/eslint-visitor-keys/actions)
|
|
7
6
|
|
|
8
7
|
Constants and utilities about visitor keys to traverse AST.
|
|
9
8
|
|
|
@@ -10,14 +10,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
* @type {VisitorKeys}
|
|
11
11
|
*/
|
|
12
12
|
const KEYS = {
|
|
13
|
-
AssignmentExpression: [
|
|
14
|
-
"left",
|
|
15
|
-
"right"
|
|
16
|
-
],
|
|
17
|
-
AssignmentPattern: [
|
|
18
|
-
"left",
|
|
19
|
-
"right"
|
|
20
|
-
],
|
|
21
13
|
ArrayExpression: [
|
|
22
14
|
"elements"
|
|
23
15
|
],
|
|
@@ -28,16 +20,24 @@ const KEYS = {
|
|
|
28
20
|
"params",
|
|
29
21
|
"body"
|
|
30
22
|
],
|
|
23
|
+
AssignmentExpression: [
|
|
24
|
+
"left",
|
|
25
|
+
"right"
|
|
26
|
+
],
|
|
27
|
+
AssignmentPattern: [
|
|
28
|
+
"left",
|
|
29
|
+
"right"
|
|
30
|
+
],
|
|
31
31
|
AwaitExpression: [
|
|
32
32
|
"argument"
|
|
33
33
|
],
|
|
34
|
-
BlockStatement: [
|
|
35
|
-
"body"
|
|
36
|
-
],
|
|
37
34
|
BinaryExpression: [
|
|
38
35
|
"left",
|
|
39
36
|
"right"
|
|
40
37
|
],
|
|
38
|
+
BlockStatement: [
|
|
39
|
+
"body"
|
|
40
|
+
],
|
|
41
41
|
BreakStatement: [
|
|
42
42
|
"label"
|
|
43
43
|
],
|
|
@@ -79,6 +79,12 @@ const KEYS = {
|
|
|
79
79
|
"test"
|
|
80
80
|
],
|
|
81
81
|
EmptyStatement: [],
|
|
82
|
+
ExperimentalRestProperty: [
|
|
83
|
+
"argument"
|
|
84
|
+
],
|
|
85
|
+
ExperimentalSpreadProperty: [
|
|
86
|
+
"argument"
|
|
87
|
+
],
|
|
82
88
|
ExportAllDeclaration: [
|
|
83
89
|
"exported",
|
|
84
90
|
"source"
|
|
@@ -98,18 +104,6 @@ const KEYS = {
|
|
|
98
104
|
ExpressionStatement: [
|
|
99
105
|
"expression"
|
|
100
106
|
],
|
|
101
|
-
ExperimentalRestProperty: [
|
|
102
|
-
"argument"
|
|
103
|
-
],
|
|
104
|
-
ExperimentalSpreadProperty: [
|
|
105
|
-
"argument"
|
|
106
|
-
],
|
|
107
|
-
ForStatement: [
|
|
108
|
-
"init",
|
|
109
|
-
"test",
|
|
110
|
-
"update",
|
|
111
|
-
"body"
|
|
112
|
-
],
|
|
113
107
|
ForInStatement: [
|
|
114
108
|
"left",
|
|
115
109
|
"right",
|
|
@@ -120,6 +114,12 @@ const KEYS = {
|
|
|
120
114
|
"right",
|
|
121
115
|
"body"
|
|
122
116
|
],
|
|
117
|
+
ForStatement: [
|
|
118
|
+
"init",
|
|
119
|
+
"test",
|
|
120
|
+
"update",
|
|
121
|
+
"body"
|
|
122
|
+
],
|
|
123
123
|
FunctionDeclaration: [
|
|
124
124
|
"id",
|
|
125
125
|
"params",
|
|
@@ -160,6 +160,7 @@ const KEYS = {
|
|
|
160
160
|
JSXClosingElement: [
|
|
161
161
|
"name"
|
|
162
162
|
],
|
|
163
|
+
JSXClosingFragment: [],
|
|
163
164
|
JSXElement: [
|
|
164
165
|
"openingElement",
|
|
165
166
|
"children",
|
|
@@ -169,6 +170,11 @@ const KEYS = {
|
|
|
169
170
|
JSXExpressionContainer: [
|
|
170
171
|
"expression"
|
|
171
172
|
],
|
|
173
|
+
JSXFragment: [
|
|
174
|
+
"openingFragment",
|
|
175
|
+
"children",
|
|
176
|
+
"closingFragment"
|
|
177
|
+
],
|
|
172
178
|
JSXIdentifier: [],
|
|
173
179
|
JSXMemberExpression: [
|
|
174
180
|
"object",
|
|
@@ -182,22 +188,19 @@ const KEYS = {
|
|
|
182
188
|
"name",
|
|
183
189
|
"attributes"
|
|
184
190
|
],
|
|
191
|
+
JSXOpeningFragment: [],
|
|
185
192
|
JSXSpreadAttribute: [
|
|
186
193
|
"argument"
|
|
187
194
|
],
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
"openingFragment",
|
|
191
|
-
"children",
|
|
192
|
-
"closingFragment"
|
|
195
|
+
JSXSpreadChild: [
|
|
196
|
+
"expression"
|
|
193
197
|
],
|
|
194
|
-
|
|
195
|
-
JSXOpeningFragment: [],
|
|
196
|
-
Literal: [],
|
|
198
|
+
JSXText: [],
|
|
197
199
|
LabeledStatement: [
|
|
198
200
|
"label",
|
|
199
201
|
"body"
|
|
200
202
|
],
|
|
203
|
+
Literal: [],
|
|
201
204
|
LogicalExpression: [
|
|
202
205
|
"left",
|
|
203
206
|
"right"
|
|
@@ -252,14 +255,14 @@ const KEYS = {
|
|
|
252
255
|
"body"
|
|
253
256
|
],
|
|
254
257
|
Super: [],
|
|
255
|
-
SwitchStatement: [
|
|
256
|
-
"discriminant",
|
|
257
|
-
"cases"
|
|
258
|
-
],
|
|
259
258
|
SwitchCase: [
|
|
260
259
|
"test",
|
|
261
260
|
"consequent"
|
|
262
261
|
],
|
|
262
|
+
SwitchStatement: [
|
|
263
|
+
"discriminant",
|
|
264
|
+
"cases"
|
|
265
|
+
],
|
|
263
266
|
TaggedTemplateExpression: [
|
|
264
267
|
"tag",
|
|
265
268
|
"quasi"
|
|
@@ -379,4 +382,3 @@ function unionWith(additionalKeys) {
|
|
|
379
382
|
exports.KEYS = KEYS;
|
|
380
383
|
exports.getKeys = getKeys;
|
|
381
384
|
exports.unionWith = unionWith;
|
|
382
|
-
//# sourceMappingURL=eslint-visitor-keys.cjs.map
|
|
@@ -6,14 +6,6 @@
|
|
|
6
6
|
* @type {VisitorKeys}
|
|
7
7
|
*/
|
|
8
8
|
const KEYS = {
|
|
9
|
-
AssignmentExpression: [
|
|
10
|
-
"left",
|
|
11
|
-
"right"
|
|
12
|
-
],
|
|
13
|
-
AssignmentPattern: [
|
|
14
|
-
"left",
|
|
15
|
-
"right"
|
|
16
|
-
],
|
|
17
9
|
ArrayExpression: [
|
|
18
10
|
"elements"
|
|
19
11
|
],
|
|
@@ -24,16 +16,24 @@ const KEYS = {
|
|
|
24
16
|
"params",
|
|
25
17
|
"body"
|
|
26
18
|
],
|
|
19
|
+
AssignmentExpression: [
|
|
20
|
+
"left",
|
|
21
|
+
"right"
|
|
22
|
+
],
|
|
23
|
+
AssignmentPattern: [
|
|
24
|
+
"left",
|
|
25
|
+
"right"
|
|
26
|
+
],
|
|
27
27
|
AwaitExpression: [
|
|
28
28
|
"argument"
|
|
29
29
|
],
|
|
30
|
-
BlockStatement: [
|
|
31
|
-
"body"
|
|
32
|
-
],
|
|
33
30
|
BinaryExpression: [
|
|
34
31
|
"left",
|
|
35
32
|
"right"
|
|
36
33
|
],
|
|
34
|
+
BlockStatement: [
|
|
35
|
+
"body"
|
|
36
|
+
],
|
|
37
37
|
BreakStatement: [
|
|
38
38
|
"label"
|
|
39
39
|
],
|
|
@@ -75,6 +75,12 @@ const KEYS = {
|
|
|
75
75
|
"test"
|
|
76
76
|
],
|
|
77
77
|
EmptyStatement: [],
|
|
78
|
+
ExperimentalRestProperty: [
|
|
79
|
+
"argument"
|
|
80
|
+
],
|
|
81
|
+
ExperimentalSpreadProperty: [
|
|
82
|
+
"argument"
|
|
83
|
+
],
|
|
78
84
|
ExportAllDeclaration: [
|
|
79
85
|
"exported",
|
|
80
86
|
"source"
|
|
@@ -94,18 +100,6 @@ const KEYS = {
|
|
|
94
100
|
ExpressionStatement: [
|
|
95
101
|
"expression"
|
|
96
102
|
],
|
|
97
|
-
ExperimentalRestProperty: [
|
|
98
|
-
"argument"
|
|
99
|
-
],
|
|
100
|
-
ExperimentalSpreadProperty: [
|
|
101
|
-
"argument"
|
|
102
|
-
],
|
|
103
|
-
ForStatement: [
|
|
104
|
-
"init",
|
|
105
|
-
"test",
|
|
106
|
-
"update",
|
|
107
|
-
"body"
|
|
108
|
-
],
|
|
109
103
|
ForInStatement: [
|
|
110
104
|
"left",
|
|
111
105
|
"right",
|
|
@@ -116,6 +110,12 @@ const KEYS = {
|
|
|
116
110
|
"right",
|
|
117
111
|
"body"
|
|
118
112
|
],
|
|
113
|
+
ForStatement: [
|
|
114
|
+
"init",
|
|
115
|
+
"test",
|
|
116
|
+
"update",
|
|
117
|
+
"body"
|
|
118
|
+
],
|
|
119
119
|
FunctionDeclaration: [
|
|
120
120
|
"id",
|
|
121
121
|
"params",
|
|
@@ -156,6 +156,7 @@ const KEYS = {
|
|
|
156
156
|
JSXClosingElement: [
|
|
157
157
|
"name"
|
|
158
158
|
],
|
|
159
|
+
JSXClosingFragment: [],
|
|
159
160
|
JSXElement: [
|
|
160
161
|
"openingElement",
|
|
161
162
|
"children",
|
|
@@ -165,6 +166,11 @@ const KEYS = {
|
|
|
165
166
|
JSXExpressionContainer: [
|
|
166
167
|
"expression"
|
|
167
168
|
],
|
|
169
|
+
JSXFragment: [
|
|
170
|
+
"openingFragment",
|
|
171
|
+
"children",
|
|
172
|
+
"closingFragment"
|
|
173
|
+
],
|
|
168
174
|
JSXIdentifier: [],
|
|
169
175
|
JSXMemberExpression: [
|
|
170
176
|
"object",
|
|
@@ -178,22 +184,19 @@ const KEYS = {
|
|
|
178
184
|
"name",
|
|
179
185
|
"attributes"
|
|
180
186
|
],
|
|
187
|
+
JSXOpeningFragment: [],
|
|
181
188
|
JSXSpreadAttribute: [
|
|
182
189
|
"argument"
|
|
183
190
|
],
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
"openingFragment",
|
|
187
|
-
"children",
|
|
188
|
-
"closingFragment"
|
|
191
|
+
JSXSpreadChild: [
|
|
192
|
+
"expression"
|
|
189
193
|
],
|
|
190
|
-
|
|
191
|
-
JSXOpeningFragment: [],
|
|
192
|
-
Literal: [],
|
|
194
|
+
JSXText: [],
|
|
193
195
|
LabeledStatement: [
|
|
194
196
|
"label",
|
|
195
197
|
"body"
|
|
196
198
|
],
|
|
199
|
+
Literal: [],
|
|
197
200
|
LogicalExpression: [
|
|
198
201
|
"left",
|
|
199
202
|
"right"
|
|
@@ -248,14 +251,14 @@ const KEYS = {
|
|
|
248
251
|
"body"
|
|
249
252
|
],
|
|
250
253
|
Super: [],
|
|
251
|
-
SwitchStatement: [
|
|
252
|
-
"discriminant",
|
|
253
|
-
"cases"
|
|
254
|
-
],
|
|
255
254
|
SwitchCase: [
|
|
256
255
|
"test",
|
|
257
256
|
"consequent"
|
|
258
257
|
],
|
|
258
|
+
SwitchStatement: [
|
|
259
|
+
"discriminant",
|
|
260
|
+
"cases"
|
|
261
|
+
],
|
|
259
262
|
TaggedTemplateExpression: [
|
|
260
263
|
"tag",
|
|
261
264
|
"quasi"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-visitor-keys",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Constants and utilities about visitor keys to traverse AST.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/eslint-visitor-keys.cjs",
|
|
@@ -25,24 +25,33 @@
|
|
|
25
25
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"
|
|
28
|
+
"@types/estree": "^0.0.51",
|
|
29
|
+
"@types/estree-jsx": "^0.0.1",
|
|
30
|
+
"@typescript-eslint/parser": "^5.14.0",
|
|
31
|
+
"c8": "^7.11.0",
|
|
32
|
+
"chai": "^4.3.6",
|
|
29
33
|
"eslint": "^7.29.0",
|
|
30
34
|
"eslint-config-eslint": "^7.0.0",
|
|
31
35
|
"eslint-plugin-jsdoc": "^35.4.0",
|
|
32
36
|
"eslint-plugin-node": "^11.1.0",
|
|
33
37
|
"eslint-release": "^3.2.0",
|
|
34
|
-
"
|
|
38
|
+
"esquery": "^1.4.0",
|
|
39
|
+
"json-diff": "^0.7.3",
|
|
40
|
+
"mocha": "^9.2.1",
|
|
35
41
|
"opener": "^1.5.2",
|
|
36
|
-
"rollup": "^2.
|
|
42
|
+
"rollup": "^2.70.0",
|
|
37
43
|
"tsd": "^0.19.1",
|
|
38
|
-
"typescript": "^4.
|
|
44
|
+
"typescript": "^4.6.2"
|
|
39
45
|
},
|
|
40
46
|
"scripts": {
|
|
41
47
|
"prepare": "npm run build",
|
|
42
|
-
"
|
|
48
|
+
"bundle": "rollup -c",
|
|
49
|
+
"build": "npm run bundle && npm run tsc",
|
|
50
|
+
"build:debug": "npm run bundle -- -m && npm run tsc",
|
|
43
51
|
"lint": "eslint .",
|
|
44
52
|
"tsc": "tsc",
|
|
45
53
|
"tsd": "tsd",
|
|
54
|
+
"build-keys": "node tools/build-keys-from-ts",
|
|
46
55
|
"test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run tsd",
|
|
47
56
|
"coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html",
|
|
48
57
|
"generate-release": "eslint-generate-release",
|
|
@@ -52,6 +61,7 @@
|
|
|
52
61
|
"publish-release": "eslint-publish-release"
|
|
53
62
|
},
|
|
54
63
|
"repository": "eslint/eslint-visitor-keys",
|
|
64
|
+
"funding": "https://opencollective.com/eslint",
|
|
55
65
|
"keywords": [],
|
|
56
66
|
"author": "Toru Nagashima (https://github.com/mysticatea)",
|
|
57
67
|
"license": "Apache-2.0",
|
|
@@ -225,7 +225,7 @@ Same than `kill` but the `drain` function will be called before reset to empty.
|
|
|
225
225
|
### queue.error(handler)
|
|
226
226
|
|
|
227
227
|
Set a global error handler. `handler(err, task)` will be called
|
|
228
|
-
|
|
228
|
+
each time a task is completed, `err` will be not null if the task has thrown an error.
|
|
229
229
|
|
|
230
230
|
-------------------------------------------------------
|
|
231
231
|
<a name="concurrency"></a>
|
|
@@ -266,6 +266,12 @@ function queueAsPromised (context, worker, concurrency) {
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
function drained () {
|
|
269
|
+
if (queue.idle()) {
|
|
270
|
+
return new Promise(function (resolve) {
|
|
271
|
+
resolve()
|
|
272
|
+
})
|
|
273
|
+
}
|
|
274
|
+
|
|
269
275
|
var previousDrain = queue.drain
|
|
270
276
|
|
|
271
277
|
var p = new Promise(function (resolve) {
|
|
@@ -129,6 +129,33 @@ test('drained with drain function', async function (t) {
|
|
|
129
129
|
t.equal(drainCalled, true)
|
|
130
130
|
})
|
|
131
131
|
|
|
132
|
+
test('drained while idle should resolve', async function (t) {
|
|
133
|
+
const queue = buildQueue(worker, 2)
|
|
134
|
+
|
|
135
|
+
async function worker (arg) {
|
|
136
|
+
await sleep(arg)
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
await queue.drained()
|
|
140
|
+
})
|
|
141
|
+
|
|
142
|
+
test('drained while idle should not call the drain function', async function (t) {
|
|
143
|
+
let drainCalled = false
|
|
144
|
+
const queue = buildQueue(worker, 2)
|
|
145
|
+
|
|
146
|
+
queue.drain = function () {
|
|
147
|
+
drainCalled = true
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
async function worker (arg) {
|
|
151
|
+
await sleep(arg)
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
await queue.drained()
|
|
155
|
+
|
|
156
|
+
t.equal(drainCalled, false)
|
|
157
|
+
})
|
|
158
|
+
|
|
132
159
|
test('set this', async function (t) {
|
|
133
160
|
t.plan(1)
|
|
134
161
|
const that = {}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Orlin Georgiev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Background
|
|
2
|
+
|
|
3
|
+
In JavaScript there is not always a one-to-one relationship between string characters and what a user would call a separate visual "letter". Some symbols are represented by several characters. This can cause issues when splitting strings and inadvertently cutting a multi-char letter in half, or when you need the actual number of letters in a string.
|
|
4
|
+
|
|
5
|
+
For example, emoji characters like "🌷","🎁","💩","😜" and "👍" are represented by two JavaScript characters each (high surrogate and low surrogate). That is,
|
|
6
|
+
|
|
7
|
+
```javascript
|
|
8
|
+
"🌷".length == 2
|
|
9
|
+
```
|
|
10
|
+
The combined emoji are even longer:
|
|
11
|
+
```javascript
|
|
12
|
+
"🏳️🌈".length == 6
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
What's more, some languages often include combining marks - characters that are used to modify the letters before them. Common examples are the German letter ü and the Spanish letter ñ. Sometimes they can be represented alternatively both as a single character and as a letter + combining mark, with both forms equally valid:
|
|
16
|
+
|
|
17
|
+
```javascript
|
|
18
|
+
var two = "ñ"; // unnormalized two-char n+◌̃ , i.e. "\u006E\u0303";
|
|
19
|
+
var one = "ñ"; // normalized single-char, i.e. "\u00F1"
|
|
20
|
+
console.log(one!=two); // prints 'true'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Unicode normalization, as performed by the popular punycode.js library or ECMAScript 6's String.normalize, can **sometimes** fix those differences and turn two-char sequences into single characters. But it is **not** enough in all cases. Some languages like Hindi make extensive use of combining marks on their letters, that have no dedicated single-codepoint Unicode sequences, due to the sheer number of possible combinations.
|
|
24
|
+
For example, the Hindi word "अनुच्छेद" is comprised of 5 letters and 3 combining marks:
|
|
25
|
+
|
|
26
|
+
अ + न + ु + च + ् + छ + े + द
|
|
27
|
+
|
|
28
|
+
which is in fact just 5 user-perceived letters:
|
|
29
|
+
|
|
30
|
+
अ + नु + च् + छे + द
|
|
31
|
+
|
|
32
|
+
and which Unicode normalization would not combine properly.
|
|
33
|
+
There are also the unusual letter+combining mark combinations which have no dedicated Unicode codepoint. The string Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍A̴̵̜̰͔ͫ͗͢L̠ͨͧͩ͘G̴̻͈͍͔̹̑͗̎̅͛́Ǫ̵̹̻̝̳͂̌̌͘ obviously has 5 separate letters, but is in fact comprised of 58 JavaScript characters, most of which are combining marks.
|
|
34
|
+
|
|
35
|
+
Enter the grapheme-splitter.js library. It can be used to properly split JavaScript strings into what a human user would call separate letters (or "extended grapheme clusters" in Unicode terminology), no matter what their internal representation is. It is an implementation on the [Default Grapheme Cluster Boundary](http://unicode.org/reports/tr29/#Default_Grapheme_Cluster_Table) of [UAX #29](http://www.unicode.org/reports/tr29/).
|
|
36
|
+
|
|
37
|
+
# Installation
|
|
38
|
+
|
|
39
|
+
You can use the index.js file directly as-is. Or you you can install `grapheme-splitter` to your project using the NPM command below:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
$ npm install --save grapheme-splitter
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
# Tests
|
|
46
|
+
|
|
47
|
+
To run the tests on `grapheme-splitter`, use the command below:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
$ npm test
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
# Usage
|
|
54
|
+
|
|
55
|
+
Just initialize and use:
|
|
56
|
+
|
|
57
|
+
```javascript
|
|
58
|
+
var splitter = new GraphemeSplitter();
|
|
59
|
+
|
|
60
|
+
// split the string to an array of grapheme clusters (one string each)
|
|
61
|
+
var graphemes = splitter.splitGraphemes(string);
|
|
62
|
+
|
|
63
|
+
// iterate the string to an iterable iterator of grapheme clusters (one string each)
|
|
64
|
+
var graphemes = splitter.iterateGraphemes(string);
|
|
65
|
+
|
|
66
|
+
// or do this if you just need their number
|
|
67
|
+
var graphemeCount = splitter.countGraphemes(string);
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
# Examples
|
|
71
|
+
|
|
72
|
+
```javascript
|
|
73
|
+
var splitter = new GraphemeSplitter();
|
|
74
|
+
|
|
75
|
+
// plain latin alphabet - nothing spectacular
|
|
76
|
+
splitter.splitGraphemes("abcd"); // returns ["a", "b", "c", "d"]
|
|
77
|
+
|
|
78
|
+
// two-char emojis and six-char combined emoji
|
|
79
|
+
splitter.splitGraphemes("🌷🎁💩😜👍🏳️🌈"); // returns ["🌷","🎁","💩","😜","👍","🏳️🌈"]
|
|
80
|
+
|
|
81
|
+
// diacritics as combining marks, 10 JavaScript chars
|
|
82
|
+
splitter.splitGraphemes("Ĺo͂řȩm̅"); // returns ["Ĺ","o͂","ř","ȩ","m̅"]
|
|
83
|
+
|
|
84
|
+
// individual Korean characters (Jamo), 4 JavaScript chars
|
|
85
|
+
splitter.splitGraphemes("뎌쉐"); // returns ["뎌","쉐"]
|
|
86
|
+
|
|
87
|
+
// Hindi text with combining marks, 8 JavaScript chars
|
|
88
|
+
splitter.splitGraphemes("अनुच्छेद"); // returns ["अ","नु","च्","छे","द"]
|
|
89
|
+
|
|
90
|
+
// demonic multiple combining marks, 75 JavaScript chars
|
|
91
|
+
splitter.splitGraphemes("Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍A̴̵̜̰͔ͫ͗͢L̠ͨͧͩ͘G̴̻͈͍͔̹̑͗̎̅͛́Ǫ̵̹̻̝̳͂̌̌͘!͖̬̰̙̗̿̋ͥͥ̂ͣ̐́́͜͞"); // returns ["Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍","A̴̵̜̰͔ͫ͗͢","L̠ͨͧͩ͘","G̴̻͈͍͔̹̑͗̎̅͛́","Ǫ̵̹̻̝̳͂̌̌͘","!͖̬̰̙̗̿̋ͥͥ̂ͣ̐́́͜͞"]
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
# TypeScript
|
|
95
|
+
|
|
96
|
+
Grapheme splitter includes TypeScript declarations.
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
import GraphemeSplitter = require('grapheme-splitter')
|
|
100
|
+
|
|
101
|
+
const splitter = new GraphemeSplitter()
|
|
102
|
+
|
|
103
|
+
const split: string[] = splitter.splitGraphemes('Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍A̴̵̜̰͔ͫ͗͢L̠ͨͧͩ͘G̴̻͈͍͔̹̑͗̎̅͛́Ǫ̵̹̻̝̳͂̌̌͘!͖̬̰̙̗̿̋ͥͥ̂ͣ̐́́͜͞')
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
# Acknowledgements
|
|
107
|
+
|
|
108
|
+
This library is heavily influenced by Devon Govett's excellent grapheme-breaker CoffeeScript library at https://github.com/devongovett/grapheme-breaker with an emphasis on ease of integration and pure JavaScript implementation.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|