xo 0.48.0 → 0.51.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/cli.js +1 -1
- package/config/plugins.cjs +27 -24
- package/index.js +7 -2
- package/lib/constants.js +6 -6
- package/lib/options-manager.js +5 -5
- package/lib/report.js +3 -1
- package/node_modules/@types/json-schema/README.md +2 -2
- package/node_modules/@types/json-schema/index.d.ts +8 -1
- package/node_modules/@types/json-schema/package.json +3 -8
- package/node_modules/@typescript-eslint/eslint-plugin/README.md +1 -144
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +8 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +46 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +3 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +5 -1
- 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 +8 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +6 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +60 -55
- 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 +7 -3
- 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 +10 -2
- 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 +7 -3
- 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 +6 -2
- 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-generic-constructors.js +87 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +3 -4
- 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 +9 -5
- 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 +30 -27
- 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 +6 -2
- 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 +6 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +7 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +5 -1
- 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 +5 -1
- 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 +7 -2
- 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/func-call-spacing.js +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.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/init-declarations.js +13 -5
- 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 +5 -1
- 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 +5 -1
- 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 +23 -4
- 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 +46 -30
- 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 +9 -2
- 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/format.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +5 -1
- 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 +13 -7
- 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 +6 -2
- 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 +5 -1
- 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 +8 -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 +6 -2
- 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 +6 -2
- 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 +5 -1
- 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-enum-values.js +85 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js +7 -1
- 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 +7 -3
- 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 +16 -2
- 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-empty-interface.js +5 -1
- 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 +6 -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-extra-non-null-assertion.js +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js +5 -1
- 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 +5 -1
- 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 +7 -3
- 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 +6 -2
- 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-for-in-array.js +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js +5 -1
- 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 +5 -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-inferrable-types.js +15 -3
- 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.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +7 -3
- 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 +5 -1
- 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-loss-of-precision.js +5 -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-magic-numbers.js +52 -12
- 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 +6 -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 +5 -1
- 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 +264 -28
- 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 +11 -6
- 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 +7 -3
- 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 +6 -2
- 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 +6 -2
- 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 +7 -1
- 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 +5 -1
- 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-redundant-type-constituents.js +373 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +6 -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 +3 -4
- 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 +143 -9
- 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 +7 -3
- 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 +6 -2
- 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 +7 -2
- 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 +7 -3
- 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 +7 -3
- 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 +6 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +41 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +10 -6
- 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 +27 -6
- 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 +14 -12
- 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 +14 -11
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +6 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +9 -5
- 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 +6 -2
- 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 +5 -1
- 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 +53 -21
- 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 +5 -1
- 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 +6 -2
- 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-useless-empty-export.js +91 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +6 -2
- 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 +7 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +6 -2
- 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/parameter-properties.js +189 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +6 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +6 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +7 -3
- 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 +69 -64
- 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 +6 -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-literal-enum-member.js +2 -2
- 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 +6 -2
- 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 +7 -3
- 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 +54 -4
- 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 +6 -2
- 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 +13 -4
- 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 +7 -3
- 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 -2
- 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 +6 -2
- 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 +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/prefer-ts-expect-error.js +7 -3
- 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 +6 -2
- 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 +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +6 -2
- 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/require-await.js +5 -1
- 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 +16 -3
- 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 +6 -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 +26 -10
- 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 +5 -1
- 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 +8 -3
- 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 +95 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +6 -2
- 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 +31 -28
- 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 +6 -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 +6 -2
- 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 +6 -2
- 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/type-annotation-spacing.js +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +40 -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 +6 -2
- 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 +50 -21
- 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 +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js +307 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +6 -1
- 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 +52 -2
- 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 +5 -141
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md +2 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.md +0 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +0 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md +32 -15
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.md +14 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +34 -29
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md +3 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md +0 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.md +82 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md +0 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +32 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +0 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +3 -9
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md +3 -13
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md +6 -13
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +544 -484
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +0 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md +14 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.md +0 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.md +56 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.md +5 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.md +14 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md +19 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md +252 -30
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md +18 -14
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.md +1 -13
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implicit-any-catch.md +3 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.md +0 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md +25 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.md +2 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.md +107 -18
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md +14 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +0 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.md +92 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.md +13 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md +19 -31
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md +18 -12
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.md +13 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md +11 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md +0 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.md +1 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.md +1 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.md +1 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.md +1 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.md +1 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.md +52 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md +14 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.md +484 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md +14 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.md +13 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +13 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.md +11 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md +21 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md +4 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md +11 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.md +8 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.md +14 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md +8 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.md +14 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +0 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md +0 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md +0 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md +54 -0
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md +0 -6
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md +1 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +1 -8
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.md +14 -7
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.md +17 -12
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md +1 -11
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md +2 -12
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.md +0 -10
- package/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +42 -8
- package/node_modules/@typescript-eslint/eslint-plugin/package.json +12 -12
- package/node_modules/@typescript-eslint/parser/README.md +22 -10
- package/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts +4 -0
- package/node_modules/@typescript-eslint/parser/_ts3.4/dist/parser.d.ts +20 -0
- package/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/parser/dist/parser.js +6 -10
- package/node_modules/@typescript-eslint/parser/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/package.json +9 -8
- package/node_modules/@typescript-eslint/scope-manager/README.md +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +3 -9
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +5 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/index.js +5 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/index.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +9 -9
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.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.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +8 -1
- 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 +68 -8
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.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 +2 -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/es2016.array.include.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.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.full.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map +1 -1
- 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/es2019.object.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +4 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +11 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +5 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +11 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.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.full.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map +1 -1
- 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/es2021.promise.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +24 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +21 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +14 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +14 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +12 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +12 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.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 +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +14 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +4 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +4 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +8 -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 +18 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.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.importscripts.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.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 +33 -5
- 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.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +6 -4
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -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 +11 -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.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +13 -7
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.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 +2 -6
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +1 -4
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +5 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/package.json +13 -14
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts +8 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getConstrainedTypeAtLocation.d.ts +6 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getContextualType.d.ts +8 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getDeclaration.d.ts +6 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getSourceFileOfNode.d.ts +6 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTokenAtPosition.d.ts +3 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTypeArguments.d.ts +3 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTypeName.d.ts +8 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/index.d.ts +15 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/isTypeReadonly.d.ts +20 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/isUnsafeAssignment.d.ts +17 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/predicates.d.ts +52 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/propertyTypes.d.ts +4 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/requiresQuoting.d.ts +4 -0
- package/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/typeFlagUtils.d.ts +11 -0
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +5 -1
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +5 -1
- package/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +5 -1
- package/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js +5 -1
- package/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +5 -1
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/index.js +5 -1
- package/node_modules/@typescript-eslint/type-utils/dist/index.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 +36 -28
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts +7 -0
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.js +38 -2
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js +15 -1
- package/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js +5 -1
- package/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +5 -1
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +1 -1
- package/node_modules/@typescript-eslint/type-utils/package.json +7 -7
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +1732 -0
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/index.d.ts +5 -0
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts +3 -0
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +35 -0
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/ts-estree.d.ts +9 -0
- package/node_modules/@typescript-eslint/types/dist/{ast-spec.d.ts → generated/ast-spec.d.ts} +412 -67
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/types/dist/{ast-spec.js → generated/ast-spec.js} +1 -0
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -0
- package/node_modules/@typescript-eslint/types/dist/index.d.ts +1 -2
- package/node_modules/@typescript-eslint/types/dist/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/index.js +7 -4
- package/node_modules/@typescript-eslint/types/dist/index.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/lib.js +2 -1
- package/node_modules/@typescript-eslint/types/dist/lib.js.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +1 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts +3 -3
- package/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/ts-estree.js +6 -2
- package/node_modules/@typescript-eslint/types/dist/ts-estree.js.map +1 -1
- package/node_modules/@typescript-eslint/types/package.json +32 -4
- package/node_modules/@typescript-eslint/typescript-estree/README.md +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ast-converter.d.ts +9 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert-comments.d.ts +11 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert.d.ts +157 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/WatchCompilerHostOfConfigFile.d.ts +13 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createDefaultProgram.d.ts +12 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createIsolatedProgram.d.ts +9 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createProjectProgram.d.ts +11 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createSourceFile.d.ts +5 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createWatchProgram.d.ts +19 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/getScriptKind.d.ts +5 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +22 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/useProvidedPrograms.d.ts +13 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +10 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/jsx/xhtml-entities.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/node-utils.d.ts +230 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +188 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts +25 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/semantic-or-syntactic-errors.d.ts +13 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts +9 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +175 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/index.d.ts +4 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +18 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts +3 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +6 -2
- 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 +38 -14
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +5 -1
- 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/createIsolatedProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +7 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +34 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +7 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js +5 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts +5 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +72 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +1 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +14 -25
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +5 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +6 -1
- 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 +3 -0
- 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 +27 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +11 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +3 -2
- 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/index.js +5 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +5 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +11 -11
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +48 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +76 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +76 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/index.d.ts +6 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +32 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +18 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts +47 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/index.d.ts +5 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/misc.d.ts +8 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts +180 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +11 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +35 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleTester.d.ts +18 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/applyDefault.d.ts +10 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts +24 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts +17 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/getParserServices.d.ts +8 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/index.d.ts +9 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/nullThrows.d.ts +14 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/index.d.ts +8 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/json-schema.d.ts +2 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/AST.d.ts +9 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/CLIEngine.d.ts +137 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/ESLint.d.ts +376 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Linter.d.ts +326 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/ParserOptions.d.ts +2 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +389 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +154 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Scope.d.ts +44 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts +342 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/index.d.ts +10 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Definition.d.ts +19 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts +15 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts +25 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +28 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts +55 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +103 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/ScopeManager.d.ts +50 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Variable.d.ts +17 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/analyze.d.ts +16 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/index.d.ts +11 -0
- package/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-estree.d.ts +3 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +5 -1
- 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.js +5 -1
- 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 +7 -7
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +5 -1
- 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/index.js +5 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +5 -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.js +5 -1
- 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 +29 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js +3 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts +2 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js +7 -2
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +8 -8
- 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 +2 -6
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.js +18 -12
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleTester.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +2 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js +5 -1
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/index.js +5 -1
- package/node_modules/@typescript-eslint/utils/dist/index.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts +3 -3
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts +42 -7
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts +2 -2
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +3 -4
- 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 +2 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js +5 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +1 -2
- 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/index.js +5 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.js +5 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.js.map +1 -1
- package/node_modules/@typescript-eslint/utils/package.json +7 -7
- package/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/get-keys.d.ts +4 -0
- package/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/index.d.ts +3 -0
- package/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/visitor-keys.d.ts +6 -0
- 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 +9 -4
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/package.json +7 -6
- package/node_modules/debug/README.md +3 -0
- package/node_modules/debug/package.json +1 -1
- package/node_modules/debug/src/common.js +1 -1
- package/node_modules/eslint-config-xo-typescript/index.js +107 -82
- package/node_modules/eslint-config-xo-typescript/package.json +4 -4
- package/node_modules/eslint-config-xo-typescript/readme.md +3 -3
- package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +18 -5
- package/node_modules/eslint-visitor-keys/dist/index.d.ts +18 -0
- package/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +10 -0
- package/node_modules/eslint-visitor-keys/lib/index.js +11 -5
- package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +7 -0
- package/node_modules/eslint-visitor-keys/package.json +11 -4
- package/node_modules/{@typescript-eslint/eslint-plugin/node_modules/ignore → ignore}/LICENSE-MIT +0 -0
- package/node_modules/{@typescript-eslint/eslint-plugin/node_modules/ignore → ignore}/README.md +0 -0
- package/node_modules/{@typescript-eslint/eslint-plugin/node_modules/ignore → ignore}/index.d.ts +0 -0
- package/node_modules/{@typescript-eslint/eslint-plugin/node_modules/ignore → ignore}/index.js +0 -0
- package/node_modules/{@typescript-eslint/eslint-plugin/node_modules/ignore → ignore}/legacy.js +0 -0
- package/node_modules/{@typescript-eslint/eslint-plugin/node_modules/ignore → ignore}/package.json +0 -0
- package/node_modules/micromatch/README.md +12 -9
- package/node_modules/micromatch/index.js +3 -3
- package/node_modules/micromatch/package.json +5 -5
- package/node_modules/semver/README.md +3 -1
- package/node_modules/semver/bin/semver.js +19 -9
- package/node_modules/semver/classes/comparator.js +3 -2
- package/node_modules/semver/classes/index.js +1 -1
- package/node_modules/semver/classes/range.js +31 -22
- package/node_modules/semver/classes/semver.js +1 -1
- package/node_modules/semver/functions/cmp.js +8 -4
- package/node_modules/semver/functions/coerce.js +3 -2
- package/node_modules/semver/functions/inc.js +4 -1
- package/node_modules/semver/functions/parse.js +1 -1
- package/node_modules/semver/internal/constants.js +2 -2
- package/node_modules/semver/internal/identifiers.js +1 -1
- package/node_modules/semver/internal/parse-options.js +3 -3
- package/node_modules/semver/internal/re.js +3 -3
- package/node_modules/semver/package.json +45 -11
- package/node_modules/semver/ranges/min-version.js +2 -1
- package/node_modules/semver/ranges/outside.js +1 -1
- package/node_modules/semver/ranges/simplify.js +15 -12
- package/node_modules/semver/ranges/subset.js +53 -31
- package/package.json +23 -23
- package/readme.md +17 -1
- package/node_modules/@typescript-eslint/types/dist/ast-spec.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/ast-spec.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/LICENSE-MIT +0 -21
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/README.md +0 -412
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/index.d.ts +0 -61
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/index.js +0 -603
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/legacy.js +0 -498
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/ignore/package.json +0 -71
- package/node_modules/micromatch/CHANGELOG.md +0 -109
- package/node_modules/semver/CHANGELOG.md +0 -111
|
@@ -1,300 +1,59 @@
|
|
|
1
1
|
# `member-ordering`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Requires a consistent member declaration order.
|
|
4
4
|
|
|
5
|
-
A consistent ordering of fields, methods and constructors can make interfaces, type literals, classes and class expressions easier to read, navigate and edit.
|
|
5
|
+
A consistent ordering of fields, methods and constructors can make interfaces, type literals, classes and class expressions easier to read, navigate, and edit.
|
|
6
6
|
|
|
7
7
|
## Rule Details
|
|
8
8
|
|
|
9
9
|
This rule aims to standardize the way class declarations, class expressions, interfaces and type literals are structured and ordered.
|
|
10
10
|
|
|
11
|
-
### Grouping and sorting member groups
|
|
12
|
-
|
|
13
|
-
It allows to group members by their type (e.g. `public-static-field`, `protected-static-field`, `private-static-field`, `public-instance-field`, ...) and enforce a certain order for these groups. By default, their order is the same inside `classes`, `classExpressions`, `interfaces` and `typeLiterals` (note: not all member types apply to `interfaces` and `typeLiterals`). It is possible to define the order for any of those individually or to change the default order for all of them by setting the `default` option.
|
|
14
|
-
|
|
15
|
-
### Sorting members
|
|
16
|
-
|
|
17
|
-
Besides grouping the members and sorting their groups, this rule also allows to sort the members themselves (e.g. `a`, `b`, `c`, ...). You have 2 options: Sort all of them while ignoring their type or sort them while respecting their types (e.g. sort all fields in an interface alphabetically).
|
|
18
|
-
|
|
19
11
|
## Options
|
|
20
12
|
|
|
21
|
-
These options allow to specify how to group the members and sort their groups.
|
|
22
|
-
|
|
23
|
-
- Sort groups, don't enforce member order: Use `memberTypes`
|
|
24
|
-
- Sort members, don't enforce group order: Use `order`
|
|
25
|
-
- Sort members within groups: Use `memberTypes` and `order`
|
|
26
|
-
|
|
27
13
|
```ts
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
order: 'alphabetically' | 'alphabetically-case-insensitive' | 'as-written',
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
{
|
|
38
|
-
default?: TypeOptions<MemberTypes>,
|
|
39
|
-
|
|
40
|
-
classes?: TypeOptions<MemberTypes>,
|
|
41
|
-
classExpressions?: TypeOptions<MemberTypes>,
|
|
42
|
-
|
|
43
|
-
interfaces?: TypeOptions<'signature' | 'field' | 'method' | 'constructor'>,
|
|
44
|
-
typeLiterals?: TypeOptions<'signature' | 'field' | 'method' | 'constructor'>,
|
|
14
|
+
interface Options {
|
|
15
|
+
default?: OrderConfig;
|
|
16
|
+
classes?: OrderConfig;
|
|
17
|
+
classExpressions?: OrderConfig;
|
|
18
|
+
interfaces?: OrderConfig;
|
|
19
|
+
typeLiterals?: OrderConfig;
|
|
45
20
|
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
See below for the possible definitions of `MemberType`.
|
|
49
|
-
|
|
50
|
-
### Deprecated syntax
|
|
51
|
-
|
|
52
|
-
Note: There is a deprecated syntax to specify the member types as an array.
|
|
53
|
-
|
|
54
|
-
### Member types (granular form)
|
|
55
|
-
|
|
56
|
-
There are multiple ways to specify the member types. The most explicit and granular form is the following:
|
|
57
|
-
|
|
58
|
-
```jsonc
|
|
59
|
-
[
|
|
60
|
-
// Index signature
|
|
61
|
-
"signature",
|
|
62
|
-
|
|
63
|
-
// Fields
|
|
64
|
-
"public-static-field",
|
|
65
|
-
"protected-static-field",
|
|
66
|
-
"private-static-field",
|
|
67
|
-
"public-decorated-field",
|
|
68
|
-
"protected-decorated-field",
|
|
69
|
-
"private-decorated-field",
|
|
70
|
-
"public-instance-field",
|
|
71
|
-
"protected-instance-field",
|
|
72
|
-
"private-instance-field",
|
|
73
|
-
"public-abstract-field",
|
|
74
|
-
"protected-abstract-field",
|
|
75
|
-
"private-abstract-field",
|
|
76
|
-
|
|
77
|
-
// Constructors
|
|
78
|
-
"public-constructor",
|
|
79
|
-
"protected-constructor",
|
|
80
|
-
"private-constructor",
|
|
81
|
-
|
|
82
|
-
// Getters
|
|
83
|
-
"public-static-get",
|
|
84
|
-
"protected-static-get",
|
|
85
|
-
"private-static-get",
|
|
86
|
-
|
|
87
|
-
"public-decorated-get",
|
|
88
|
-
"protected-decorated-get",
|
|
89
|
-
"private-decorated-get",
|
|
90
|
-
|
|
91
|
-
"public-instance-get",
|
|
92
|
-
"protected-instance-get",
|
|
93
|
-
"private-instance-get",
|
|
94
|
-
|
|
95
|
-
"public-abstract-get",
|
|
96
|
-
"protected-abstract-get",
|
|
97
|
-
"private-abstract-get",
|
|
98
|
-
|
|
99
|
-
"public-get",
|
|
100
|
-
"protected-get",
|
|
101
|
-
"private-get",
|
|
102
|
-
|
|
103
|
-
"static-get",
|
|
104
|
-
"instance-get",
|
|
105
|
-
"abstract-get",
|
|
106
|
-
|
|
107
|
-
"decorated-get",
|
|
108
|
-
|
|
109
|
-
"get",
|
|
110
|
-
|
|
111
|
-
// Setters
|
|
112
|
-
"public-static-set",
|
|
113
|
-
"protected-static-set",
|
|
114
|
-
"private-static-set",
|
|
115
|
-
|
|
116
|
-
"public-decorated-set",
|
|
117
|
-
"protected-decorated-set",
|
|
118
|
-
"private-decorated-set",
|
|
119
|
-
|
|
120
|
-
"public-instance-set",
|
|
121
|
-
"protected-instance-set",
|
|
122
|
-
"private-instance-set",
|
|
123
|
-
|
|
124
|
-
"public-abstract-set",
|
|
125
|
-
"protected-abstract-set",
|
|
126
|
-
"private-abstract-set",
|
|
127
|
-
|
|
128
|
-
"public-set",
|
|
129
|
-
"protected-set",
|
|
130
|
-
"private-set",
|
|
131
|
-
|
|
132
|
-
"static-set",
|
|
133
|
-
"instance-set",
|
|
134
|
-
"abstract-set",
|
|
135
|
-
|
|
136
|
-
"decorated-set",
|
|
137
|
-
|
|
138
|
-
"set",
|
|
139
|
-
|
|
140
|
-
// Methods
|
|
141
|
-
"public-static-method",
|
|
142
|
-
"protected-static-method",
|
|
143
|
-
"private-static-method",
|
|
144
|
-
"public-decorated-method",
|
|
145
|
-
"protected-decorated-method",
|
|
146
|
-
"private-decorated-method",
|
|
147
|
-
"public-instance-method",
|
|
148
|
-
"protected-instance-method",
|
|
149
|
-
"private-instance-method",
|
|
150
|
-
"public-abstract-method",
|
|
151
|
-
"protected-abstract-method",
|
|
152
|
-
"private-abstract-method"
|
|
153
|
-
]
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
Note: If you only specify some of the possible types, the non-specified ones can have any particular order. This means that they can be placed before, within or after the specified types and the linter won't complain about it.
|
|
157
|
-
|
|
158
|
-
### Member group types (with accessibility, ignoring scope)
|
|
159
|
-
|
|
160
|
-
It is also possible to group member types by their accessibility (`static`, `instance`, `abstract`), ignoring their scope.
|
|
161
|
-
|
|
162
|
-
```jsonc
|
|
163
|
-
[
|
|
164
|
-
// Index signature
|
|
165
|
-
// No accessibility for index signature. See above.
|
|
166
|
-
|
|
167
|
-
// Fields
|
|
168
|
-
"public-field", // = ["public-static-field", "public-instance-field"]
|
|
169
|
-
"protected-field", // = ["protected-static-field", "protected-instance-field"]
|
|
170
|
-
"private-field", // = ["private-static-field", "private-instance-field"]
|
|
171
21
|
|
|
172
|
-
|
|
173
|
-
// Only the accessibility of constructors is configurable. See below.
|
|
174
|
-
|
|
175
|
-
// Getters
|
|
176
|
-
"public-get", // = ["public-static-get", "public-instance-get"]
|
|
177
|
-
"protected-get", // = ["protected-static-get", "protected-instance-get"]
|
|
178
|
-
"private-get", // = ["private-static-get", "private-instance-get"]
|
|
179
|
-
|
|
180
|
-
// Setters
|
|
181
|
-
"public-set", // = ["public-static-set", "public-instance-set"]
|
|
182
|
-
"protected-set", // = ["protected-static-set", "protected-instance-set"]
|
|
183
|
-
"private-set", // = ["private-static-set", "private-instance-set"]
|
|
184
|
-
|
|
185
|
-
// Methods
|
|
186
|
-
"public-method", // = ["public-static-method", "public-instance-method"]
|
|
187
|
-
"protected-method", // = ["protected-static-method", "protected-instance-method"]
|
|
188
|
-
"private-method" // = ["private-static-method", "private-instance-method"]
|
|
189
|
-
]
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
### Member group types (with accessibility and a decorator)
|
|
193
|
-
|
|
194
|
-
It is also possible to group methods or fields with a decorator separately, optionally specifying
|
|
195
|
-
their accessibility.
|
|
196
|
-
|
|
197
|
-
```jsonc
|
|
198
|
-
[
|
|
199
|
-
// Index signature
|
|
200
|
-
// No decorators for index signature.
|
|
201
|
-
|
|
202
|
-
// Fields
|
|
203
|
-
"public-decorated-field",
|
|
204
|
-
"protected-decorated-field",
|
|
205
|
-
"private-decorated-field",
|
|
206
|
-
|
|
207
|
-
"decorated-field", // = ["public-decorated-field", "protected-decorated-field", "private-decorated-field"]
|
|
208
|
-
|
|
209
|
-
// Constructors
|
|
210
|
-
// There are no decorators for constructors.
|
|
211
|
-
|
|
212
|
-
// Getters
|
|
213
|
-
"public-decorated-get",
|
|
214
|
-
"protected-decorated-get",
|
|
215
|
-
"private-decorated-get",
|
|
216
|
-
|
|
217
|
-
"decorated-get" // = ["public-decorated-get", "protected-decorated-get", "private-decorated-get"]
|
|
218
|
-
|
|
219
|
-
// Setters
|
|
220
|
-
"public-decorated-set",
|
|
221
|
-
"protected-decorated-set",
|
|
222
|
-
"private-decorated-set",
|
|
223
|
-
|
|
224
|
-
"decorated-set" // = ["public-decorated-set", "protected-decorated-set", "private-decorated-set"]
|
|
225
|
-
|
|
226
|
-
// Methods
|
|
227
|
-
"public-decorated-method",
|
|
228
|
-
"protected-decorated-method",
|
|
229
|
-
"private-decorated-method",
|
|
230
|
-
|
|
231
|
-
"decorated-method" // = ["public-decorated-method", "protected-decorated-method", "private-decorated-method"]
|
|
232
|
-
]
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
### Member group types (with scope, ignoring accessibility)
|
|
236
|
-
|
|
237
|
-
Another option is to group the member types by their scope (`public`, `protected`, `private`), ignoring their accessibility.
|
|
22
|
+
type OrderConfig = MemberType[] | SortedOrderConfig | 'never';
|
|
238
23
|
|
|
239
|
-
|
|
240
|
-
[
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
// Fields
|
|
245
|
-
"static-field", // = ["public-static-field", "protected-static-field", "private-static-field"]
|
|
246
|
-
"instance-field", // = ["public-instance-field", "protected-instance-field", "private-instance-field"]
|
|
247
|
-
"abstract-field", // = ["public-abstract-field", "protected-abstract-field", "private-abstract-field"]
|
|
248
|
-
|
|
249
|
-
// Constructors
|
|
250
|
-
"constructor", // = ["public-constructor", "protected-constructor", "private-constructor"]
|
|
251
|
-
|
|
252
|
-
// Getters
|
|
253
|
-
"static-get", // = ["public-static-get", "protected-static-get", "private-static-get"]
|
|
254
|
-
"instance-get", // = ["public-instance-get", "protected-instance-get", "private-instance-get"]
|
|
255
|
-
"abstract-get" // = ["public-abstract-get", "protected-abstract-get", "private-abstract-get"]
|
|
256
|
-
|
|
257
|
-
// Setters
|
|
258
|
-
"static-set", // = ["public-static-set", "protected-static-set", "private-static-set"]
|
|
259
|
-
"instance-set", // = ["public-instance-set", "protected-instance-set", "private-instance-set"]
|
|
260
|
-
"abstract-set" // = ["public-abstract-set", "protected-abstract-set", "private-abstract-set"]
|
|
24
|
+
interface SortedOrderConfig {
|
|
25
|
+
memberTypes?: MemberType[] | 'never';
|
|
26
|
+
order: 'alphabetically' | 'alphabetically-case-insensitive' | 'as-written';
|
|
27
|
+
}
|
|
261
28
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
"instance-method", // = ["public-instance-method", "protected-instance-method", "private-instance-method"]
|
|
265
|
-
"abstract-method" // = ["public-abstract-method", "protected-abstract-method", "private-abstract-method"]
|
|
266
|
-
]
|
|
29
|
+
// See below for the more specific MemberType strings
|
|
30
|
+
type MemberType = string | string[];
|
|
267
31
|
```
|
|
268
32
|
|
|
269
|
-
|
|
33
|
+
You can configure `OrderConfig` options for:
|
|
270
34
|
|
|
271
|
-
|
|
35
|
+
- **`default`**: all constructs (used as a fallback)
|
|
36
|
+
- **`classes`**?: override ordering specifically for classes
|
|
37
|
+
- **`classExpressions`**?: override ordering specifically for class expressions
|
|
38
|
+
- **`interfaces`**?: override ordering specifically for interfaces
|
|
39
|
+
- **`typeLiterals`**?: override ordering specifically for type literals
|
|
272
40
|
|
|
273
|
-
|
|
274
|
-
[
|
|
275
|
-
// Index signature
|
|
276
|
-
// No grouping for index signature. See above.
|
|
41
|
+
The `OrderConfig` settings for each kind of construct may configure sorting on one or both two levels:
|
|
277
42
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
// "public-abstract-field", "protected-abstract-field", private-abstract-field"]
|
|
43
|
+
- **`memberType`**: organizing on member type groups such as methods vs. properties
|
|
44
|
+
- **`order`**: organizing based on member names, such as alphabetically
|
|
281
45
|
|
|
282
|
-
|
|
283
|
-
// Only the accessibility of constructors is configurable. See above.
|
|
46
|
+
### Groups
|
|
284
47
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
// "public-abstract-get", "protected-abstract-get", "private-abstract-get"]
|
|
48
|
+
You can define many different groups based on different attributes of members.
|
|
49
|
+
The supported member attributes are, in order:
|
|
288
50
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
51
|
+
- **Accessibility** (`'public' | 'protected' | 'private'`)
|
|
52
|
+
- **Decoration** (`'decorated'`): Whether the member has an explicit accessibility decorator
|
|
53
|
+
- **Kind** (`'call-signature' | 'constructor' | 'field' | 'get' | 'method' | 'set' | 'signature'`)
|
|
292
54
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
// "public-abstract-method", "protected-abstract-method", "private-abstract-method"]
|
|
296
|
-
]
|
|
297
|
-
```
|
|
55
|
+
Member attributes may be joined with a `'-'` to combine into more specific groups.
|
|
56
|
+
For example, `'public-field'` would come before `'private-field'`.
|
|
298
57
|
|
|
299
58
|
### Default configuration
|
|
300
59
|
|
|
@@ -432,19 +191,39 @@ The default configuration looks as follows:
|
|
|
432
191
|
}
|
|
433
192
|
```
|
|
434
193
|
|
|
435
|
-
|
|
194
|
+
:::note
|
|
195
|
+
The default configuration contains member group types which contain other member types.
|
|
196
|
+
This is intentional to provide better error messages.
|
|
197
|
+
:::
|
|
436
198
|
|
|
437
|
-
|
|
199
|
+
:::tip
|
|
200
|
+
By default, the members are not sorted.
|
|
201
|
+
If you want to sort them alphabetically, you have to provide a custom configuration.
|
|
202
|
+
:::
|
|
438
203
|
|
|
439
204
|
## Examples
|
|
440
205
|
|
|
441
|
-
###
|
|
206
|
+
### General Order on All Constructs
|
|
442
207
|
|
|
443
|
-
|
|
208
|
+
This config specifies the order for all constructs.
|
|
209
|
+
It ignores member types other than signatures, methods, constructors, and fields.
|
|
210
|
+
It also ignores accessibility and scope.
|
|
211
|
+
|
|
212
|
+
```jsonc
|
|
213
|
+
// .eslintrc.json
|
|
214
|
+
{
|
|
215
|
+
"rules": {
|
|
216
|
+
"@typescript-eslint/member-ordering": [
|
|
217
|
+
"error",
|
|
218
|
+
{ "default": ["signature", "method", "constructor", "field"] }
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
```
|
|
444
223
|
|
|
445
|
-
|
|
224
|
+
<!--tabs-->
|
|
446
225
|
|
|
447
|
-
|
|
226
|
+
#### ❌ Incorrect
|
|
448
227
|
|
|
449
228
|
```ts
|
|
450
229
|
interface Foo {
|
|
@@ -458,8 +237,6 @@ interface Foo {
|
|
|
458
237
|
}
|
|
459
238
|
```
|
|
460
239
|
|
|
461
|
-
Note: Wrong order.
|
|
462
|
-
|
|
463
240
|
```ts
|
|
464
241
|
type Foo = {
|
|
465
242
|
B: string; // -> field
|
|
@@ -472,8 +249,6 @@ type Foo = {
|
|
|
472
249
|
};
|
|
473
250
|
```
|
|
474
251
|
|
|
475
|
-
Note: Not all specified member types have to exist.
|
|
476
|
-
|
|
477
252
|
```ts
|
|
478
253
|
class Foo {
|
|
479
254
|
private C: string; // -> field
|
|
@@ -489,8 +264,6 @@ class Foo {
|
|
|
489
264
|
}
|
|
490
265
|
```
|
|
491
266
|
|
|
492
|
-
Note: Accessibility or scope are ignored with this configuration.
|
|
493
|
-
|
|
494
267
|
```ts
|
|
495
268
|
const Foo = class {
|
|
496
269
|
private C: string; // -> field
|
|
@@ -507,9 +280,7 @@ const Foo = class {
|
|
|
507
280
|
};
|
|
508
281
|
```
|
|
509
282
|
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
##### Correct examples
|
|
283
|
+
#### ✅ Correct
|
|
513
284
|
|
|
514
285
|
```ts
|
|
515
286
|
interface Foo {
|
|
@@ -565,11 +336,29 @@ const Foo = class {
|
|
|
565
336
|
};
|
|
566
337
|
```
|
|
567
338
|
|
|
568
|
-
|
|
339
|
+
### Classes
|
|
340
|
+
|
|
341
|
+
#### Public Instance Methods Before Public Static Fields
|
|
342
|
+
|
|
343
|
+
This config specifies that public instance methods should come first before public static fields.
|
|
344
|
+
Everything else can be placed anywhere.
|
|
345
|
+
It doesn't apply to interfaces or type literals as accessibility and scope are not part of them.
|
|
346
|
+
|
|
347
|
+
```jsonc
|
|
348
|
+
// .eslintrc.json
|
|
349
|
+
{
|
|
350
|
+
"rules": {
|
|
351
|
+
"@typescript-eslint/member-ordering": [
|
|
352
|
+
"error",
|
|
353
|
+
{ "default": ["public-instance-method", "public-static-field"] }
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
```
|
|
569
358
|
|
|
570
|
-
|
|
359
|
+
<!--tabs-->
|
|
571
360
|
|
|
572
|
-
##### Incorrect
|
|
361
|
+
##### ❌ Incorrect
|
|
573
362
|
|
|
574
363
|
```ts
|
|
575
364
|
class Foo {
|
|
@@ -589,8 +378,6 @@ class Foo {
|
|
|
589
378
|
}
|
|
590
379
|
```
|
|
591
380
|
|
|
592
|
-
Note: Public instance methods should come first before public static fields. Everything else can be placed anywhere.
|
|
593
|
-
|
|
594
381
|
```ts
|
|
595
382
|
const Foo = class {
|
|
596
383
|
private C: string; // (irrelevant)
|
|
@@ -609,9 +396,7 @@ const Foo = class {
|
|
|
609
396
|
};
|
|
610
397
|
```
|
|
611
398
|
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
##### Correct examples
|
|
399
|
+
##### ✅ Correct
|
|
615
400
|
|
|
616
401
|
```ts
|
|
617
402
|
class Foo {
|
|
@@ -649,11 +434,25 @@ const Foo = class {
|
|
|
649
434
|
};
|
|
650
435
|
```
|
|
651
436
|
|
|
652
|
-
####
|
|
437
|
+
#### Static Fields Before Instance Fields
|
|
653
438
|
|
|
654
|
-
|
|
439
|
+
This config specifies that static fields should come before instance fields, with public static fields first.
|
|
440
|
+
It doesn't apply to interfaces or type literals as accessibility and scope are not part of them.
|
|
655
441
|
|
|
656
|
-
|
|
442
|
+
```jsonc
|
|
443
|
+
{
|
|
444
|
+
"rules": {
|
|
445
|
+
"@typescript-eslint/member-ordering": [
|
|
446
|
+
"error",
|
|
447
|
+
{ "default": ["public-static-field", "static-field", "instance-field"] }
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
<!--tabs-->
|
|
454
|
+
|
|
455
|
+
##### ❌ Incorrect
|
|
657
456
|
|
|
658
457
|
```ts
|
|
659
458
|
class Foo {
|
|
@@ -669,30 +468,26 @@ class Foo {
|
|
|
669
468
|
}
|
|
670
469
|
```
|
|
671
470
|
|
|
672
|
-
Note: Public static fields should come first, followed by static fields and instance fields.
|
|
673
|
-
|
|
674
471
|
```ts
|
|
675
472
|
const foo = class {
|
|
676
|
-
public T(): void {} // (irrelevant)
|
|
473
|
+
public T(): void {} // method (irrelevant)
|
|
677
474
|
|
|
678
475
|
private static B: string; // -> static field
|
|
679
476
|
|
|
680
|
-
constructor() {} // (irrelevant)
|
|
477
|
+
constructor() {} // constructor (irrelevant)
|
|
681
478
|
|
|
682
479
|
private E: string; // -> instance field
|
|
683
480
|
|
|
684
481
|
protected static C: string; // -> static field
|
|
685
482
|
private static D: string; // -> static field
|
|
686
483
|
|
|
687
|
-
[Z: string]: any; // (irrelevant)
|
|
484
|
+
[Z: string]: any; // signature (irrelevant)
|
|
688
485
|
|
|
689
486
|
public static A: string; // -> public static field
|
|
690
487
|
};
|
|
691
488
|
```
|
|
692
489
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
##### Correct examples
|
|
490
|
+
##### ✅ Correct
|
|
696
491
|
|
|
697
492
|
```ts
|
|
698
493
|
class Foo {
|
|
@@ -703,16 +498,18 @@ class Foo {
|
|
|
703
498
|
private static D: string; // -> static field
|
|
704
499
|
|
|
705
500
|
private E: string; // -> instance field
|
|
501
|
+
|
|
502
|
+
[Z: string]: any; // (irrelevant)
|
|
706
503
|
}
|
|
707
504
|
```
|
|
708
505
|
|
|
709
506
|
```ts
|
|
710
507
|
const foo = class {
|
|
711
|
-
[Z: string]: any; // -> signature
|
|
508
|
+
[Z: string]: any; // -> signature (irrelevant)
|
|
712
509
|
|
|
713
510
|
public static A: string; // -> public static field
|
|
714
511
|
|
|
715
|
-
constructor() {} // -> constructor
|
|
512
|
+
constructor() {} // -> constructor (irrelevant)
|
|
716
513
|
|
|
717
514
|
private static B: string; // -> static field
|
|
718
515
|
protected static C: string; // -> static field
|
|
@@ -720,19 +517,31 @@ const foo = class {
|
|
|
720
517
|
|
|
721
518
|
private E: string; // -> instance field
|
|
722
519
|
|
|
723
|
-
public T(): void {} // -> method
|
|
520
|
+
public T(): void {} // -> method (irrelevant)
|
|
724
521
|
};
|
|
725
522
|
```
|
|
726
523
|
|
|
727
|
-
|
|
524
|
+
#### Class Declarations
|
|
728
525
|
|
|
729
|
-
|
|
526
|
+
This config only specifies an order for classes: methods, then the constructor, then fields.
|
|
527
|
+
It does not apply to class expressions (use `classExpressions` for them).
|
|
528
|
+
Default settings will be used for class declarations and all other syntax constructs other than class declarations.
|
|
730
529
|
|
|
731
|
-
|
|
530
|
+
```jsonc
|
|
531
|
+
// .eslintrc.json
|
|
532
|
+
{
|
|
533
|
+
"rules": {
|
|
534
|
+
"@typescript-eslint/member-ordering": [
|
|
535
|
+
"error",
|
|
536
|
+
{ "classes": ["method", "constructor", "field"] }
|
|
537
|
+
]
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
```
|
|
732
541
|
|
|
733
|
-
|
|
542
|
+
<!--tabs-->
|
|
734
543
|
|
|
735
|
-
##### Incorrect
|
|
544
|
+
##### ❌ Incorrect
|
|
736
545
|
|
|
737
546
|
```ts
|
|
738
547
|
class Foo {
|
|
@@ -747,7 +556,7 @@ class Foo {
|
|
|
747
556
|
}
|
|
748
557
|
```
|
|
749
558
|
|
|
750
|
-
##### Correct
|
|
559
|
+
##### ✅ Correct
|
|
751
560
|
|
|
752
561
|
```ts
|
|
753
562
|
class Foo {
|
|
@@ -762,53 +571,27 @@ class Foo {
|
|
|
762
571
|
}
|
|
763
572
|
```
|
|
764
573
|
|
|
765
|
-
####
|
|
766
|
-
|
|
767
|
-
##### Incorrect example
|
|
768
|
-
|
|
769
|
-
```ts
|
|
770
|
-
class Foo {
|
|
771
|
-
private C: string; // (irrelevant)
|
|
772
|
-
|
|
773
|
-
public D: string; // (irrelevant)
|
|
774
|
-
|
|
775
|
-
public static E: string; // -> public static field
|
|
776
|
-
|
|
777
|
-
constructor() {} // (irrelevant)
|
|
778
|
-
|
|
779
|
-
public static A(): void {} // (irrelevant)
|
|
780
|
-
|
|
781
|
-
public B(): void {} // -> public instance method
|
|
782
|
-
}
|
|
783
|
-
```
|
|
784
|
-
|
|
785
|
-
##### Correct example
|
|
574
|
+
#### Class Expressions
|
|
786
575
|
|
|
787
|
-
|
|
788
|
-
class
|
|
789
|
-
|
|
576
|
+
This config only specifies an order for classes expressions: methods, then the constructor, then fields.
|
|
577
|
+
It does not apply to class declarations (use `classes` for them).
|
|
578
|
+
Default settings will be used for class declarations and all other syntax constructs other than class expressions.
|
|
790
579
|
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
580
|
+
```jsonc
|
|
581
|
+
// .eslintrc.json
|
|
582
|
+
{
|
|
583
|
+
"rules": {
|
|
584
|
+
"@typescript-eslint/member-ordering": [
|
|
585
|
+
"error",
|
|
586
|
+
{ "classExpressions": ["method", "constructor", "field"] }
|
|
587
|
+
]
|
|
588
|
+
}
|
|
800
589
|
}
|
|
801
590
|
```
|
|
802
591
|
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
Note: If this is not set, the `default` will automatically be applied to classes expressions as well. If a `classExpressions` configuration is provided, only this configuration will be used for `classExpressions` (i.e. nothing will be merged with `default`).
|
|
592
|
+
<!--tabs-->
|
|
806
593
|
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
#### Configuration: `{ "classExpressions": ["method", "constructor", "field"] }`
|
|
810
|
-
|
|
811
|
-
##### Incorrect example
|
|
594
|
+
##### ❌ Incorrect
|
|
812
595
|
|
|
813
596
|
```ts
|
|
814
597
|
const foo = class {
|
|
@@ -823,7 +606,7 @@ const foo = class {
|
|
|
823
606
|
};
|
|
824
607
|
```
|
|
825
608
|
|
|
826
|
-
##### Correct
|
|
609
|
+
##### ✅ Correct
|
|
827
610
|
|
|
828
611
|
```ts
|
|
829
612
|
const foo = class {
|
|
@@ -838,55 +621,31 @@ const foo = class {
|
|
|
838
621
|
};
|
|
839
622
|
```
|
|
840
623
|
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
##### Incorrect example
|
|
844
|
-
|
|
845
|
-
```ts
|
|
846
|
-
const foo = class {
|
|
847
|
-
private C: string; // (irrelevant)
|
|
848
|
-
|
|
849
|
-
public D: string; // (irrelevant)
|
|
850
|
-
|
|
851
|
-
public static E: string; // -> public static field
|
|
624
|
+
### Interfaces
|
|
852
625
|
|
|
853
|
-
|
|
626
|
+
This config only specifies an order for interfaces: signatures, then methods, then constructors, then fields.
|
|
627
|
+
It does not apply to type literals (use `typeLiterals` for them).
|
|
628
|
+
Default settings will be used for type literals and all other syntax constructs other than class expressions.
|
|
854
629
|
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
};
|
|
859
|
-
```
|
|
860
|
-
|
|
861
|
-
##### Correct example
|
|
862
|
-
|
|
863
|
-
```ts
|
|
864
|
-
const foo = class {
|
|
865
|
-
private C: string; // (irrelevant)
|
|
630
|
+
:::note
|
|
631
|
+
These member types are the only ones allowed for `interfaces`.
|
|
632
|
+
:::
|
|
866
633
|
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
}
|
|
634
|
+
```jsonc
|
|
635
|
+
// .eslintrc.json
|
|
636
|
+
{
|
|
637
|
+
"rules": {
|
|
638
|
+
"@typescript-eslint/member-ordering": [
|
|
639
|
+
"error",
|
|
640
|
+
{ "interfaces": ["signature", "method", "constructor", "field"] }
|
|
641
|
+
]
|
|
642
|
+
}
|
|
643
|
+
}
|
|
877
644
|
```
|
|
878
645
|
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
Note: If this is not set, the `default` will automatically be applied to classes expressions as well. If a `interfaces` configuration is provided, only this configuration will be used for `interfaces` (i.e. nothing will be merged with `default`).
|
|
882
|
-
|
|
883
|
-
Note: The configuration for `interfaces` only allows a limited set of member types: `signature`, `field`, `constructor` and `method`.
|
|
646
|
+
<!--tabs-->
|
|
884
647
|
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
#### Configuration: `{ "interfaces": ["signature", "method", "constructor", "field"] }`
|
|
888
|
-
|
|
889
|
-
##### Incorrect example
|
|
648
|
+
#### ❌ Incorrect
|
|
890
649
|
|
|
891
650
|
```ts
|
|
892
651
|
interface Foo {
|
|
@@ -900,7 +659,7 @@ interface Foo {
|
|
|
900
659
|
}
|
|
901
660
|
```
|
|
902
661
|
|
|
903
|
-
|
|
662
|
+
#### ✅ Correct
|
|
904
663
|
|
|
905
664
|
```ts
|
|
906
665
|
interface Foo {
|
|
@@ -914,17 +673,31 @@ interface Foo {
|
|
|
914
673
|
}
|
|
915
674
|
```
|
|
916
675
|
|
|
917
|
-
###
|
|
676
|
+
### Type Literals
|
|
918
677
|
|
|
919
|
-
|
|
678
|
+
This config only specifies an order for type literals: signatures, then methods, then constructors, then fields.
|
|
679
|
+
It does not apply to interfaces (use `interfaces` for them).
|
|
680
|
+
Default settings will be used for interfaces and all other syntax constructs other than class expressions.
|
|
920
681
|
|
|
921
|
-
|
|
682
|
+
:::note
|
|
683
|
+
These member types are the only ones allowed for `typeLiterals`.
|
|
684
|
+
:::
|
|
922
685
|
|
|
923
|
-
|
|
686
|
+
```jsonc
|
|
687
|
+
// .eslintrc.json
|
|
688
|
+
{
|
|
689
|
+
"rules": {
|
|
690
|
+
"@typescript-eslint/member-ordering": [
|
|
691
|
+
"error",
|
|
692
|
+
{ "typeLiterals": ["signature", "method", "constructor", "field"] }
|
|
693
|
+
]
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
```
|
|
924
697
|
|
|
925
|
-
|
|
698
|
+
<!--tabs-->
|
|
926
699
|
|
|
927
|
-
|
|
700
|
+
#### ❌ Incorrect
|
|
928
701
|
|
|
929
702
|
```ts
|
|
930
703
|
type Foo = {
|
|
@@ -938,7 +711,7 @@ type Foo = {
|
|
|
938
711
|
};
|
|
939
712
|
```
|
|
940
713
|
|
|
941
|
-
|
|
714
|
+
#### ✅ Correct
|
|
942
715
|
|
|
943
716
|
```ts
|
|
944
717
|
type Foo = {
|
|
@@ -952,15 +725,49 @@ type Foo = {
|
|
|
952
725
|
};
|
|
953
726
|
```
|
|
954
727
|
|
|
955
|
-
### Sorting
|
|
728
|
+
### Sorting Options
|
|
729
|
+
|
|
730
|
+
#### Sorting Alphabetically Within Member Groups
|
|
731
|
+
|
|
732
|
+
This config specifies that within each `memberTypes` group, members are in an alphabetic case-sensitive order.
|
|
733
|
+
You can copy and paste the default order from [Default Configuration](#default-configuration).
|
|
734
|
+
|
|
735
|
+
```jsonc
|
|
736
|
+
// .eslintrc.json
|
|
737
|
+
{
|
|
738
|
+
"rules": {
|
|
739
|
+
"@typescript-eslint/member-ordering": [
|
|
740
|
+
"error",
|
|
741
|
+
{
|
|
742
|
+
"default": {
|
|
743
|
+
"memberTypes": [
|
|
744
|
+
/* <Default Order> */
|
|
745
|
+
],
|
|
746
|
+
"order": "alphabetically"
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
]
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
```
|
|
753
|
+
|
|
754
|
+
<!--tabs-->
|
|
956
755
|
|
|
957
|
-
|
|
756
|
+
##### ❌ Incorrect
|
|
958
757
|
|
|
959
|
-
|
|
758
|
+
```ts
|
|
759
|
+
interface Foo {
|
|
760
|
+
a: x;
|
|
761
|
+
B: x;
|
|
762
|
+
c: x;
|
|
960
763
|
|
|
961
|
-
|
|
764
|
+
B(): void;
|
|
765
|
+
c(): void;
|
|
766
|
+
a(): void;
|
|
767
|
+
}
|
|
768
|
+
```
|
|
962
769
|
|
|
963
|
-
#####
|
|
770
|
+
##### ✅ Correct
|
|
964
771
|
|
|
965
772
|
```ts
|
|
966
773
|
interface Foo {
|
|
@@ -968,48 +775,92 @@ interface Foo {
|
|
|
968
775
|
a: x;
|
|
969
776
|
c: x;
|
|
970
777
|
|
|
971
|
-
new (): Bar;
|
|
972
|
-
(): Baz;
|
|
973
|
-
|
|
974
778
|
B(): void;
|
|
975
779
|
a(): void;
|
|
976
780
|
c(): void;
|
|
781
|
+
}
|
|
782
|
+
```
|
|
977
783
|
|
|
978
|
-
|
|
979
|
-
|
|
784
|
+
#### Sorting Alphabetically Case Insensitive Within Member Groups
|
|
785
|
+
|
|
786
|
+
This config specifies that within each `memberTypes` group, members are in an alphabetic case-sensitive order.
|
|
787
|
+
You can copy and paste the default order from [Default Configuration](#default-configuration).
|
|
788
|
+
|
|
789
|
+
```jsonc
|
|
790
|
+
// .eslintrc.json
|
|
791
|
+
{
|
|
792
|
+
"rules": {
|
|
793
|
+
"@typescript-eslint/member-ordering": [
|
|
794
|
+
"error",
|
|
795
|
+
{
|
|
796
|
+
"default": {
|
|
797
|
+
"memberTypes": [
|
|
798
|
+
/* <Default Order> */
|
|
799
|
+
],
|
|
800
|
+
"order": "alphabetically-case-insensitive"
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
]
|
|
804
|
+
}
|
|
980
805
|
}
|
|
981
806
|
```
|
|
982
807
|
|
|
808
|
+
<!--tabs-->
|
|
809
|
+
|
|
810
|
+
##### ❌ Incorrect
|
|
811
|
+
|
|
983
812
|
```ts
|
|
984
813
|
interface Foo {
|
|
985
|
-
[a: string]: number;
|
|
986
|
-
|
|
987
814
|
B: x;
|
|
988
815
|
a: x;
|
|
989
816
|
c: x;
|
|
990
817
|
|
|
991
|
-
new (): Bar;
|
|
992
|
-
(): Baz;
|
|
993
|
-
|
|
994
|
-
// Wrong alphabetic order within group
|
|
995
|
-
c(): void;
|
|
996
818
|
B(): void;
|
|
819
|
+
c(): void;
|
|
820
|
+
a(): void;
|
|
821
|
+
}
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
##### ✅ Correct
|
|
825
|
+
|
|
826
|
+
```ts
|
|
827
|
+
interface Foo {
|
|
828
|
+
a: x;
|
|
829
|
+
B: x;
|
|
830
|
+
c: x;
|
|
831
|
+
|
|
997
832
|
a(): void;
|
|
833
|
+
B(): void;
|
|
834
|
+
c(): void;
|
|
998
835
|
}
|
|
999
836
|
```
|
|
1000
837
|
|
|
1001
|
-
|
|
838
|
+
#### Sorting Alphabetically Ignoring Member Groups
|
|
1002
839
|
|
|
1003
|
-
|
|
840
|
+
This config specifies that members are all sorted in an alphabetic case-sensitive order.
|
|
841
|
+
It ignores any member group types completely by specifying `"never"` for `memberTypes`.
|
|
1004
842
|
|
|
1005
|
-
|
|
843
|
+
```jsonc
|
|
844
|
+
// .eslintrc.json
|
|
845
|
+
{
|
|
846
|
+
"rules": {
|
|
847
|
+
"@typescript-eslint/member-ordering": [
|
|
848
|
+
"error",
|
|
849
|
+
{ "default": { "memberTypes": "never", "order": "alphabetically" } }
|
|
850
|
+
]
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
```
|
|
1006
854
|
|
|
1007
|
-
|
|
855
|
+
<!--tabs-->
|
|
856
|
+
|
|
857
|
+
##### ❌ Incorrect
|
|
1008
858
|
|
|
1009
859
|
```ts
|
|
1010
860
|
interface Foo {
|
|
861
|
+
static c = 0;
|
|
1011
862
|
b(): void;
|
|
1012
|
-
a:
|
|
863
|
+
a: boolean;
|
|
1013
864
|
|
|
1014
865
|
[a: string]: number; // Order doesn't matter (no sortable identifier)
|
|
1015
866
|
new (): Bar; // Order doesn't matter (no sortable identifier)
|
|
@@ -1017,85 +868,294 @@ interface Foo {
|
|
|
1017
868
|
}
|
|
1018
869
|
```
|
|
1019
870
|
|
|
1020
|
-
|
|
871
|
+
##### ✅ Correct
|
|
1021
872
|
|
|
1022
|
-
|
|
873
|
+
```ts
|
|
874
|
+
interface Foo {
|
|
875
|
+
a: boolean;
|
|
876
|
+
b(): void;
|
|
877
|
+
static c = 0;
|
|
1023
878
|
|
|
1024
|
-
|
|
879
|
+
[a: string]: number; // Order doesn't matter (no sortable identifier)
|
|
880
|
+
new (): Bar; // Order doesn't matter (no sortable identifier)
|
|
881
|
+
(): Baz; // Order doesn't matter (no sortable identifier)
|
|
882
|
+
}
|
|
883
|
+
```
|
|
1025
884
|
|
|
1026
|
-
|
|
885
|
+
## All Supported Options
|
|
1027
886
|
|
|
1028
|
-
|
|
887
|
+
### Member Types (Granular Form)
|
|
1029
888
|
|
|
1030
|
-
|
|
889
|
+
There are multiple ways to specify the member types.
|
|
890
|
+
The most explicit and granular form is the following:
|
|
1031
891
|
|
|
1032
|
-
```
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
c: x;
|
|
892
|
+
```jsonc
|
|
893
|
+
[
|
|
894
|
+
// Index signature
|
|
895
|
+
"signature",
|
|
1037
896
|
|
|
1038
|
-
|
|
1039
|
-
|
|
897
|
+
// Fields
|
|
898
|
+
"public-static-field",
|
|
899
|
+
"protected-static-field",
|
|
900
|
+
"private-static-field",
|
|
901
|
+
"public-decorated-field",
|
|
902
|
+
"protected-decorated-field",
|
|
903
|
+
"private-decorated-field",
|
|
904
|
+
"public-instance-field",
|
|
905
|
+
"protected-instance-field",
|
|
906
|
+
"private-instance-field",
|
|
907
|
+
"public-abstract-field",
|
|
908
|
+
"protected-abstract-field",
|
|
909
|
+
"private-abstract-field",
|
|
1040
910
|
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
911
|
+
// Constructors
|
|
912
|
+
"public-constructor",
|
|
913
|
+
"protected-constructor",
|
|
914
|
+
"private-constructor",
|
|
1044
915
|
|
|
1045
|
-
//
|
|
1046
|
-
|
|
1047
|
-
|
|
916
|
+
// Getters
|
|
917
|
+
"public-static-get",
|
|
918
|
+
"protected-static-get",
|
|
919
|
+
"private-static-get",
|
|
920
|
+
|
|
921
|
+
"public-decorated-get",
|
|
922
|
+
"protected-decorated-get",
|
|
923
|
+
"private-decorated-get",
|
|
924
|
+
|
|
925
|
+
"public-instance-get",
|
|
926
|
+
"protected-instance-get",
|
|
927
|
+
"private-instance-get",
|
|
928
|
+
|
|
929
|
+
"public-abstract-get",
|
|
930
|
+
"protected-abstract-get",
|
|
931
|
+
"private-abstract-get",
|
|
932
|
+
|
|
933
|
+
"public-get",
|
|
934
|
+
"protected-get",
|
|
935
|
+
"private-get",
|
|
936
|
+
|
|
937
|
+
"static-get",
|
|
938
|
+
"instance-get",
|
|
939
|
+
"abstract-get",
|
|
940
|
+
|
|
941
|
+
"decorated-get",
|
|
942
|
+
|
|
943
|
+
"get",
|
|
944
|
+
|
|
945
|
+
// Setters
|
|
946
|
+
"public-static-set",
|
|
947
|
+
"protected-static-set",
|
|
948
|
+
"private-static-set",
|
|
949
|
+
|
|
950
|
+
"public-decorated-set",
|
|
951
|
+
"protected-decorated-set",
|
|
952
|
+
"private-decorated-set",
|
|
953
|
+
|
|
954
|
+
"public-instance-set",
|
|
955
|
+
"protected-instance-set",
|
|
956
|
+
"private-instance-set",
|
|
957
|
+
|
|
958
|
+
"public-abstract-set",
|
|
959
|
+
"protected-abstract-set",
|
|
960
|
+
"private-abstract-set",
|
|
961
|
+
|
|
962
|
+
"public-set",
|
|
963
|
+
"protected-set",
|
|
964
|
+
"private-set",
|
|
965
|
+
|
|
966
|
+
"static-set",
|
|
967
|
+
"instance-set",
|
|
968
|
+
"abstract-set",
|
|
969
|
+
|
|
970
|
+
"decorated-set",
|
|
971
|
+
|
|
972
|
+
"set",
|
|
973
|
+
|
|
974
|
+
// Methods
|
|
975
|
+
"public-static-method",
|
|
976
|
+
"protected-static-method",
|
|
977
|
+
"private-static-method",
|
|
978
|
+
"public-decorated-method",
|
|
979
|
+
"protected-decorated-method",
|
|
980
|
+
"private-decorated-method",
|
|
981
|
+
"public-instance-method",
|
|
982
|
+
"protected-instance-method",
|
|
983
|
+
"private-instance-method",
|
|
984
|
+
"public-abstract-method",
|
|
985
|
+
"protected-abstract-method",
|
|
986
|
+
"private-abstract-method"
|
|
987
|
+
]
|
|
1048
988
|
```
|
|
1049
989
|
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
990
|
+
:::note
|
|
991
|
+
If you only specify some of the possible types, the non-specified ones can have any particular order.
|
|
992
|
+
This means that they can be placed before, within or after the specified types and the linter won't complain about it.
|
|
993
|
+
:::
|
|
1053
994
|
|
|
1054
|
-
|
|
1055
|
-
B: x;
|
|
1056
|
-
c: x;
|
|
995
|
+
### Member Group Types (With Accessibility, Ignoring Scope)
|
|
1057
996
|
|
|
1058
|
-
|
|
1059
|
-
(): Baz;
|
|
997
|
+
It is also possible to group member types by their accessibility (`static`, `instance`, `abstract`), ignoring their scope.
|
|
1060
998
|
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
999
|
+
```jsonc
|
|
1000
|
+
[
|
|
1001
|
+
// Index signature
|
|
1002
|
+
// No accessibility for index signature.
|
|
1003
|
+
|
|
1004
|
+
// Fields
|
|
1005
|
+
"public-field", // = ["public-static-field", "public-instance-field"]
|
|
1006
|
+
"protected-field", // = ["protected-static-field", "protected-instance-field"]
|
|
1007
|
+
"private-field", // = ["private-static-field", "private-instance-field"]
|
|
1008
|
+
|
|
1009
|
+
// Constructors
|
|
1010
|
+
// Only the accessibility of constructors is configurable. See below.
|
|
1011
|
+
|
|
1012
|
+
// Getters
|
|
1013
|
+
"public-get", // = ["public-static-get", "public-instance-get"]
|
|
1014
|
+
"protected-get", // = ["protected-static-get", "protected-instance-get"]
|
|
1015
|
+
"private-get", // = ["private-static-get", "private-instance-get"]
|
|
1016
|
+
|
|
1017
|
+
// Setters
|
|
1018
|
+
"public-set", // = ["public-static-set", "public-instance-set"]
|
|
1019
|
+
"protected-set", // = ["protected-static-set", "protected-instance-set"]
|
|
1020
|
+
"private-set", // = ["private-static-set", "private-instance-set"]
|
|
1021
|
+
|
|
1022
|
+
// Methods
|
|
1023
|
+
"public-method", // = ["public-static-method", "public-instance-method"]
|
|
1024
|
+
"protected-method", // = ["protected-static-method", "protected-instance-method"]
|
|
1025
|
+
"private-method" // = ["private-static-method", "private-instance-method"]
|
|
1026
|
+
]
|
|
1066
1027
|
```
|
|
1067
1028
|
|
|
1068
|
-
###
|
|
1029
|
+
### Member Group Types (With Accessibility and a Decorator)
|
|
1069
1030
|
|
|
1070
|
-
It is also possible to
|
|
1031
|
+
It is also possible to group methods or fields with a decorator separately, optionally specifying
|
|
1032
|
+
their accessibility.
|
|
1071
1033
|
|
|
1072
|
-
|
|
1034
|
+
```jsonc
|
|
1035
|
+
[
|
|
1036
|
+
// Index signature
|
|
1037
|
+
// No decorators for index signature.
|
|
1073
1038
|
|
|
1074
|
-
|
|
1039
|
+
// Fields
|
|
1040
|
+
"public-decorated-field",
|
|
1041
|
+
"protected-decorated-field",
|
|
1042
|
+
"private-decorated-field",
|
|
1075
1043
|
|
|
1076
|
-
|
|
1077
|
-
interface Foo {
|
|
1078
|
-
B(): void;
|
|
1079
|
-
a: number;
|
|
1044
|
+
"decorated-field", // = ["public-decorated-field", "protected-decorated-field", "private-decorated-field"]
|
|
1080
1045
|
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1046
|
+
// Constructors
|
|
1047
|
+
// There are no decorators for constructors.
|
|
1048
|
+
|
|
1049
|
+
// Getters
|
|
1050
|
+
"public-decorated-get",
|
|
1051
|
+
"protected-decorated-get",
|
|
1052
|
+
"private-decorated-get",
|
|
1053
|
+
|
|
1054
|
+
"decorated-get" // = ["public-decorated-get", "protected-decorated-get", "private-decorated-get"]
|
|
1055
|
+
|
|
1056
|
+
// Setters
|
|
1057
|
+
"public-decorated-set",
|
|
1058
|
+
"protected-decorated-set",
|
|
1059
|
+
"private-decorated-set",
|
|
1060
|
+
|
|
1061
|
+
"decorated-set" // = ["public-decorated-set", "protected-decorated-set", "private-decorated-set"]
|
|
1062
|
+
|
|
1063
|
+
// Methods
|
|
1064
|
+
"public-decorated-method",
|
|
1065
|
+
"protected-decorated-method",
|
|
1066
|
+
"private-decorated-method",
|
|
1067
|
+
|
|
1068
|
+
"decorated-method" // = ["public-decorated-method", "protected-decorated-method", "private-decorated-method"]
|
|
1069
|
+
]
|
|
1085
1070
|
```
|
|
1086
1071
|
|
|
1087
|
-
|
|
1072
|
+
### Member Group Types (With Scope, Ignoring Accessibility)
|
|
1088
1073
|
|
|
1089
|
-
|
|
1074
|
+
Another option is to group the member types by their scope (`public`, `protected`, `private`), ignoring their accessibility.
|
|
1075
|
+
|
|
1076
|
+
```jsonc
|
|
1077
|
+
[
|
|
1078
|
+
// Index signature
|
|
1079
|
+
// No scope for index signature.
|
|
1080
|
+
|
|
1081
|
+
// Fields
|
|
1082
|
+
"static-field", // = ["public-static-field", "protected-static-field", "private-static-field"]
|
|
1083
|
+
"instance-field", // = ["public-instance-field", "protected-instance-field", "private-instance-field"]
|
|
1084
|
+
"abstract-field", // = ["public-abstract-field", "protected-abstract-field", "private-abstract-field"]
|
|
1090
1085
|
|
|
1091
|
-
|
|
1086
|
+
// Constructors
|
|
1087
|
+
"constructor", // = ["public-constructor", "protected-constructor", "private-constructor"]
|
|
1092
1088
|
|
|
1093
|
-
|
|
1089
|
+
// Getters
|
|
1090
|
+
"static-get", // = ["public-static-get", "protected-static-get", "private-static-get"]
|
|
1091
|
+
"instance-get", // = ["public-instance-get", "protected-instance-get", "private-instance-get"]
|
|
1092
|
+
"abstract-get" // = ["public-abstract-get", "protected-abstract-get", "private-abstract-get"]
|
|
1094
1093
|
|
|
1095
|
-
|
|
1094
|
+
// Setters
|
|
1095
|
+
"static-set", // = ["public-static-set", "protected-static-set", "private-static-set"]
|
|
1096
|
+
"instance-set", // = ["public-instance-set", "protected-instance-set", "private-instance-set"]
|
|
1097
|
+
"abstract-set" // = ["public-abstract-set", "protected-abstract-set", "private-abstract-set"]
|
|
1096
1098
|
|
|
1097
|
-
|
|
1099
|
+
// Methods
|
|
1100
|
+
"static-method", // = ["public-static-method", "protected-static-method", "private-static-method"]
|
|
1101
|
+
"instance-method", // = ["public-instance-method", "protected-instance-method", "private-instance-method"]
|
|
1102
|
+
"abstract-method" // = ["public-abstract-method", "protected-abstract-method", "private-abstract-method"]
|
|
1103
|
+
]
|
|
1104
|
+
```
|
|
1105
|
+
|
|
1106
|
+
### Member Group Types (With Scope and Accessibility)
|
|
1107
|
+
|
|
1108
|
+
The third grouping option is to ignore both scope and accessibility.
|
|
1109
|
+
|
|
1110
|
+
```jsonc
|
|
1111
|
+
[
|
|
1112
|
+
// Index signature
|
|
1113
|
+
// No grouping for index signature.
|
|
1114
|
+
|
|
1115
|
+
// Fields
|
|
1116
|
+
"field", // = ["public-static-field", "protected-static-field", "private-static-field", "public-instance-field", "protected-instance-field", "private-instance-field",
|
|
1117
|
+
// "public-abstract-field", "protected-abstract-field", private-abstract-field"]
|
|
1118
|
+
|
|
1119
|
+
// Constructors
|
|
1120
|
+
// Only the accessibility of constructors is configurable.
|
|
1121
|
+
|
|
1122
|
+
// Getters
|
|
1123
|
+
"get" // = ["public-static-get", "protected-static-get", "private-static-get", "public-instance-get", "protected-instance-get", "private-instance-get",
|
|
1124
|
+
// "public-abstract-get", "protected-abstract-get", "private-abstract-get"]
|
|
1125
|
+
|
|
1126
|
+
// Setters
|
|
1127
|
+
"set" // = ["public-static-set", "protected-static-set", "private-static-set", "public-instance-set", "protected-instance-set", "private-instance-set",
|
|
1128
|
+
// "public-abstract-set", "protected-abstract-set", "private-abstract-set"]
|
|
1129
|
+
|
|
1130
|
+
// Methods
|
|
1131
|
+
"method" // = ["public-static-method", "protected-static-method", "private-static-method", "public-instance-method", "protected-instance-method", "private-instance-method",
|
|
1132
|
+
// "public-abstract-method", "protected-abstract-method", "private-abstract-method"]
|
|
1133
|
+
]
|
|
1134
|
+
```
|
|
1135
|
+
|
|
1136
|
+
### Grouping Different Member Types at the Same Rank
|
|
1137
|
+
|
|
1138
|
+
It is also possible to group different member types at the same rank.
|
|
1139
|
+
|
|
1140
|
+
```jsonc
|
|
1141
|
+
[
|
|
1142
|
+
// Index signature
|
|
1143
|
+
"signature",
|
|
1144
|
+
|
|
1145
|
+
// Fields
|
|
1146
|
+
"field",
|
|
1147
|
+
|
|
1148
|
+
// Constructors
|
|
1149
|
+
"constructor",
|
|
1150
|
+
|
|
1151
|
+
// Getters and Setters at the same rank
|
|
1152
|
+
["get", "set"],
|
|
1153
|
+
|
|
1154
|
+
// Methods
|
|
1155
|
+
"method"
|
|
1156
|
+
]
|
|
1157
|
+
```
|
|
1158
|
+
|
|
1159
|
+
## When Not To Use It
|
|
1098
1160
|
|
|
1099
|
-
|
|
1100
|
-
- [ ] 🔧 Fixable
|
|
1101
|
-
- [ ] 💭 Requires type information
|
|
1161
|
+
If you don't care about the general order of your members, then you will not need this rule.
|