repoburg 1.1.0 → 1.1.2
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/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/backend/node_modules/@typescript-eslint/eslint-plugin/LICENSE +21 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/README.md +12 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +156 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js +13 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js +64 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js +31 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js +54 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js +33 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js +79 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +43 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js +35 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js +29 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +39 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +140 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +222 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +76 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +156 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js +56 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js +240 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +140 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +99 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +123 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js +211 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js +166 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +152 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +109 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +128 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +222 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +98 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +245 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +635 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js +63 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +120 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js +112 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +164 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +283 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +366 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js +147 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js +415 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +288 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +48 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +322 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +95 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js +357 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js +57 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js +67 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js +258 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +747 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +181 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +101 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js +91 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js +12 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js +75 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +291 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js +18 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js +3 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +351 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +488 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js +53 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js +83 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +164 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js +78 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +293 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js +51 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js +62 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +139 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +95 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +132 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +94 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +170 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +36 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js +297 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js +43 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +112 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +342 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +60 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +160 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +56 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +185 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js +76 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +182 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +169 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +39 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +213 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +96 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +82 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +523 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +193 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +63 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +76 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +66 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +104 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +201 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +372 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +90 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +237 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +482 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +65 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js +96 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +260 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +234 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +540 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +149 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +150 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +252 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +112 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +226 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +282 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +83 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +56 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +168 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +123 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +161 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js +68 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js +58 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +490 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +297 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +59 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js +72 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-template-literals.js +138 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-template-literals.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +67 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +125 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js +226 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +634 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +171 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +73 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js +200 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +65 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js +235 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +156 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +186 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +231 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +72 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +46 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +348 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js +3 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js +417 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js +318 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js +279 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +175 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js +107 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +82 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +315 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +74 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +159 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +137 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +508 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +62 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +182 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js +63 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +62 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +212 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +211 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +145 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +268 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js +64 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +228 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +80 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +143 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js +133 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +800 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +242 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +110 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js +228 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +200 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +245 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js +398 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js +89 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js +562 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js +6 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js +16 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js +241 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js +45 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js +163 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js +418 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js +46 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +20 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js +26 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js +8 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +155 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +42 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js +27 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +9 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js +9 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +189 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js +27 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +60 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md +30 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.md +99 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.md +111 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +42 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md +151 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.md +39 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +132 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md +13 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.md +105 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.md +96 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md +20 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.md +76 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +80 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md +113 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md +81 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +105 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +108 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md +58 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md +82 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +320 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md +344 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md +249 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md +18 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +25 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md +55 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/max-params.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md +164 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +1438 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.md +113 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +721 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md +29 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-delete.md +40 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md +88 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md +56 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.md +116 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md +14 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.md +58 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.md +13 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md +66 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.md +53 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md +92 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +59 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md +168 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.md +54 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md +12 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md +295 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md +124 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.md +61 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md +102 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.md +74 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.md +103 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md +14 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.md +112 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md +119 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.md +53 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.md +47 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.md +246 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.md +88 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md +131 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md +54 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md +40 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +42 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.md +12 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md +75 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.md +92 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.md +60 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md +71 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +105 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md +108 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md +109 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md +623 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md +133 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md +119 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.md +51 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md +79 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md +77 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md +55 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.md +93 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.md +96 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.md +68 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.md +59 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-enum-comparison.md +82 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.md +74 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.md +113 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-unary-minus.md +52 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md +27 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md +87 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md +19 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.md +47 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-template-literals.md +57 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.md +60 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md +41 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md +33 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.md +488 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md +47 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-destructuring.md +91 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md +62 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-find.md +39 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.md +44 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +92 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.md +75 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md +103 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.md +47 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md +187 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md +263 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-promise-reject-errors.md +50 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md +389 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md +102 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md +60 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.md +46 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.md +87 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md +58 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.md +70 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +132 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md +78 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md +22 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.md +208 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +121 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md +216 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md +12 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.md +163 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md +43 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md +10 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md +16 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +190 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.md +225 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.md +110 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md +317 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md +320 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.md +105 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +77 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/index.d.ts +9 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/package.json +106 -0
- package/backend/node_modules/@typescript-eslint/eslint-plugin/rules.d.ts +45 -0
- package/backend/node_modules/@typescript-eslint/parser/LICENSE +22 -0
- package/backend/node_modules/@typescript-eslint/parser/README.md +12 -0
- package/backend/node_modules/@typescript-eslint/parser/dist/index.d.ts +8 -0
- package/backend/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/parser/dist/index.js +17 -0
- package/backend/node_modules/@typescript-eslint/parser/dist/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/parser/dist/parser.d.ts +20 -0
- package/backend/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/parser/dist/parser.js +130 -0
- package/backend/node_modules/@typescript-eslint/parser/dist/parser.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/parser/package.json +85 -0
- package/backend/node_modules/@typescript-eslint/type-utils/LICENSE +21 -0
- package/backend/node_modules/@typescript-eslint/type-utils/README.md +14 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts +21 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js +188 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts +39 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js +130 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +61 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts +7 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js +15 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts +8 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +66 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts +7 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js +16 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts +6 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +38 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js +51 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts +6 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js +16 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts +8 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +74 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/index.d.ts +19 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/index.js +39 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js +18 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts +27 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +226 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts +17 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +106 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts +58 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/predicates.js +169 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts +4 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js +37 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts +4 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js +43 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts +16 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +59 -0
- package/backend/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/type-utils/package.json +81 -0
- package/backend/node_modules/@typescript-eslint/utils/LICENSE +21 -0
- package/backend/node_modules/@typescript-eslint/utils/README.md +12 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +48 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +36 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +76 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +40 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +76 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +99 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts +6 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js +22 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +32 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +72 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +18 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +44 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +1231 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js +22 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts +5 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js +21 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts +8 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js +13 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +70 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +135 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +11 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js +3 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +35 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js +45 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +34 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/context.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/context.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/context.js +32 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/context.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts +17 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js +48 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts +24 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js +46 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts +8 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js +24 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts +14 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +28 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserPathSeemsToBeTSESLint.d.ts +2 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserPathSeemsToBeTSESLint.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserPathSeemsToBeTSESLint.js +8 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserPathSeemsToBeTSESLint.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/index.d.ts +8 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/index.js +41 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts +388 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/json-schema.js +9 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/json-schema.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts +9 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js +4 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts +131 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.js +18 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts +260 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js +4 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts +374 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js +24 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts +247 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js +14 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts +89 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js +4 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts +2 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js +3 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts +37 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js +4 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +514 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js +3 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +162 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js +8 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts +44 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js +34 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +362 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js +9 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts +13 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js +29 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-estree.js +10 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts +2 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js +18 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts +2 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js +9 -0
- package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/utils/package.json +98 -0
- package/backend/node_modules/chalk/index.d.ts +415 -0
- package/backend/node_modules/chalk/license +9 -0
- package/backend/node_modules/chalk/package.json +68 -0
- package/backend/node_modules/chalk/readme.md +341 -0
- package/backend/node_modules/chalk/source/index.js +229 -0
- package/backend/node_modules/chalk/source/templates.js +134 -0
- package/backend/node_modules/chalk/source/util.js +39 -0
- package/backend/node_modules/debug/LICENSE +20 -0
- package/backend/node_modules/debug/README.md +481 -0
- package/backend/node_modules/debug/package.json +64 -0
- package/backend/node_modules/debug/src/browser.js +272 -0
- package/backend/node_modules/debug/src/common.js +292 -0
- package/backend/node_modules/debug/src/index.js +10 -0
- package/backend/node_modules/debug/src/node.js +263 -0
- package/backend/node_modules/eslint/LICENSE +19 -0
- package/backend/node_modules/eslint/README.md +304 -0
- package/backend/node_modules/eslint/bin/eslint.js +173 -0
- package/backend/node_modules/eslint/conf/config-schema.js +93 -0
- package/backend/node_modules/eslint/conf/default-cli-options.js +32 -0
- package/backend/node_modules/eslint/conf/globals.js +154 -0
- package/backend/node_modules/eslint/conf/replacements.json +22 -0
- package/backend/node_modules/eslint/conf/rule-type-list.json +28 -0
- package/backend/node_modules/eslint/lib/api.js +54 -0
- package/backend/node_modules/eslint/lib/cli-engine/cli-engine.js +1078 -0
- package/backend/node_modules/eslint/lib/cli-engine/file-enumerator.js +547 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +60 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/compact.js +60 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +46 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/html.js +351 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +41 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +16 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/json.js +13 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/junit.js +82 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/stylish.js +101 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/tap.js +95 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/unix.js +58 -0
- package/backend/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +63 -0
- package/backend/node_modules/eslint/lib/cli-engine/hash.js +35 -0
- package/backend/node_modules/eslint/lib/cli-engine/index.js +7 -0
- package/backend/node_modules/eslint/lib/cli-engine/lint-result-cache.js +203 -0
- package/backend/node_modules/eslint/lib/cli-engine/load-rules.js +46 -0
- package/backend/node_modules/eslint/lib/cli-engine/xml-escape.js +34 -0
- package/backend/node_modules/eslint/lib/cli.js +471 -0
- package/backend/node_modules/eslint/lib/config/default-config.js +67 -0
- package/backend/node_modules/eslint/lib/config/flat-config-array.js +380 -0
- package/backend/node_modules/eslint/lib/config/flat-config-helpers.js +111 -0
- package/backend/node_modules/eslint/lib/config/flat-config-schema.js +598 -0
- package/backend/node_modules/eslint/lib/config/rule-validator.js +158 -0
- package/backend/node_modules/eslint/lib/eslint/eslint-helpers.js +932 -0
- package/backend/node_modules/eslint/lib/eslint/eslint.js +707 -0
- package/backend/node_modules/eslint/lib/eslint/flat-eslint.js +1159 -0
- package/backend/node_modules/eslint/lib/eslint/index.js +9 -0
- package/backend/node_modules/eslint/lib/linter/apply-disable-directives.js +465 -0
- package/backend/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +852 -0
- package/backend/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +263 -0
- package/backend/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +2348 -0
- package/backend/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +342 -0
- package/backend/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +203 -0
- package/backend/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +349 -0
- package/backend/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +45 -0
- package/backend/node_modules/eslint/lib/linter/config-comment-parser.js +185 -0
- package/backend/node_modules/eslint/lib/linter/index.js +13 -0
- package/backend/node_modules/eslint/lib/linter/interpolate.js +28 -0
- package/backend/node_modules/eslint/lib/linter/linter.js +2119 -0
- package/backend/node_modules/eslint/lib/linter/node-event-generator.js +354 -0
- package/backend/node_modules/eslint/lib/linter/report-translator.js +369 -0
- package/backend/node_modules/eslint/lib/linter/rule-fixer.js +140 -0
- package/backend/node_modules/eslint/lib/linter/rules.js +80 -0
- package/backend/node_modules/eslint/lib/linter/safe-emitter.js +52 -0
- package/backend/node_modules/eslint/lib/linter/source-code-fixer.js +152 -0
- package/backend/node_modules/eslint/lib/linter/timing.js +161 -0
- package/backend/node_modules/eslint/lib/options.js +398 -0
- package/backend/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +1131 -0
- package/backend/node_modules/eslint/lib/rule-tester/index.js +5 -0
- package/backend/node_modules/eslint/lib/rule-tester/rule-tester.js +1206 -0
- package/backend/node_modules/eslint/lib/rules/accessor-pairs.js +346 -0
- package/backend/node_modules/eslint/lib/rules/array-bracket-newline.js +261 -0
- package/backend/node_modules/eslint/lib/rules/array-bracket-spacing.js +244 -0
- package/backend/node_modules/eslint/lib/rules/array-callback-return.js +446 -0
- package/backend/node_modules/eslint/lib/rules/array-element-newline.js +311 -0
- package/backend/node_modules/eslint/lib/rules/arrow-body-style.js +296 -0
- package/backend/node_modules/eslint/lib/rules/arrow-parens.js +186 -0
- package/backend/node_modules/eslint/lib/rules/arrow-spacing.js +164 -0
- package/backend/node_modules/eslint/lib/rules/block-scoped-var.js +135 -0
- package/backend/node_modules/eslint/lib/rules/block-spacing.js +174 -0
- package/backend/node_modules/eslint/lib/rules/brace-style.js +197 -0
- package/backend/node_modules/eslint/lib/rules/callback-return.js +187 -0
- package/backend/node_modules/eslint/lib/rules/camelcase.js +399 -0
- package/backend/node_modules/eslint/lib/rules/capitalized-comments.js +300 -0
- package/backend/node_modules/eslint/lib/rules/class-methods-use-this.js +187 -0
- package/backend/node_modules/eslint/lib/rules/comma-dangle.js +373 -0
- package/backend/node_modules/eslint/lib/rules/comma-spacing.js +192 -0
- package/backend/node_modules/eslint/lib/rules/comma-style.js +314 -0
- package/backend/node_modules/eslint/lib/rules/complexity.js +165 -0
- package/backend/node_modules/eslint/lib/rules/computed-property-spacing.js +208 -0
- package/backend/node_modules/eslint/lib/rules/consistent-return.js +210 -0
- package/backend/node_modules/eslint/lib/rules/consistent-this.js +153 -0
- package/backend/node_modules/eslint/lib/rules/constructor-super.js +446 -0
- package/backend/node_modules/eslint/lib/rules/curly.js +486 -0
- package/backend/node_modules/eslint/lib/rules/default-case-last.js +44 -0
- package/backend/node_modules/eslint/lib/rules/default-case.js +97 -0
- package/backend/node_modules/eslint/lib/rules/default-param-last.js +62 -0
- package/backend/node_modules/eslint/lib/rules/dot-location.js +108 -0
- package/backend/node_modules/eslint/lib/rules/dot-notation.js +176 -0
- package/backend/node_modules/eslint/lib/rules/eol-last.js +115 -0
- package/backend/node_modules/eslint/lib/rules/eqeqeq.js +174 -0
- package/backend/node_modules/eslint/lib/rules/for-direction.js +140 -0
- package/backend/node_modules/eslint/lib/rules/func-call-spacing.js +233 -0
- package/backend/node_modules/eslint/lib/rules/func-name-matching.js +253 -0
- package/backend/node_modules/eslint/lib/rules/func-names.js +191 -0
- package/backend/node_modules/eslint/lib/rules/func-style.js +98 -0
- package/backend/node_modules/eslint/lib/rules/function-call-argument-newline.js +125 -0
- package/backend/node_modules/eslint/lib/rules/function-paren-newline.js +292 -0
- package/backend/node_modules/eslint/lib/rules/generator-star-spacing.js +209 -0
- package/backend/node_modules/eslint/lib/rules/getter-return.js +204 -0
- package/backend/node_modules/eslint/lib/rules/global-require.js +90 -0
- package/backend/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +215 -0
- package/backend/node_modules/eslint/lib/rules/guard-for-in.js +76 -0
- package/backend/node_modules/eslint/lib/rules/handle-callback-err.js +101 -0
- package/backend/node_modules/eslint/lib/rules/id-blacklist.js +246 -0
- package/backend/node_modules/eslint/lib/rules/id-denylist.js +228 -0
- package/backend/node_modules/eslint/lib/rules/id-length.js +177 -0
- package/backend/node_modules/eslint/lib/rules/id-match.js +299 -0
- package/backend/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +84 -0
- package/backend/node_modules/eslint/lib/rules/indent-legacy.js +1126 -0
- package/backend/node_modules/eslint/lib/rules/indent.js +1803 -0
- package/backend/node_modules/eslint/lib/rules/index.js +306 -0
- package/backend/node_modules/eslint/lib/rules/init-declarations.js +139 -0
- package/backend/node_modules/eslint/lib/rules/jsx-quotes.js +98 -0
- package/backend/node_modules/eslint/lib/rules/key-spacing.js +687 -0
- package/backend/node_modules/eslint/lib/rules/keyword-spacing.js +640 -0
- package/backend/node_modules/eslint/lib/rules/line-comment-position.js +122 -0
- package/backend/node_modules/eslint/lib/rules/linebreak-style.js +108 -0
- package/backend/node_modules/eslint/lib/rules/lines-around-comment.js +471 -0
- package/backend/node_modules/eslint/lib/rules/lines-around-directive.js +201 -0
- package/backend/node_modules/eslint/lib/rules/lines-between-class-members.js +269 -0
- package/backend/node_modules/eslint/lib/rules/logical-assignment-operators.js +504 -0
- package/backend/node_modules/eslint/lib/rules/max-classes-per-file.js +89 -0
- package/backend/node_modules/eslint/lib/rules/max-depth.js +156 -0
- package/backend/node_modules/eslint/lib/rules/max-len.js +440 -0
- package/backend/node_modules/eslint/lib/rules/max-lines-per-function.js +213 -0
- package/backend/node_modules/eslint/lib/rules/max-lines.js +193 -0
- package/backend/node_modules/eslint/lib/rules/max-nested-callbacks.js +117 -0
- package/backend/node_modules/eslint/lib/rules/max-params.js +102 -0
- package/backend/node_modules/eslint/lib/rules/max-statements-per-line.js +199 -0
- package/backend/node_modules/eslint/lib/rules/max-statements.js +184 -0
- package/backend/node_modules/eslint/lib/rules/multiline-comment-style.js +474 -0
- package/backend/node_modules/eslint/lib/rules/multiline-ternary.js +174 -0
- package/backend/node_modules/eslint/lib/rules/new-cap.js +276 -0
- package/backend/node_modules/eslint/lib/rules/new-parens.js +93 -0
- package/backend/node_modules/eslint/lib/rules/newline-after-var.js +253 -0
- package/backend/node_modules/eslint/lib/rules/newline-before-return.js +217 -0
- package/backend/node_modules/eslint/lib/rules/newline-per-chained-call.js +126 -0
- package/backend/node_modules/eslint/lib/rules/no-alert.js +138 -0
- package/backend/node_modules/eslint/lib/rules/no-array-constructor.js +133 -0
- package/backend/node_modules/eslint/lib/rules/no-async-promise-executor.js +39 -0
- package/backend/node_modules/eslint/lib/rules/no-await-in-loop.js +106 -0
- package/backend/node_modules/eslint/lib/rules/no-bitwise.js +119 -0
- package/backend/node_modules/eslint/lib/rules/no-buffer-constructor.js +50 -0
- package/backend/node_modules/eslint/lib/rules/no-caller.js +46 -0
- package/backend/node_modules/eslint/lib/rules/no-case-declarations.js +64 -0
- package/backend/node_modules/eslint/lib/rules/no-catch-shadow.js +82 -0
- package/backend/node_modules/eslint/lib/rules/no-class-assign.js +63 -0
- package/backend/node_modules/eslint/lib/rules/no-compare-neg-zero.js +60 -0
- package/backend/node_modules/eslint/lib/rules/no-cond-assign.js +159 -0
- package/backend/node_modules/eslint/lib/rules/no-confusing-arrow.js +92 -0
- package/backend/node_modules/eslint/lib/rules/no-console.js +207 -0
- package/backend/node_modules/eslint/lib/rules/no-const-assign.js +56 -0
- package/backend/node_modules/eslint/lib/rules/no-constant-binary-expression.js +509 -0
- package/backend/node_modules/eslint/lib/rules/no-constant-condition.js +150 -0
- package/backend/node_modules/eslint/lib/rules/no-constructor-return.js +62 -0
- package/backend/node_modules/eslint/lib/rules/no-continue.js +39 -0
- package/backend/node_modules/eslint/lib/rules/no-control-regex.js +138 -0
- package/backend/node_modules/eslint/lib/rules/no-debugger.js +43 -0
- package/backend/node_modules/eslint/lib/rules/no-delete-var.js +42 -0
- package/backend/node_modules/eslint/lib/rules/no-div-regex.js +53 -0
- package/backend/node_modules/eslint/lib/rules/no-dupe-args.js +82 -0
- package/backend/node_modules/eslint/lib/rules/no-dupe-class-members.js +104 -0
- package/backend/node_modules/eslint/lib/rules/no-dupe-else-if.js +122 -0
- package/backend/node_modules/eslint/lib/rules/no-dupe-keys.js +142 -0
- package/backend/node_modules/eslint/lib/rules/no-duplicate-case.js +71 -0
- package/backend/node_modules/eslint/lib/rules/no-duplicate-imports.js +290 -0
- package/backend/node_modules/eslint/lib/rules/no-else-return.js +405 -0
- package/backend/node_modules/eslint/lib/rules/no-empty-character-class.js +76 -0
- package/backend/node_modules/eslint/lib/rules/no-empty-function.js +167 -0
- package/backend/node_modules/eslint/lib/rules/no-empty-pattern.js +78 -0
- package/backend/node_modules/eslint/lib/rules/no-empty-static-block.js +47 -0
- package/backend/node_modules/eslint/lib/rules/no-empty.js +103 -0
- package/backend/node_modules/eslint/lib/rules/no-eq-null.js +46 -0
- package/backend/node_modules/eslint/lib/rules/no-eval.js +286 -0
- package/backend/node_modules/eslint/lib/rules/no-ex-assign.js +54 -0
- package/backend/node_modules/eslint/lib/rules/no-extend-native.js +179 -0
- package/backend/node_modules/eslint/lib/rules/no-extra-bind.js +213 -0
- package/backend/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +317 -0
- package/backend/node_modules/eslint/lib/rules/no-extra-label.js +149 -0
- package/backend/node_modules/eslint/lib/rules/no-extra-parens.js +1322 -0
- package/backend/node_modules/eslint/lib/rules/no-extra-semi.js +147 -0
- package/backend/node_modules/eslint/lib/rules/no-fallthrough.js +196 -0
- package/backend/node_modules/eslint/lib/rules/no-floating-decimal.js +73 -0
- package/backend/node_modules/eslint/lib/rules/no-func-assign.js +78 -0
- package/backend/node_modules/eslint/lib/rules/no-global-assign.js +95 -0
- package/backend/node_modules/eslint/lib/rules/no-implicit-coercion.js +380 -0
- package/backend/node_modules/eslint/lib/rules/no-implicit-globals.js +146 -0
- package/backend/node_modules/eslint/lib/rules/no-implied-eval.js +132 -0
- package/backend/node_modules/eslint/lib/rules/no-import-assign.js +241 -0
- package/backend/node_modules/eslint/lib/rules/no-inline-comments.js +110 -0
- package/backend/node_modules/eslint/lib/rules/no-inner-declarations.js +110 -0
- package/backend/node_modules/eslint/lib/rules/no-invalid-regexp.js +194 -0
- package/backend/node_modules/eslint/lib/rules/no-invalid-this.js +150 -0
- package/backend/node_modules/eslint/lib/rules/no-irregular-whitespace.js +276 -0
- package/backend/node_modules/eslint/lib/rules/no-iterator.js +52 -0
- package/backend/node_modules/eslint/lib/rules/no-label-var.js +80 -0
- package/backend/node_modules/eslint/lib/rules/no-labels.js +149 -0
- package/backend/node_modules/eslint/lib/rules/no-lone-blocks.js +136 -0
- package/backend/node_modules/eslint/lib/rules/no-lonely-if.js +88 -0
- package/backend/node_modules/eslint/lib/rules/no-loop-func.js +206 -0
- package/backend/node_modules/eslint/lib/rules/no-loss-of-precision.js +214 -0
- package/backend/node_modules/eslint/lib/rules/no-magic-numbers.js +243 -0
- package/backend/node_modules/eslint/lib/rules/no-misleading-character-class.js +300 -0
- package/backend/node_modules/eslint/lib/rules/no-mixed-operators.js +229 -0
- package/backend/node_modules/eslint/lib/rules/no-mixed-requires.js +238 -0
- package/backend/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +116 -0
- package/backend/node_modules/eslint/lib/rules/no-multi-assign.js +67 -0
- package/backend/node_modules/eslint/lib/rules/no-multi-spaces.js +141 -0
- package/backend/node_modules/eslint/lib/rules/no-multi-str.js +65 -0
- package/backend/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +154 -0
- package/backend/node_modules/eslint/lib/rules/no-native-reassign.js +98 -0
- package/backend/node_modules/eslint/lib/rules/no-negated-condition.js +95 -0
- package/backend/node_modules/eslint/lib/rules/no-negated-in-lhs.js +46 -0
- package/backend/node_modules/eslint/lib/rules/no-nested-ternary.js +44 -0
- package/backend/node_modules/eslint/lib/rules/no-new-func.js +87 -0
- package/backend/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +66 -0
- package/backend/node_modules/eslint/lib/rules/no-new-object.js +67 -0
- package/backend/node_modules/eslint/lib/rules/no-new-require.js +50 -0
- package/backend/node_modules/eslint/lib/rules/no-new-symbol.js +56 -0
- package/backend/node_modules/eslint/lib/rules/no-new-wrappers.js +60 -0
- package/backend/node_modules/eslint/lib/rules/no-new.js +43 -0
- package/backend/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +148 -0
- package/backend/node_modules/eslint/lib/rules/no-obj-calls.js +86 -0
- package/backend/node_modules/eslint/lib/rules/no-object-constructor.js +117 -0
- package/backend/node_modules/eslint/lib/rules/no-octal-escape.js +56 -0
- package/backend/node_modules/eslint/lib/rules/no-octal.js +45 -0
- package/backend/node_modules/eslint/lib/rules/no-param-reassign.js +230 -0
- package/backend/node_modules/eslint/lib/rules/no-path-concat.js +64 -0
- package/backend/node_modules/eslint/lib/rules/no-plusplus.js +105 -0
- package/backend/node_modules/eslint/lib/rules/no-process-env.js +51 -0
- package/backend/node_modules/eslint/lib/rules/no-process-exit.js +47 -0
- package/backend/node_modules/eslint/lib/rules/no-promise-executor-return.js +263 -0
- package/backend/node_modules/eslint/lib/rules/no-proto.js +48 -0
- package/backend/node_modules/eslint/lib/rules/no-prototype-builtins.js +159 -0
- package/backend/node_modules/eslint/lib/rules/no-redeclare.js +174 -0
- package/backend/node_modules/eslint/lib/rules/no-regex-spaces.js +197 -0
- package/backend/node_modules/eslint/lib/rules/no-restricted-exports.js +193 -0
- package/backend/node_modules/eslint/lib/rules/no-restricted-globals.js +124 -0
- package/backend/node_modules/eslint/lib/rules/no-restricted-imports.js +410 -0
- package/backend/node_modules/eslint/lib/rules/no-restricted-modules.js +213 -0
- package/backend/node_modules/eslint/lib/rules/no-restricted-properties.js +168 -0
- package/backend/node_modules/eslint/lib/rules/no-restricted-syntax.js +70 -0
- package/backend/node_modules/eslint/lib/rules/no-return-assign.js +80 -0
- package/backend/node_modules/eslint/lib/rules/no-return-await.js +135 -0
- package/backend/node_modules/eslint/lib/rules/no-script-url.js +61 -0
- package/backend/node_modules/eslint/lib/rules/no-self-assign.js +183 -0
- package/backend/node_modules/eslint/lib/rules/no-self-compare.js +60 -0
- package/backend/node_modules/eslint/lib/rules/no-sequences.js +138 -0
- package/backend/node_modules/eslint/lib/rules/no-setter-return.js +226 -0
- package/backend/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +65 -0
- package/backend/node_modules/eslint/lib/rules/no-shadow.js +336 -0
- package/backend/node_modules/eslint/lib/rules/no-spaced-func.js +83 -0
- package/backend/node_modules/eslint/lib/rules/no-sparse-arrays.js +50 -0
- package/backend/node_modules/eslint/lib/rules/no-sync.js +64 -0
- package/backend/node_modules/eslint/lib/rules/no-tabs.js +81 -0
- package/backend/node_modules/eslint/lib/rules/no-template-curly-in-string.js +44 -0
- package/backend/node_modules/eslint/lib/rules/no-ternary.js +41 -0
- package/backend/node_modules/eslint/lib/rules/no-this-before-super.js +331 -0
- package/backend/node_modules/eslint/lib/rules/no-throw-literal.js +51 -0
- package/backend/node_modules/eslint/lib/rules/no-trailing-spaces.js +193 -0
- package/backend/node_modules/eslint/lib/rules/no-undef-init.js +75 -0
- package/backend/node_modules/eslint/lib/rules/no-undef.js +79 -0
- package/backend/node_modules/eslint/lib/rules/no-undefined.js +86 -0
- package/backend/node_modules/eslint/lib/rules/no-underscore-dangle.js +335 -0
- package/backend/node_modules/eslint/lib/rules/no-unexpected-multiline.js +120 -0
- package/backend/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +360 -0
- package/backend/node_modules/eslint/lib/rules/no-unneeded-ternary.js +166 -0
- package/backend/node_modules/eslint/lib/rules/no-unreachable-loop.js +185 -0
- package/backend/node_modules/eslint/lib/rules/no-unreachable.js +293 -0
- package/backend/node_modules/eslint/lib/rules/no-unsafe-finally.js +111 -0
- package/backend/node_modules/eslint/lib/rules/no-unsafe-negation.js +128 -0
- package/backend/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +205 -0
- package/backend/node_modules/eslint/lib/rules/no-unused-expressions.js +186 -0
- package/backend/node_modules/eslint/lib/rules/no-unused-labels.js +143 -0
- package/backend/node_modules/eslint/lib/rules/no-unused-private-class-members.js +195 -0
- package/backend/node_modules/eslint/lib/rules/no-unused-vars.js +718 -0
- package/backend/node_modules/eslint/lib/rules/no-use-before-define.js +348 -0
- package/backend/node_modules/eslint/lib/rules/no-useless-backreference.js +194 -0
- package/backend/node_modules/eslint/lib/rules/no-useless-call.js +90 -0
- package/backend/node_modules/eslint/lib/rules/no-useless-catch.js +57 -0
- package/backend/node_modules/eslint/lib/rules/no-useless-computed-key.js +168 -0
- package/backend/node_modules/eslint/lib/rules/no-useless-concat.js +115 -0
- package/backend/node_modules/eslint/lib/rules/no-useless-constructor.js +189 -0
- package/backend/node_modules/eslint/lib/rules/no-useless-escape.js +333 -0
- package/backend/node_modules/eslint/lib/rules/no-useless-rename.js +172 -0
- package/backend/node_modules/eslint/lib/rules/no-useless-return.js +364 -0
- package/backend/node_modules/eslint/lib/rules/no-var.js +334 -0
- package/backend/node_modules/eslint/lib/rules/no-void.js +64 -0
- package/backend/node_modules/eslint/lib/rules/no-warning-comments.js +201 -0
- package/backend/node_modules/eslint/lib/rules/no-whitespace-before-property.js +116 -0
- package/backend/node_modules/eslint/lib/rules/no-with.js +39 -0
- package/backend/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +127 -0
- package/backend/node_modules/eslint/lib/rules/object-curly-newline.js +324 -0
- package/backend/node_modules/eslint/lib/rules/object-curly-spacing.js +311 -0
- package/backend/node_modules/eslint/lib/rules/object-property-newline.js +102 -0
- package/backend/node_modules/eslint/lib/rules/object-shorthand.js +520 -0
- package/backend/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +95 -0
- package/backend/node_modules/eslint/lib/rules/one-var.js +567 -0
- package/backend/node_modules/eslint/lib/rules/operator-assignment.js +209 -0
- package/backend/node_modules/eslint/lib/rules/operator-linebreak.js +253 -0
- package/backend/node_modules/eslint/lib/rules/padded-blocks.js +310 -0
- package/backend/node_modules/eslint/lib/rules/padding-line-between-statements.js +590 -0
- package/backend/node_modules/eslint/lib/rules/prefer-arrow-callback.js +381 -0
- package/backend/node_modules/eslint/lib/rules/prefer-const.js +501 -0
- package/backend/node_modules/eslint/lib/rules/prefer-destructuring.js +301 -0
- package/backend/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +191 -0
- package/backend/node_modules/eslint/lib/rules/prefer-named-capture-group.js +178 -0
- package/backend/node_modules/eslint/lib/rules/prefer-numeric-literals.js +148 -0
- package/backend/node_modules/eslint/lib/rules/prefer-object-has-own.js +114 -0
- package/backend/node_modules/eslint/lib/rules/prefer-object-spread.js +298 -0
- package/backend/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +132 -0
- package/backend/node_modules/eslint/lib/rules/prefer-reflect.js +127 -0
- package/backend/node_modules/eslint/lib/rules/prefer-regex-literals.js +507 -0
- package/backend/node_modules/eslint/lib/rules/prefer-rest-params.js +118 -0
- package/backend/node_modules/eslint/lib/rules/prefer-spread.js +87 -0
- package/backend/node_modules/eslint/lib/rules/prefer-template.js +275 -0
- package/backend/node_modules/eslint/lib/rules/quote-props.js +310 -0
- package/backend/node_modules/eslint/lib/rules/quotes.js +350 -0
- package/backend/node_modules/eslint/lib/rules/radix.js +198 -0
- package/backend/node_modules/eslint/lib/rules/require-atomic-updates.js +331 -0
- package/backend/node_modules/eslint/lib/rules/require-await.js +113 -0
- package/backend/node_modules/eslint/lib/rules/require-jsdoc.js +122 -0
- package/backend/node_modules/eslint/lib/rules/require-unicode-regexp.js +129 -0
- package/backend/node_modules/eslint/lib/rules/require-yield.js +77 -0
- package/backend/node_modules/eslint/lib/rules/rest-spread-spacing.js +123 -0
- package/backend/node_modules/eslint/lib/rules/semi-spacing.js +248 -0
- package/backend/node_modules/eslint/lib/rules/semi-style.js +158 -0
- package/backend/node_modules/eslint/lib/rules/semi.js +438 -0
- package/backend/node_modules/eslint/lib/rules/sort-imports.js +241 -0
- package/backend/node_modules/eslint/lib/rules/sort-keys.js +230 -0
- package/backend/node_modules/eslint/lib/rules/sort-vars.js +104 -0
- package/backend/node_modules/eslint/lib/rules/space-before-blocks.js +204 -0
- package/backend/node_modules/eslint/lib/rules/space-before-function-paren.js +167 -0
- package/backend/node_modules/eslint/lib/rules/space-in-parens.js +285 -0
- package/backend/node_modules/eslint/lib/rules/space-infix-ops.js +198 -0
- package/backend/node_modules/eslint/lib/rules/space-unary-ops.js +324 -0
- package/backend/node_modules/eslint/lib/rules/spaced-comment.js +385 -0
- package/backend/node_modules/eslint/lib/rules/strict.js +277 -0
- package/backend/node_modules/eslint/lib/rules/switch-colon-spacing.js +132 -0
- package/backend/node_modules/eslint/lib/rules/symbol-description.js +73 -0
- package/backend/node_modules/eslint/lib/rules/template-curly-spacing.js +144 -0
- package/backend/node_modules/eslint/lib/rules/template-tag-spacing.js +93 -0
- package/backend/node_modules/eslint/lib/rules/unicode-bom.js +73 -0
- package/backend/node_modules/eslint/lib/rules/use-isnan.js +141 -0
- package/backend/node_modules/eslint/lib/rules/utils/ast-utils.js +2282 -0
- package/backend/node_modules/eslint/lib/rules/utils/fix-tracker.js +114 -0
- package/backend/node_modules/eslint/lib/rules/utils/keywords.js +67 -0
- package/backend/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +115 -0
- package/backend/node_modules/eslint/lib/rules/utils/patterns/letters.js +36 -0
- package/backend/node_modules/eslint/lib/rules/utils/regular-expressions.js +42 -0
- package/backend/node_modules/eslint/lib/rules/utils/unicode/index.js +11 -0
- package/backend/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +13 -0
- package/backend/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +13 -0
- package/backend/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +13 -0
- package/backend/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +14 -0
- package/backend/node_modules/eslint/lib/rules/valid-jsdoc.js +516 -0
- package/backend/node_modules/eslint/lib/rules/valid-typeof.js +127 -0
- package/backend/node_modules/eslint/lib/rules/vars-on-top.js +157 -0
- package/backend/node_modules/eslint/lib/rules/wrap-iife.js +207 -0
- package/backend/node_modules/eslint/lib/rules/wrap-regex.js +61 -0
- package/backend/node_modules/eslint/lib/rules/yield-star-spacing.js +130 -0
- package/backend/node_modules/eslint/lib/rules/yoda.js +353 -0
- package/backend/node_modules/eslint/lib/shared/ajv.js +34 -0
- package/backend/node_modules/eslint/lib/shared/ast-utils.js +29 -0
- package/backend/node_modules/eslint/lib/shared/config-validator.js +347 -0
- package/backend/node_modules/eslint/lib/shared/deprecation-warnings.js +58 -0
- package/backend/node_modules/eslint/lib/shared/directives.js +15 -0
- package/backend/node_modules/eslint/lib/shared/logging.js +30 -0
- package/backend/node_modules/eslint/lib/shared/relative-module-resolver.js +50 -0
- package/backend/node_modules/eslint/lib/shared/runtime-info.js +167 -0
- package/backend/node_modules/eslint/lib/shared/severity.js +49 -0
- package/backend/node_modules/eslint/lib/shared/string-utils.js +60 -0
- package/backend/node_modules/eslint/lib/shared/traverser.js +195 -0
- package/backend/node_modules/eslint/lib/shared/types.js +216 -0
- package/backend/node_modules/eslint/lib/source-code/index.js +5 -0
- package/backend/node_modules/eslint/lib/source-code/source-code.js +1055 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/backward-token-comment-cursor.js +57 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +58 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/cursor.js +76 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/cursors.js +90 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/decorative-cursor.js +39 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/filter-cursor.js +43 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +57 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +63 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/index.js +627 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/limit-cursor.js +40 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/padded-token-cursor.js +38 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/skip-cursor.js +42 -0
- package/backend/node_modules/eslint/lib/source-code/token-store/utils.js +107 -0
- package/backend/node_modules/eslint/lib/unsupported-api.js +30 -0
- package/backend/node_modules/eslint/messages/all-files-ignored.js +16 -0
- package/backend/node_modules/eslint/messages/eslintrc-incompat.js +98 -0
- package/backend/node_modules/eslint/messages/eslintrc-plugins.js +24 -0
- package/backend/node_modules/eslint/messages/extend-config-missing.js +13 -0
- package/backend/node_modules/eslint/messages/failed-to-read-json.js +11 -0
- package/backend/node_modules/eslint/messages/file-not-found.js +10 -0
- package/backend/node_modules/eslint/messages/invalid-rule-options.js +17 -0
- package/backend/node_modules/eslint/messages/invalid-rule-severity.js +13 -0
- package/backend/node_modules/eslint/messages/no-config-found.js +15 -0
- package/backend/node_modules/eslint/messages/plugin-conflict.js +22 -0
- package/backend/node_modules/eslint/messages/plugin-invalid.js +16 -0
- package/backend/node_modules/eslint/messages/plugin-missing.js +19 -0
- package/backend/node_modules/eslint/messages/print-config-with-directory-path.js +8 -0
- package/backend/node_modules/eslint/messages/shared.js +18 -0
- package/backend/node_modules/eslint/messages/whitespace-found.js +11 -0
- package/backend/node_modules/eslint/package.json +181 -0
- package/backend/node_modules/undici-types/LICENSE +21 -0
- package/backend/node_modules/undici-types/README.md +6 -0
- package/backend/node_modules/undici-types/agent.d.ts +31 -0
- package/backend/node_modules/undici-types/api.d.ts +43 -0
- package/backend/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/backend/node_modules/undici-types/cache.d.ts +36 -0
- package/backend/node_modules/undici-types/client.d.ts +108 -0
- package/backend/node_modules/undici-types/connector.d.ts +34 -0
- package/backend/node_modules/undici-types/content-type.d.ts +21 -0
- package/backend/node_modules/undici-types/cookies.d.ts +28 -0
- package/backend/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/backend/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/backend/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/backend/node_modules/undici-types/errors.d.ts +149 -0
- package/backend/node_modules/undici-types/eventsource.d.ts +61 -0
- package/backend/node_modules/undici-types/fetch.d.ts +209 -0
- package/backend/node_modules/undici-types/file.d.ts +39 -0
- package/backend/node_modules/undici-types/filereader.d.ts +54 -0
- package/backend/node_modules/undici-types/formdata.d.ts +108 -0
- package/backend/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/backend/node_modules/undici-types/global-origin.d.ts +7 -0
- package/backend/node_modules/undici-types/handlers.d.ts +15 -0
- package/backend/node_modules/undici-types/header.d.ts +4 -0
- package/backend/node_modules/undici-types/index.d.ts +71 -0
- package/backend/node_modules/undici-types/interceptors.d.ts +17 -0
- package/backend/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/backend/node_modules/undici-types/mock-client.d.ts +25 -0
- package/backend/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/backend/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/backend/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/backend/node_modules/undici-types/package.json +55 -0
- package/backend/node_modules/undici-types/patch.d.ts +33 -0
- package/backend/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/backend/node_modules/undici-types/pool.d.ts +39 -0
- package/backend/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/backend/node_modules/undici-types/readable.d.ts +65 -0
- package/backend/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/backend/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/backend/node_modules/undici-types/util.d.ts +18 -0
- package/backend/node_modules/undici-types/webidl.d.ts +228 -0
- package/backend/node_modules/undici-types/websocket.d.ts +150 -0
- package/daemon/node_modules/undici-types/LICENSE +21 -0
- package/daemon/node_modules/undici-types/README.md +6 -0
- package/daemon/node_modules/undici-types/agent.d.ts +31 -0
- package/daemon/node_modules/undici-types/api.d.ts +43 -0
- package/daemon/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/daemon/node_modules/undici-types/cache.d.ts +36 -0
- package/daemon/node_modules/undici-types/client.d.ts +108 -0
- package/daemon/node_modules/undici-types/connector.d.ts +34 -0
- package/daemon/node_modules/undici-types/content-type.d.ts +21 -0
- package/daemon/node_modules/undici-types/cookies.d.ts +28 -0
- package/daemon/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/daemon/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/daemon/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/daemon/node_modules/undici-types/errors.d.ts +149 -0
- package/daemon/node_modules/undici-types/eventsource.d.ts +61 -0
- package/daemon/node_modules/undici-types/fetch.d.ts +209 -0
- package/daemon/node_modules/undici-types/file.d.ts +39 -0
- package/daemon/node_modules/undici-types/filereader.d.ts +54 -0
- package/daemon/node_modules/undici-types/formdata.d.ts +108 -0
- package/daemon/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/daemon/node_modules/undici-types/global-origin.d.ts +7 -0
- package/daemon/node_modules/undici-types/handlers.d.ts +15 -0
- package/daemon/node_modules/undici-types/header.d.ts +4 -0
- package/daemon/node_modules/undici-types/index.d.ts +71 -0
- package/daemon/node_modules/undici-types/interceptors.d.ts +17 -0
- package/daemon/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/daemon/node_modules/undici-types/mock-client.d.ts +25 -0
- package/daemon/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/daemon/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/daemon/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/daemon/node_modules/undici-types/package.json +55 -0
- package/daemon/node_modules/undici-types/patch.d.ts +33 -0
- package/daemon/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/daemon/node_modules/undici-types/pool.d.ts +39 -0
- package/daemon/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/daemon/node_modules/undici-types/readable.d.ts +65 -0
- package/daemon/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/daemon/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/daemon/node_modules/undici-types/util.d.ts +18 -0
- package/daemon/node_modules/undici-types/webidl.d.ts +228 -0
- package/daemon/node_modules/undici-types/websocket.d.ts +150 -0
- package/package.json +2 -2
|
@@ -0,0 +1,1078 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Main CLI object.
|
|
3
|
+
* @author Nicholas C. Zakas
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* The CLI object should *not* call process.exit() directly. It should only return
|
|
10
|
+
* exit codes. This allows other programs to use the CLI object and still control
|
|
11
|
+
* when the program exits.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
//------------------------------------------------------------------------------
|
|
15
|
+
// Requirements
|
|
16
|
+
//------------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
const fs = require("fs");
|
|
19
|
+
const path = require("path");
|
|
20
|
+
const defaultOptions = require("../../conf/default-cli-options");
|
|
21
|
+
const pkg = require("../../package.json");
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
const {
|
|
25
|
+
Legacy: {
|
|
26
|
+
ConfigOps,
|
|
27
|
+
naming,
|
|
28
|
+
CascadingConfigArrayFactory,
|
|
29
|
+
IgnorePattern,
|
|
30
|
+
getUsedExtractedConfigs,
|
|
31
|
+
ModuleResolver
|
|
32
|
+
}
|
|
33
|
+
} = require("@eslint/eslintrc");
|
|
34
|
+
|
|
35
|
+
const { FileEnumerator } = require("./file-enumerator");
|
|
36
|
+
|
|
37
|
+
const { Linter } = require("../linter");
|
|
38
|
+
const builtInRules = require("../rules");
|
|
39
|
+
const loadRules = require("./load-rules");
|
|
40
|
+
const hash = require("./hash");
|
|
41
|
+
const LintResultCache = require("./lint-result-cache");
|
|
42
|
+
|
|
43
|
+
const debug = require("debug")("eslint:cli-engine");
|
|
44
|
+
const validFixTypes = new Set(["directive", "problem", "suggestion", "layout"]);
|
|
45
|
+
|
|
46
|
+
//------------------------------------------------------------------------------
|
|
47
|
+
// Typedefs
|
|
48
|
+
//------------------------------------------------------------------------------
|
|
49
|
+
|
|
50
|
+
// For VSCode IntelliSense
|
|
51
|
+
/** @typedef {import("../shared/types").ConfigData} ConfigData */
|
|
52
|
+
/** @typedef {import("../shared/types").DeprecatedRuleInfo} DeprecatedRuleInfo */
|
|
53
|
+
/** @typedef {import("../shared/types").LintMessage} LintMessage */
|
|
54
|
+
/** @typedef {import("../shared/types").SuppressedLintMessage} SuppressedLintMessage */
|
|
55
|
+
/** @typedef {import("../shared/types").ParserOptions} ParserOptions */
|
|
56
|
+
/** @typedef {import("../shared/types").Plugin} Plugin */
|
|
57
|
+
/** @typedef {import("../shared/types").RuleConf} RuleConf */
|
|
58
|
+
/** @typedef {import("../shared/types").Rule} Rule */
|
|
59
|
+
/** @typedef {import("../shared/types").FormatterFunction} FormatterFunction */
|
|
60
|
+
/** @typedef {ReturnType<CascadingConfigArrayFactory.getConfigArrayForFile>} ConfigArray */
|
|
61
|
+
/** @typedef {ReturnType<ConfigArray.extractConfig>} ExtractedConfig */
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The options to configure a CLI engine with.
|
|
65
|
+
* @typedef {Object} CLIEngineOptions
|
|
66
|
+
* @property {boolean} [allowInlineConfig] Enable or disable inline configuration comments.
|
|
67
|
+
* @property {ConfigData} [baseConfig] Base config object, extended by all configs used with this CLIEngine instance
|
|
68
|
+
* @property {boolean} [cache] Enable result caching.
|
|
69
|
+
* @property {string} [cacheLocation] The cache file to use instead of .eslintcache.
|
|
70
|
+
* @property {string} [configFile] The configuration file to use.
|
|
71
|
+
* @property {string} [cwd] The value to use for the current working directory.
|
|
72
|
+
* @property {string[]} [envs] An array of environments to load.
|
|
73
|
+
* @property {string[]|null} [extensions] An array of file extensions to check.
|
|
74
|
+
* @property {boolean|Function} [fix] Execute in autofix mode. If a function, should return a boolean.
|
|
75
|
+
* @property {string[]} [fixTypes] Array of rule types to apply fixes for.
|
|
76
|
+
* @property {string[]} [globals] An array of global variables to declare.
|
|
77
|
+
* @property {boolean} [ignore] False disables use of .eslintignore.
|
|
78
|
+
* @property {string} [ignorePath] The ignore file to use instead of .eslintignore.
|
|
79
|
+
* @property {string|string[]} [ignorePattern] One or more glob patterns to ignore.
|
|
80
|
+
* @property {boolean} [useEslintrc] False disables looking for .eslintrc
|
|
81
|
+
* @property {string} [parser] The name of the parser to use.
|
|
82
|
+
* @property {ParserOptions} [parserOptions] An object of parserOption settings to use.
|
|
83
|
+
* @property {string[]} [plugins] An array of plugins to load.
|
|
84
|
+
* @property {Record<string,RuleConf>} [rules] An object of rules to use.
|
|
85
|
+
* @property {string[]} [rulePaths] An array of directories to load custom rules from.
|
|
86
|
+
* @property {boolean|string} [reportUnusedDisableDirectives] `true`, `"error"` or '"warn"' adds reports for unused eslint-disable directives
|
|
87
|
+
* @property {boolean} [globInputPaths] Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file.
|
|
88
|
+
* @property {string} [resolvePluginsRelativeTo] The folder where plugins should be resolved from, defaulting to the CWD
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A linting result.
|
|
93
|
+
* @typedef {Object} LintResult
|
|
94
|
+
* @property {string} filePath The path to the file that was linted.
|
|
95
|
+
* @property {LintMessage[]} messages All of the messages for the result.
|
|
96
|
+
* @property {SuppressedLintMessage[]} suppressedMessages All of the suppressed messages for the result.
|
|
97
|
+
* @property {number} errorCount Number of errors for the result.
|
|
98
|
+
* @property {number} fatalErrorCount Number of fatal errors for the result.
|
|
99
|
+
* @property {number} warningCount Number of warnings for the result.
|
|
100
|
+
* @property {number} fixableErrorCount Number of fixable errors for the result.
|
|
101
|
+
* @property {number} fixableWarningCount Number of fixable warnings for the result.
|
|
102
|
+
* @property {string} [source] The source code of the file that was linted.
|
|
103
|
+
* @property {string} [output] The source code of the file that was linted, with as many fixes applied as possible.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Linting results.
|
|
108
|
+
* @typedef {Object} LintReport
|
|
109
|
+
* @property {LintResult[]} results All of the result.
|
|
110
|
+
* @property {number} errorCount Number of errors for the result.
|
|
111
|
+
* @property {number} fatalErrorCount Number of fatal errors for the result.
|
|
112
|
+
* @property {number} warningCount Number of warnings for the result.
|
|
113
|
+
* @property {number} fixableErrorCount Number of fixable errors for the result.
|
|
114
|
+
* @property {number} fixableWarningCount Number of fixable warnings for the result.
|
|
115
|
+
* @property {DeprecatedRuleInfo[]} usedDeprecatedRules The list of used deprecated rules.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Private data for CLIEngine.
|
|
120
|
+
* @typedef {Object} CLIEngineInternalSlots
|
|
121
|
+
* @property {Map<string, Plugin>} additionalPluginPool The map for additional plugins.
|
|
122
|
+
* @property {string} cacheFilePath The path to the cache of lint results.
|
|
123
|
+
* @property {CascadingConfigArrayFactory} configArrayFactory The factory of configs.
|
|
124
|
+
* @property {(filePath: string) => boolean} defaultIgnores The default predicate function to check if a file ignored or not.
|
|
125
|
+
* @property {FileEnumerator} fileEnumerator The file enumerator.
|
|
126
|
+
* @property {ConfigArray[]} lastConfigArrays The list of config arrays that the last `executeOnFiles` or `executeOnText` used.
|
|
127
|
+
* @property {LintResultCache|null} lintResultCache The cache of lint results.
|
|
128
|
+
* @property {Linter} linter The linter instance which has loaded rules.
|
|
129
|
+
* @property {CLIEngineOptions} options The normalized options of this instance.
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
//------------------------------------------------------------------------------
|
|
133
|
+
// Helpers
|
|
134
|
+
//------------------------------------------------------------------------------
|
|
135
|
+
|
|
136
|
+
/** @type {WeakMap<CLIEngine, CLIEngineInternalSlots>} */
|
|
137
|
+
const internalSlotsMap = new WeakMap();
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Determines if each fix type in an array is supported by ESLint and throws
|
|
141
|
+
* an error if not.
|
|
142
|
+
* @param {string[]} fixTypes An array of fix types to check.
|
|
143
|
+
* @returns {void}
|
|
144
|
+
* @throws {Error} If an invalid fix type is found.
|
|
145
|
+
*/
|
|
146
|
+
function validateFixTypes(fixTypes) {
|
|
147
|
+
for (const fixType of fixTypes) {
|
|
148
|
+
if (!validFixTypes.has(fixType)) {
|
|
149
|
+
throw new Error(`Invalid fix type "${fixType}" found.`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* It will calculate the error and warning count for collection of messages per file
|
|
156
|
+
* @param {LintMessage[]} messages Collection of messages
|
|
157
|
+
* @returns {Object} Contains the stats
|
|
158
|
+
* @private
|
|
159
|
+
*/
|
|
160
|
+
function calculateStatsPerFile(messages) {
|
|
161
|
+
const stat = {
|
|
162
|
+
errorCount: 0,
|
|
163
|
+
fatalErrorCount: 0,
|
|
164
|
+
warningCount: 0,
|
|
165
|
+
fixableErrorCount: 0,
|
|
166
|
+
fixableWarningCount: 0
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
for (let i = 0; i < messages.length; i++) {
|
|
170
|
+
const message = messages[i];
|
|
171
|
+
|
|
172
|
+
if (message.fatal || message.severity === 2) {
|
|
173
|
+
stat.errorCount++;
|
|
174
|
+
if (message.fatal) {
|
|
175
|
+
stat.fatalErrorCount++;
|
|
176
|
+
}
|
|
177
|
+
if (message.fix) {
|
|
178
|
+
stat.fixableErrorCount++;
|
|
179
|
+
}
|
|
180
|
+
} else {
|
|
181
|
+
stat.warningCount++;
|
|
182
|
+
if (message.fix) {
|
|
183
|
+
stat.fixableWarningCount++;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return stat;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* It will calculate the error and warning count for collection of results from all files
|
|
192
|
+
* @param {LintResult[]} results Collection of messages from all the files
|
|
193
|
+
* @returns {Object} Contains the stats
|
|
194
|
+
* @private
|
|
195
|
+
*/
|
|
196
|
+
function calculateStatsPerRun(results) {
|
|
197
|
+
const stat = {
|
|
198
|
+
errorCount: 0,
|
|
199
|
+
fatalErrorCount: 0,
|
|
200
|
+
warningCount: 0,
|
|
201
|
+
fixableErrorCount: 0,
|
|
202
|
+
fixableWarningCount: 0
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
for (let i = 0; i < results.length; i++) {
|
|
206
|
+
const result = results[i];
|
|
207
|
+
|
|
208
|
+
stat.errorCount += result.errorCount;
|
|
209
|
+
stat.fatalErrorCount += result.fatalErrorCount;
|
|
210
|
+
stat.warningCount += result.warningCount;
|
|
211
|
+
stat.fixableErrorCount += result.fixableErrorCount;
|
|
212
|
+
stat.fixableWarningCount += result.fixableWarningCount;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return stat;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Processes an source code using ESLint.
|
|
220
|
+
* @param {Object} config The config object.
|
|
221
|
+
* @param {string} config.text The source code to verify.
|
|
222
|
+
* @param {string} config.cwd The path to the current working directory.
|
|
223
|
+
* @param {string|undefined} config.filePath The path to the file of `text`. If this is undefined, it uses `<text>`.
|
|
224
|
+
* @param {ConfigArray} config.config The config.
|
|
225
|
+
* @param {boolean} config.fix If `true` then it does fix.
|
|
226
|
+
* @param {boolean} config.allowInlineConfig If `true` then it uses directive comments.
|
|
227
|
+
* @param {boolean|string} config.reportUnusedDisableDirectives If `true`, `"error"` or '"warn"', then it reports unused `eslint-disable` comments.
|
|
228
|
+
* @param {FileEnumerator} config.fileEnumerator The file enumerator to check if a path is a target or not.
|
|
229
|
+
* @param {Linter} config.linter The linter instance to verify.
|
|
230
|
+
* @returns {LintResult} The result of linting.
|
|
231
|
+
* @private
|
|
232
|
+
*/
|
|
233
|
+
function verifyText({
|
|
234
|
+
text,
|
|
235
|
+
cwd,
|
|
236
|
+
filePath: providedFilePath,
|
|
237
|
+
config,
|
|
238
|
+
fix,
|
|
239
|
+
allowInlineConfig,
|
|
240
|
+
reportUnusedDisableDirectives,
|
|
241
|
+
fileEnumerator,
|
|
242
|
+
linter
|
|
243
|
+
}) {
|
|
244
|
+
const filePath = providedFilePath || "<text>";
|
|
245
|
+
|
|
246
|
+
debug(`Lint ${filePath}`);
|
|
247
|
+
|
|
248
|
+
/*
|
|
249
|
+
* Verify.
|
|
250
|
+
* `config.extractConfig(filePath)` requires an absolute path, but `linter`
|
|
251
|
+
* doesn't know CWD, so it gives `linter` an absolute path always.
|
|
252
|
+
*/
|
|
253
|
+
const filePathToVerify = filePath === "<text>" ? path.join(cwd, filePath) : filePath;
|
|
254
|
+
const { fixed, messages, output } = linter.verifyAndFix(
|
|
255
|
+
text,
|
|
256
|
+
config,
|
|
257
|
+
{
|
|
258
|
+
allowInlineConfig,
|
|
259
|
+
filename: filePathToVerify,
|
|
260
|
+
fix,
|
|
261
|
+
reportUnusedDisableDirectives,
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Check if the linter should adopt a given code block or not.
|
|
265
|
+
* @param {string} blockFilename The virtual filename of a code block.
|
|
266
|
+
* @returns {boolean} `true` if the linter should adopt the code block.
|
|
267
|
+
*/
|
|
268
|
+
filterCodeBlock(blockFilename) {
|
|
269
|
+
return fileEnumerator.isTargetPath(blockFilename);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
);
|
|
273
|
+
|
|
274
|
+
// Tweak and return.
|
|
275
|
+
const result = {
|
|
276
|
+
filePath,
|
|
277
|
+
messages,
|
|
278
|
+
suppressedMessages: linter.getSuppressedMessages(),
|
|
279
|
+
...calculateStatsPerFile(messages)
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
if (fixed) {
|
|
283
|
+
result.output = output;
|
|
284
|
+
}
|
|
285
|
+
if (
|
|
286
|
+
result.errorCount + result.warningCount > 0 &&
|
|
287
|
+
typeof result.output === "undefined"
|
|
288
|
+
) {
|
|
289
|
+
result.source = text;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
return result;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Returns result with warning by ignore settings
|
|
297
|
+
* @param {string} filePath File path of checked code
|
|
298
|
+
* @param {string} baseDir Absolute path of base directory
|
|
299
|
+
* @returns {LintResult} Result with single warning
|
|
300
|
+
* @private
|
|
301
|
+
*/
|
|
302
|
+
function createIgnoreResult(filePath, baseDir) {
|
|
303
|
+
let message;
|
|
304
|
+
const isHidden = filePath.split(path.sep)
|
|
305
|
+
.find(segment => /^\./u.test(segment));
|
|
306
|
+
const isInNodeModules = baseDir && path.relative(baseDir, filePath).startsWith("node_modules");
|
|
307
|
+
|
|
308
|
+
if (isHidden) {
|
|
309
|
+
message = "File ignored by default. Use a negated ignore pattern (like \"--ignore-pattern '!<relative/path/to/filename>'\") to override.";
|
|
310
|
+
} else if (isInNodeModules) {
|
|
311
|
+
message = "File ignored by default. Use \"--ignore-pattern '!node_modules/*'\" to override.";
|
|
312
|
+
} else {
|
|
313
|
+
message = "File ignored because of a matching ignore pattern. Use \"--no-ignore\" to override.";
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return {
|
|
317
|
+
filePath: path.resolve(filePath),
|
|
318
|
+
messages: [
|
|
319
|
+
{
|
|
320
|
+
ruleId: null,
|
|
321
|
+
fatal: false,
|
|
322
|
+
severity: 1,
|
|
323
|
+
message,
|
|
324
|
+
nodeType: null
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
suppressedMessages: [],
|
|
328
|
+
errorCount: 0,
|
|
329
|
+
fatalErrorCount: 0,
|
|
330
|
+
warningCount: 1,
|
|
331
|
+
fixableErrorCount: 0,
|
|
332
|
+
fixableWarningCount: 0
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Get a rule.
|
|
338
|
+
* @param {string} ruleId The rule ID to get.
|
|
339
|
+
* @param {ConfigArray[]} configArrays The config arrays that have plugin rules.
|
|
340
|
+
* @returns {Rule|null} The rule or null.
|
|
341
|
+
*/
|
|
342
|
+
function getRule(ruleId, configArrays) {
|
|
343
|
+
for (const configArray of configArrays) {
|
|
344
|
+
const rule = configArray.pluginRules.get(ruleId);
|
|
345
|
+
|
|
346
|
+
if (rule) {
|
|
347
|
+
return rule;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return builtInRules.get(ruleId) || null;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Checks whether a message's rule type should be fixed.
|
|
355
|
+
* @param {LintMessage} message The message to check.
|
|
356
|
+
* @param {ConfigArray[]} lastConfigArrays The list of config arrays that the last `executeOnFiles` or `executeOnText` used.
|
|
357
|
+
* @param {string[]} fixTypes An array of fix types to check.
|
|
358
|
+
* @returns {boolean} Whether the message should be fixed.
|
|
359
|
+
*/
|
|
360
|
+
function shouldMessageBeFixed(message, lastConfigArrays, fixTypes) {
|
|
361
|
+
if (!message.ruleId) {
|
|
362
|
+
return fixTypes.has("directive");
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const rule = message.ruleId && getRule(message.ruleId, lastConfigArrays);
|
|
366
|
+
|
|
367
|
+
return Boolean(rule && rule.meta && fixTypes.has(rule.meta.type));
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Collect used deprecated rules.
|
|
372
|
+
* @param {ConfigArray[]} usedConfigArrays The config arrays which were used.
|
|
373
|
+
* @returns {IterableIterator<DeprecatedRuleInfo>} Used deprecated rules.
|
|
374
|
+
*/
|
|
375
|
+
function *iterateRuleDeprecationWarnings(usedConfigArrays) {
|
|
376
|
+
const processedRuleIds = new Set();
|
|
377
|
+
|
|
378
|
+
// Flatten used configs.
|
|
379
|
+
/** @type {ExtractedConfig[]} */
|
|
380
|
+
const configs = usedConfigArrays.flatMap(getUsedExtractedConfigs);
|
|
381
|
+
|
|
382
|
+
// Traverse rule configs.
|
|
383
|
+
for (const config of configs) {
|
|
384
|
+
for (const [ruleId, ruleConfig] of Object.entries(config.rules)) {
|
|
385
|
+
|
|
386
|
+
// Skip if it was processed.
|
|
387
|
+
if (processedRuleIds.has(ruleId)) {
|
|
388
|
+
continue;
|
|
389
|
+
}
|
|
390
|
+
processedRuleIds.add(ruleId);
|
|
391
|
+
|
|
392
|
+
// Skip if it's not used.
|
|
393
|
+
if (!ConfigOps.getRuleSeverity(ruleConfig)) {
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
const rule = getRule(ruleId, usedConfigArrays);
|
|
397
|
+
|
|
398
|
+
// Skip if it's not deprecated.
|
|
399
|
+
if (!(rule && rule.meta && rule.meta.deprecated)) {
|
|
400
|
+
continue;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// This rule was used and deprecated.
|
|
404
|
+
yield {
|
|
405
|
+
ruleId,
|
|
406
|
+
replacedBy: rule.meta.replacedBy || []
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Checks if the given message is an error message.
|
|
414
|
+
* @param {LintMessage} message The message to check.
|
|
415
|
+
* @returns {boolean} Whether or not the message is an error message.
|
|
416
|
+
* @private
|
|
417
|
+
*/
|
|
418
|
+
function isErrorMessage(message) {
|
|
419
|
+
return message.severity === 2;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* return the cacheFile to be used by eslint, based on whether the provided parameter is
|
|
425
|
+
* a directory or looks like a directory (ends in `path.sep`), in which case the file
|
|
426
|
+
* name will be the `cacheFile/.cache_hashOfCWD`
|
|
427
|
+
*
|
|
428
|
+
* if cacheFile points to a file or looks like a file then it will just use that file
|
|
429
|
+
* @param {string} cacheFile The name of file to be used to store the cache
|
|
430
|
+
* @param {string} cwd Current working directory
|
|
431
|
+
* @returns {string} the resolved path to the cache file
|
|
432
|
+
*/
|
|
433
|
+
function getCacheFile(cacheFile, cwd) {
|
|
434
|
+
|
|
435
|
+
/*
|
|
436
|
+
* make sure the path separators are normalized for the environment/os
|
|
437
|
+
* keeping the trailing path separator if present
|
|
438
|
+
*/
|
|
439
|
+
const normalizedCacheFile = path.normalize(cacheFile);
|
|
440
|
+
|
|
441
|
+
const resolvedCacheFile = path.resolve(cwd, normalizedCacheFile);
|
|
442
|
+
const looksLikeADirectory = normalizedCacheFile.slice(-1) === path.sep;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* return the name for the cache file in case the provided parameter is a directory
|
|
446
|
+
* @returns {string} the resolved path to the cacheFile
|
|
447
|
+
*/
|
|
448
|
+
function getCacheFileForDirectory() {
|
|
449
|
+
return path.join(resolvedCacheFile, `.cache_${hash(cwd)}`);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
let fileStats;
|
|
453
|
+
|
|
454
|
+
try {
|
|
455
|
+
fileStats = fs.lstatSync(resolvedCacheFile);
|
|
456
|
+
} catch {
|
|
457
|
+
fileStats = null;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
/*
|
|
462
|
+
* in case the file exists we need to verify if the provided path
|
|
463
|
+
* is a directory or a file. If it is a directory we want to create a file
|
|
464
|
+
* inside that directory
|
|
465
|
+
*/
|
|
466
|
+
if (fileStats) {
|
|
467
|
+
|
|
468
|
+
/*
|
|
469
|
+
* is a directory or is a file, but the original file the user provided
|
|
470
|
+
* looks like a directory but `path.resolve` removed the `last path.sep`
|
|
471
|
+
* so we need to still treat this like a directory
|
|
472
|
+
*/
|
|
473
|
+
if (fileStats.isDirectory() || looksLikeADirectory) {
|
|
474
|
+
return getCacheFileForDirectory();
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
// is file so just use that file
|
|
478
|
+
return resolvedCacheFile;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/*
|
|
482
|
+
* here we known the file or directory doesn't exist,
|
|
483
|
+
* so we will try to infer if its a directory if it looks like a directory
|
|
484
|
+
* for the current operating system.
|
|
485
|
+
*/
|
|
486
|
+
|
|
487
|
+
// if the last character passed is a path separator we assume is a directory
|
|
488
|
+
if (looksLikeADirectory) {
|
|
489
|
+
return getCacheFileForDirectory();
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
return resolvedCacheFile;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Convert a string array to a boolean map.
|
|
497
|
+
* @param {string[]|null} keys The keys to assign true.
|
|
498
|
+
* @param {boolean} defaultValue The default value for each property.
|
|
499
|
+
* @param {string} displayName The property name which is used in error message.
|
|
500
|
+
* @throws {Error} Requires array.
|
|
501
|
+
* @returns {Record<string,boolean>} The boolean map.
|
|
502
|
+
*/
|
|
503
|
+
function toBooleanMap(keys, defaultValue, displayName) {
|
|
504
|
+
if (keys && !Array.isArray(keys)) {
|
|
505
|
+
throw new Error(`${displayName} must be an array.`);
|
|
506
|
+
}
|
|
507
|
+
if (keys && keys.length > 0) {
|
|
508
|
+
return keys.reduce((map, def) => {
|
|
509
|
+
const [key, value] = def.split(":");
|
|
510
|
+
|
|
511
|
+
if (key !== "__proto__") {
|
|
512
|
+
map[key] = value === void 0
|
|
513
|
+
? defaultValue
|
|
514
|
+
: value === "true";
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
return map;
|
|
518
|
+
}, {});
|
|
519
|
+
}
|
|
520
|
+
return void 0;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Create a config data from CLI options.
|
|
525
|
+
* @param {CLIEngineOptions} options The options
|
|
526
|
+
* @returns {ConfigData|null} The created config data.
|
|
527
|
+
*/
|
|
528
|
+
function createConfigDataFromOptions(options) {
|
|
529
|
+
const {
|
|
530
|
+
ignorePattern,
|
|
531
|
+
parser,
|
|
532
|
+
parserOptions,
|
|
533
|
+
plugins,
|
|
534
|
+
rules
|
|
535
|
+
} = options;
|
|
536
|
+
const env = toBooleanMap(options.envs, true, "envs");
|
|
537
|
+
const globals = toBooleanMap(options.globals, false, "globals");
|
|
538
|
+
|
|
539
|
+
if (
|
|
540
|
+
env === void 0 &&
|
|
541
|
+
globals === void 0 &&
|
|
542
|
+
(ignorePattern === void 0 || ignorePattern.length === 0) &&
|
|
543
|
+
parser === void 0 &&
|
|
544
|
+
parserOptions === void 0 &&
|
|
545
|
+
plugins === void 0 &&
|
|
546
|
+
rules === void 0
|
|
547
|
+
) {
|
|
548
|
+
return null;
|
|
549
|
+
}
|
|
550
|
+
return {
|
|
551
|
+
env,
|
|
552
|
+
globals,
|
|
553
|
+
ignorePatterns: ignorePattern,
|
|
554
|
+
parser,
|
|
555
|
+
parserOptions,
|
|
556
|
+
plugins,
|
|
557
|
+
rules
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Checks whether a directory exists at the given location
|
|
563
|
+
* @param {string} resolvedPath A path from the CWD
|
|
564
|
+
* @throws {Error} As thrown by `fs.statSync` or `fs.isDirectory`.
|
|
565
|
+
* @returns {boolean} `true` if a directory exists
|
|
566
|
+
*/
|
|
567
|
+
function directoryExists(resolvedPath) {
|
|
568
|
+
try {
|
|
569
|
+
return fs.statSync(resolvedPath).isDirectory();
|
|
570
|
+
} catch (error) {
|
|
571
|
+
if (error && (error.code === "ENOENT" || error.code === "ENOTDIR")) {
|
|
572
|
+
return false;
|
|
573
|
+
}
|
|
574
|
+
throw error;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
//------------------------------------------------------------------------------
|
|
579
|
+
// Public Interface
|
|
580
|
+
//------------------------------------------------------------------------------
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Core CLI.
|
|
584
|
+
*/
|
|
585
|
+
class CLIEngine {
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Creates a new instance of the core CLI engine.
|
|
589
|
+
* @param {CLIEngineOptions} providedOptions The options for this instance.
|
|
590
|
+
* @param {Object} [additionalData] Additional settings that are not CLIEngineOptions.
|
|
591
|
+
* @param {Record<string,Plugin>|null} [additionalData.preloadedPlugins] Preloaded plugins.
|
|
592
|
+
*/
|
|
593
|
+
constructor(providedOptions, { preloadedPlugins } = {}) {
|
|
594
|
+
const options = Object.assign(
|
|
595
|
+
Object.create(null),
|
|
596
|
+
defaultOptions,
|
|
597
|
+
{ cwd: process.cwd() },
|
|
598
|
+
providedOptions
|
|
599
|
+
);
|
|
600
|
+
|
|
601
|
+
if (options.fix === void 0) {
|
|
602
|
+
options.fix = false;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
const additionalPluginPool = new Map();
|
|
606
|
+
|
|
607
|
+
if (preloadedPlugins) {
|
|
608
|
+
for (const [id, plugin] of Object.entries(preloadedPlugins)) {
|
|
609
|
+
additionalPluginPool.set(id, plugin);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
const cacheFilePath = getCacheFile(
|
|
614
|
+
options.cacheLocation || options.cacheFile,
|
|
615
|
+
options.cwd
|
|
616
|
+
);
|
|
617
|
+
const configArrayFactory = new CascadingConfigArrayFactory({
|
|
618
|
+
additionalPluginPool,
|
|
619
|
+
baseConfig: options.baseConfig || null,
|
|
620
|
+
cliConfig: createConfigDataFromOptions(options),
|
|
621
|
+
cwd: options.cwd,
|
|
622
|
+
ignorePath: options.ignorePath,
|
|
623
|
+
resolvePluginsRelativeTo: options.resolvePluginsRelativeTo,
|
|
624
|
+
rulePaths: options.rulePaths,
|
|
625
|
+
specificConfigPath: options.configFile,
|
|
626
|
+
useEslintrc: options.useEslintrc,
|
|
627
|
+
builtInRules,
|
|
628
|
+
loadRules,
|
|
629
|
+
getEslintRecommendedConfig: () => require("@eslint/js").configs.recommended,
|
|
630
|
+
getEslintAllConfig: () => require("@eslint/js").configs.all
|
|
631
|
+
});
|
|
632
|
+
const fileEnumerator = new FileEnumerator({
|
|
633
|
+
configArrayFactory,
|
|
634
|
+
cwd: options.cwd,
|
|
635
|
+
extensions: options.extensions,
|
|
636
|
+
globInputPaths: options.globInputPaths,
|
|
637
|
+
errorOnUnmatchedPattern: options.errorOnUnmatchedPattern,
|
|
638
|
+
ignore: options.ignore
|
|
639
|
+
});
|
|
640
|
+
const lintResultCache =
|
|
641
|
+
options.cache ? new LintResultCache(cacheFilePath, options.cacheStrategy) : null;
|
|
642
|
+
const linter = new Linter({ cwd: options.cwd });
|
|
643
|
+
|
|
644
|
+
/** @type {ConfigArray[]} */
|
|
645
|
+
const lastConfigArrays = [configArrayFactory.getConfigArrayForFile()];
|
|
646
|
+
|
|
647
|
+
// Store private data.
|
|
648
|
+
internalSlotsMap.set(this, {
|
|
649
|
+
additionalPluginPool,
|
|
650
|
+
cacheFilePath,
|
|
651
|
+
configArrayFactory,
|
|
652
|
+
defaultIgnores: IgnorePattern.createDefaultIgnore(options.cwd),
|
|
653
|
+
fileEnumerator,
|
|
654
|
+
lastConfigArrays,
|
|
655
|
+
lintResultCache,
|
|
656
|
+
linter,
|
|
657
|
+
options
|
|
658
|
+
});
|
|
659
|
+
|
|
660
|
+
// setup special filter for fixes
|
|
661
|
+
if (options.fix && options.fixTypes && options.fixTypes.length > 0) {
|
|
662
|
+
debug(`Using fix types ${options.fixTypes}`);
|
|
663
|
+
|
|
664
|
+
// throw an error if any invalid fix types are found
|
|
665
|
+
validateFixTypes(options.fixTypes);
|
|
666
|
+
|
|
667
|
+
// convert to Set for faster lookup
|
|
668
|
+
const fixTypes = new Set(options.fixTypes);
|
|
669
|
+
|
|
670
|
+
// save original value of options.fix in case it's a function
|
|
671
|
+
const originalFix = (typeof options.fix === "function")
|
|
672
|
+
? options.fix : () => true;
|
|
673
|
+
|
|
674
|
+
options.fix = message => shouldMessageBeFixed(message, lastConfigArrays, fixTypes) && originalFix(message);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
getRules() {
|
|
679
|
+
const { lastConfigArrays } = internalSlotsMap.get(this);
|
|
680
|
+
|
|
681
|
+
return new Map(function *() {
|
|
682
|
+
yield* builtInRules;
|
|
683
|
+
|
|
684
|
+
for (const configArray of lastConfigArrays) {
|
|
685
|
+
yield* configArray.pluginRules;
|
|
686
|
+
}
|
|
687
|
+
}());
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Returns results that only contains errors.
|
|
692
|
+
* @param {LintResult[]} results The results to filter.
|
|
693
|
+
* @returns {LintResult[]} The filtered results.
|
|
694
|
+
*/
|
|
695
|
+
static getErrorResults(results) {
|
|
696
|
+
const filtered = [];
|
|
697
|
+
|
|
698
|
+
results.forEach(result => {
|
|
699
|
+
const filteredMessages = result.messages.filter(isErrorMessage);
|
|
700
|
+
const filteredSuppressedMessages = result.suppressedMessages.filter(isErrorMessage);
|
|
701
|
+
|
|
702
|
+
if (filteredMessages.length > 0) {
|
|
703
|
+
filtered.push({
|
|
704
|
+
...result,
|
|
705
|
+
messages: filteredMessages,
|
|
706
|
+
suppressedMessages: filteredSuppressedMessages,
|
|
707
|
+
errorCount: filteredMessages.length,
|
|
708
|
+
warningCount: 0,
|
|
709
|
+
fixableErrorCount: result.fixableErrorCount,
|
|
710
|
+
fixableWarningCount: 0
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
|
|
715
|
+
return filtered;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Outputs fixes from the given results to files.
|
|
720
|
+
* @param {LintReport} report The report object created by CLIEngine.
|
|
721
|
+
* @returns {void}
|
|
722
|
+
*/
|
|
723
|
+
static outputFixes(report) {
|
|
724
|
+
report.results.filter(result => Object.prototype.hasOwnProperty.call(result, "output")).forEach(result => {
|
|
725
|
+
fs.writeFileSync(result.filePath, result.output);
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Resolves the patterns passed into executeOnFiles() into glob-based patterns
|
|
731
|
+
* for easier handling.
|
|
732
|
+
* @param {string[]} patterns The file patterns passed on the command line.
|
|
733
|
+
* @returns {string[]} The equivalent glob patterns.
|
|
734
|
+
*/
|
|
735
|
+
resolveFileGlobPatterns(patterns) {
|
|
736
|
+
const { options } = internalSlotsMap.get(this);
|
|
737
|
+
|
|
738
|
+
if (options.globInputPaths === false) {
|
|
739
|
+
return patterns.filter(Boolean);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
const extensions = (options.extensions || [".js"]).map(ext => ext.replace(/^\./u, ""));
|
|
743
|
+
const dirSuffix = `/**/*.{${extensions.join(",")}}`;
|
|
744
|
+
|
|
745
|
+
return patterns.filter(Boolean).map(pathname => {
|
|
746
|
+
const resolvedPath = path.resolve(options.cwd, pathname);
|
|
747
|
+
const newPath = directoryExists(resolvedPath)
|
|
748
|
+
? pathname.replace(/[/\\]$/u, "") + dirSuffix
|
|
749
|
+
: pathname;
|
|
750
|
+
|
|
751
|
+
return path.normalize(newPath).replace(/\\/gu, "/");
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Executes the current configuration on an array of file and directory names.
|
|
757
|
+
* @param {string[]} patterns An array of file and directory names.
|
|
758
|
+
* @throws {Error} As may be thrown by `fs.unlinkSync`.
|
|
759
|
+
* @returns {LintReport} The results for all files that were linted.
|
|
760
|
+
*/
|
|
761
|
+
executeOnFiles(patterns) {
|
|
762
|
+
const {
|
|
763
|
+
cacheFilePath,
|
|
764
|
+
fileEnumerator,
|
|
765
|
+
lastConfigArrays,
|
|
766
|
+
lintResultCache,
|
|
767
|
+
linter,
|
|
768
|
+
options: {
|
|
769
|
+
allowInlineConfig,
|
|
770
|
+
cache,
|
|
771
|
+
cwd,
|
|
772
|
+
fix,
|
|
773
|
+
reportUnusedDisableDirectives
|
|
774
|
+
}
|
|
775
|
+
} = internalSlotsMap.get(this);
|
|
776
|
+
const results = [];
|
|
777
|
+
const startTime = Date.now();
|
|
778
|
+
|
|
779
|
+
// Clear the last used config arrays.
|
|
780
|
+
lastConfigArrays.length = 0;
|
|
781
|
+
|
|
782
|
+
// Delete cache file; should this do here?
|
|
783
|
+
if (!cache) {
|
|
784
|
+
try {
|
|
785
|
+
fs.unlinkSync(cacheFilePath);
|
|
786
|
+
} catch (error) {
|
|
787
|
+
const errorCode = error && error.code;
|
|
788
|
+
|
|
789
|
+
// Ignore errors when no such file exists or file system is read only (and cache file does not exist)
|
|
790
|
+
if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !fs.existsSync(cacheFilePath))) {
|
|
791
|
+
throw error;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
// Iterate source code files.
|
|
797
|
+
for (const { config, filePath, ignored } of fileEnumerator.iterateFiles(patterns)) {
|
|
798
|
+
if (ignored) {
|
|
799
|
+
results.push(createIgnoreResult(filePath, cwd));
|
|
800
|
+
continue;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/*
|
|
804
|
+
* Store used configs for:
|
|
805
|
+
* - this method uses to collect used deprecated rules.
|
|
806
|
+
* - `getRules()` method uses to collect all loaded rules.
|
|
807
|
+
* - `--fix-type` option uses to get the loaded rule's meta data.
|
|
808
|
+
*/
|
|
809
|
+
if (!lastConfigArrays.includes(config)) {
|
|
810
|
+
lastConfigArrays.push(config);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
// Skip if there is cached result.
|
|
814
|
+
if (lintResultCache) {
|
|
815
|
+
const cachedResult =
|
|
816
|
+
lintResultCache.getCachedLintResults(filePath, config);
|
|
817
|
+
|
|
818
|
+
if (cachedResult) {
|
|
819
|
+
const hadMessages =
|
|
820
|
+
cachedResult.messages &&
|
|
821
|
+
cachedResult.messages.length > 0;
|
|
822
|
+
|
|
823
|
+
if (hadMessages && fix) {
|
|
824
|
+
debug(`Reprocessing cached file to allow autofix: ${filePath}`);
|
|
825
|
+
} else {
|
|
826
|
+
debug(`Skipping file since it hasn't changed: ${filePath}`);
|
|
827
|
+
results.push(cachedResult);
|
|
828
|
+
continue;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
// Do lint.
|
|
834
|
+
const result = verifyText({
|
|
835
|
+
text: fs.readFileSync(filePath, "utf8"),
|
|
836
|
+
filePath,
|
|
837
|
+
config,
|
|
838
|
+
cwd,
|
|
839
|
+
fix,
|
|
840
|
+
allowInlineConfig,
|
|
841
|
+
reportUnusedDisableDirectives,
|
|
842
|
+
fileEnumerator,
|
|
843
|
+
linter
|
|
844
|
+
});
|
|
845
|
+
|
|
846
|
+
results.push(result);
|
|
847
|
+
|
|
848
|
+
/*
|
|
849
|
+
* Store the lint result in the LintResultCache.
|
|
850
|
+
* NOTE: The LintResultCache will remove the file source and any
|
|
851
|
+
* other properties that are difficult to serialize, and will
|
|
852
|
+
* hydrate those properties back in on future lint runs.
|
|
853
|
+
*/
|
|
854
|
+
if (lintResultCache) {
|
|
855
|
+
lintResultCache.setCachedLintResults(filePath, config, result);
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
// Persist the cache to disk.
|
|
860
|
+
if (lintResultCache) {
|
|
861
|
+
lintResultCache.reconcile();
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
debug(`Linting complete in: ${Date.now() - startTime}ms`);
|
|
865
|
+
let usedDeprecatedRules;
|
|
866
|
+
|
|
867
|
+
return {
|
|
868
|
+
results,
|
|
869
|
+
...calculateStatsPerRun(results),
|
|
870
|
+
|
|
871
|
+
// Initialize it lazily because CLI and `ESLint` API don't use it.
|
|
872
|
+
get usedDeprecatedRules() {
|
|
873
|
+
if (!usedDeprecatedRules) {
|
|
874
|
+
usedDeprecatedRules = Array.from(
|
|
875
|
+
iterateRuleDeprecationWarnings(lastConfigArrays)
|
|
876
|
+
);
|
|
877
|
+
}
|
|
878
|
+
return usedDeprecatedRules;
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* Executes the current configuration on text.
|
|
885
|
+
* @param {string} text A string of JavaScript code to lint.
|
|
886
|
+
* @param {string} [filename] An optional string representing the texts filename.
|
|
887
|
+
* @param {boolean} [warnIgnored] Always warn when a file is ignored
|
|
888
|
+
* @returns {LintReport} The results for the linting.
|
|
889
|
+
*/
|
|
890
|
+
executeOnText(text, filename, warnIgnored) {
|
|
891
|
+
const {
|
|
892
|
+
configArrayFactory,
|
|
893
|
+
fileEnumerator,
|
|
894
|
+
lastConfigArrays,
|
|
895
|
+
linter,
|
|
896
|
+
options: {
|
|
897
|
+
allowInlineConfig,
|
|
898
|
+
cwd,
|
|
899
|
+
fix,
|
|
900
|
+
reportUnusedDisableDirectives
|
|
901
|
+
}
|
|
902
|
+
} = internalSlotsMap.get(this);
|
|
903
|
+
const results = [];
|
|
904
|
+
const startTime = Date.now();
|
|
905
|
+
const resolvedFilename = filename && path.resolve(cwd, filename);
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
// Clear the last used config arrays.
|
|
909
|
+
lastConfigArrays.length = 0;
|
|
910
|
+
if (resolvedFilename && this.isPathIgnored(resolvedFilename)) {
|
|
911
|
+
if (warnIgnored) {
|
|
912
|
+
results.push(createIgnoreResult(resolvedFilename, cwd));
|
|
913
|
+
}
|
|
914
|
+
} else {
|
|
915
|
+
const config = configArrayFactory.getConfigArrayForFile(
|
|
916
|
+
resolvedFilename || "__placeholder__.js"
|
|
917
|
+
);
|
|
918
|
+
|
|
919
|
+
/*
|
|
920
|
+
* Store used configs for:
|
|
921
|
+
* - this method uses to collect used deprecated rules.
|
|
922
|
+
* - `getRules()` method uses to collect all loaded rules.
|
|
923
|
+
* - `--fix-type` option uses to get the loaded rule's meta data.
|
|
924
|
+
*/
|
|
925
|
+
lastConfigArrays.push(config);
|
|
926
|
+
|
|
927
|
+
// Do lint.
|
|
928
|
+
results.push(verifyText({
|
|
929
|
+
text,
|
|
930
|
+
filePath: resolvedFilename,
|
|
931
|
+
config,
|
|
932
|
+
cwd,
|
|
933
|
+
fix,
|
|
934
|
+
allowInlineConfig,
|
|
935
|
+
reportUnusedDisableDirectives,
|
|
936
|
+
fileEnumerator,
|
|
937
|
+
linter
|
|
938
|
+
}));
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
debug(`Linting complete in: ${Date.now() - startTime}ms`);
|
|
942
|
+
let usedDeprecatedRules;
|
|
943
|
+
|
|
944
|
+
return {
|
|
945
|
+
results,
|
|
946
|
+
...calculateStatsPerRun(results),
|
|
947
|
+
|
|
948
|
+
// Initialize it lazily because CLI and `ESLint` API don't use it.
|
|
949
|
+
get usedDeprecatedRules() {
|
|
950
|
+
if (!usedDeprecatedRules) {
|
|
951
|
+
usedDeprecatedRules = Array.from(
|
|
952
|
+
iterateRuleDeprecationWarnings(lastConfigArrays)
|
|
953
|
+
);
|
|
954
|
+
}
|
|
955
|
+
return usedDeprecatedRules;
|
|
956
|
+
}
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Returns a configuration object for the given file based on the CLI options.
|
|
962
|
+
* This is the same logic used by the ESLint CLI executable to determine
|
|
963
|
+
* configuration for each file it processes.
|
|
964
|
+
* @param {string} filePath The path of the file to retrieve a config object for.
|
|
965
|
+
* @throws {Error} If filepath a directory path.
|
|
966
|
+
* @returns {ConfigData} A configuration object for the file.
|
|
967
|
+
*/
|
|
968
|
+
getConfigForFile(filePath) {
|
|
969
|
+
const { configArrayFactory, options } = internalSlotsMap.get(this);
|
|
970
|
+
const absolutePath = path.resolve(options.cwd, filePath);
|
|
971
|
+
|
|
972
|
+
if (directoryExists(absolutePath)) {
|
|
973
|
+
throw Object.assign(
|
|
974
|
+
new Error("'filePath' should not be a directory path."),
|
|
975
|
+
{ messageTemplate: "print-config-with-directory-path" }
|
|
976
|
+
);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
return configArrayFactory
|
|
980
|
+
.getConfigArrayForFile(absolutePath)
|
|
981
|
+
.extractConfig(absolutePath)
|
|
982
|
+
.toCompatibleObjectAsConfigFileContent();
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Checks if a given path is ignored by ESLint.
|
|
987
|
+
* @param {string} filePath The path of the file to check.
|
|
988
|
+
* @returns {boolean} Whether or not the given path is ignored.
|
|
989
|
+
*/
|
|
990
|
+
isPathIgnored(filePath) {
|
|
991
|
+
const {
|
|
992
|
+
configArrayFactory,
|
|
993
|
+
defaultIgnores,
|
|
994
|
+
options: { cwd, ignore }
|
|
995
|
+
} = internalSlotsMap.get(this);
|
|
996
|
+
const absolutePath = path.resolve(cwd, filePath);
|
|
997
|
+
|
|
998
|
+
if (ignore) {
|
|
999
|
+
const config = configArrayFactory
|
|
1000
|
+
.getConfigArrayForFile(absolutePath)
|
|
1001
|
+
.extractConfig(absolutePath);
|
|
1002
|
+
const ignores = config.ignores || defaultIgnores;
|
|
1003
|
+
|
|
1004
|
+
return ignores(absolutePath);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
return defaultIgnores(absolutePath);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Returns the formatter representing the given format or null if the `format` is not a string.
|
|
1012
|
+
* @param {string} [format] The name of the format to load or the path to a
|
|
1013
|
+
* custom formatter.
|
|
1014
|
+
* @throws {any} As may be thrown by requiring of formatter
|
|
1015
|
+
* @returns {(FormatterFunction|null)} The formatter function or null if the `format` is not a string.
|
|
1016
|
+
*/
|
|
1017
|
+
getFormatter(format) {
|
|
1018
|
+
|
|
1019
|
+
// default is stylish
|
|
1020
|
+
const resolvedFormatName = format || "stylish";
|
|
1021
|
+
|
|
1022
|
+
// only strings are valid formatters
|
|
1023
|
+
if (typeof resolvedFormatName === "string") {
|
|
1024
|
+
|
|
1025
|
+
// replace \ with / for Windows compatibility
|
|
1026
|
+
const normalizedFormatName = resolvedFormatName.replace(/\\/gu, "/");
|
|
1027
|
+
|
|
1028
|
+
const slots = internalSlotsMap.get(this);
|
|
1029
|
+
const cwd = slots ? slots.options.cwd : process.cwd();
|
|
1030
|
+
const namespace = naming.getNamespaceFromTerm(normalizedFormatName);
|
|
1031
|
+
|
|
1032
|
+
let formatterPath;
|
|
1033
|
+
|
|
1034
|
+
// if there's a slash, then it's a file (TODO: this check seems dubious for scoped npm packages)
|
|
1035
|
+
if (!namespace && normalizedFormatName.includes("/")) {
|
|
1036
|
+
formatterPath = path.resolve(cwd, normalizedFormatName);
|
|
1037
|
+
} else {
|
|
1038
|
+
try {
|
|
1039
|
+
const npmFormat = naming.normalizePackageName(normalizedFormatName, "eslint-formatter");
|
|
1040
|
+
|
|
1041
|
+
formatterPath = ModuleResolver.resolve(npmFormat, path.join(cwd, "__placeholder__.js"));
|
|
1042
|
+
} catch {
|
|
1043
|
+
formatterPath = path.resolve(__dirname, "formatters", normalizedFormatName);
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
try {
|
|
1048
|
+
return require(formatterPath);
|
|
1049
|
+
} catch (ex) {
|
|
1050
|
+
if (format === "table" || format === "codeframe") {
|
|
1051
|
+
ex.message = `The ${format} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${format}\``;
|
|
1052
|
+
} else {
|
|
1053
|
+
ex.message = `There was a problem loading formatter: ${formatterPath}\nError: ${ex.message}`;
|
|
1054
|
+
}
|
|
1055
|
+
throw ex;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
} else {
|
|
1059
|
+
return null;
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
CLIEngine.version = pkg.version;
|
|
1065
|
+
CLIEngine.getFormatter = CLIEngine.prototype.getFormatter;
|
|
1066
|
+
|
|
1067
|
+
module.exports = {
|
|
1068
|
+
CLIEngine,
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Get the internal slots of a given CLIEngine instance for tests.
|
|
1072
|
+
* @param {CLIEngine} instance The CLIEngine instance to get.
|
|
1073
|
+
* @returns {CLIEngineInternalSlots} The internal slots.
|
|
1074
|
+
*/
|
|
1075
|
+
getCLIEngineInternalSlots(instance) {
|
|
1076
|
+
return internalSlotsMap.get(instance);
|
|
1077
|
+
}
|
|
1078
|
+
};
|