UNPKG

@kitschpatrol/eslint-config

Version:
1,386 lines (1,369 loc) 163 kB
// src/configs/astro.ts import globals from "globals"; import path from "path"; import process3 from "process"; // src/globs.ts var GLOB_SRC_EXT = "?([cm])[jt]s?(x)"; var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`; var GLOB_JS = "**/*.?([cm])js"; var GLOB_JSX = "**/*.?([cm])jsx"; var GLOB_TS = "**/*.?([cm])ts"; var GLOB_TSX = "**/*.?([cm])tsx"; var GLOB_STYLE = "**/*.{c,le,sc}ss"; var GLOB_CSS = "**/*.css"; var GLOB_POSTCSS = "**/*.{p,post}css"; var GLOB_LESS = "**/*.less"; var GLOB_SCSS = "**/*.scss"; var GLOB_JSON = "**/*.json"; var GLOB_JSON5 = "**/*.json5"; var GLOB_JSONC = "**/*.jsonc"; var GLOB_MARKDOWN = "**/*.md"; var GLOB_MDX = "**/*.mdx"; var GLOB_SVELTE = "**/*.svelte"; var GLOB_SVELTE_TS = "**/*.svelte.ts"; var GLOB_SVELTE_JS = "**/*.svelte.js"; var GLOB_YAML = "**/*.y?(a)ml"; var GLOB_TOML = "**/*.toml"; var GLOB_XML = "**/*.xml"; var GLOB_SVG = "**/*.svg"; var GLOB_HTML = "**/*.htm?(l)"; var GLOB_ASTRO = "**/*.astro"; var GLOB_ASTRO_JS = `${GLOB_ASTRO}/*.js`; var GLOB_ASTRO_TS = `${GLOB_ASTRO}/*.ts`; var GLOB_GRAPHQL = "**/*.{g,graph}ql"; var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`; var GLOB_MDX_CODE = `${GLOB_MDX}/${GLOB_SRC}`; var GLOB_TESTS = [ `**/__tests__/**/*.${GLOB_SRC_EXT}`, `**/*.spec.${GLOB_SRC_EXT}`, `**/*.test.${GLOB_SRC_EXT}`, `**/*.bench.${GLOB_SRC_EXT}`, `**/*.benchmark.${GLOB_SRC_EXT}` ]; var GLOB_ALL_SRC = [ GLOB_SRC, GLOB_STYLE, GLOB_JSON, GLOB_JSON5, GLOB_MARKDOWN, GLOB_MDX, GLOB_SVELTE, GLOB_SVELTE_JS, GLOB_SVELTE_TS, GLOB_YAML, GLOB_XML, GLOB_HTML ]; var GLOB_EXCLUDE = [ "**/node_modules", "**/dist", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/bun.lockb", "**/bin", "**/output", "**/coverage", "**/temp", "**/.temp", "**/tmp", "**/.tmp", "**/.history", "**/.vitepress/cache", "**/.nuxt", "**/.next", "**/.svelte-kit", "**/.vercel", "**/.changeset", "**/.idea", "**/.cache", "**/.output", "**/.vite-inspect", "**/.yarn", "**/vite.config.*.timestamp-*", "**/CHANGELOG*.md", "**/*.min.*", "**/LICENSE*", "**/__snapshots__", "**/auto-import?(s).d.ts", "**/components.d.ts" ]; // src/parsers.ts import * as tsParser from "@typescript-eslint/parser"; // src/presets/astro.ts var astroRecommendedRules = { // Brittle since there's no negative index access in dot-prop // Begin expansion 'eslint-plugin-astro' 'flat/recommended[4]' "astro/missing-client-only-directive-value": "error", "astro/no-conflict-set-directives": "error", "astro/no-deprecated-astro-canonicalurl": "error", "astro/no-deprecated-astro-fetchcontent": "error", "astro/no-deprecated-astro-resolve": "error", "astro/no-deprecated-getentrybyslug": "error", "astro/no-unused-define-vars-in-style": "error", "astro/valid-compile": "error" // End expansion }; var astroJsxA11yRecommendedRules = { // Brittle since there's no negative index access in dot-prop // Begin expansion 'eslint-plugin-astro' 'flat/jsx-a11y-recommended[4]' "astro/jsx-a11y/alt-text": "error", "astro/jsx-a11y/anchor-ambiguous-text": "off", "astro/jsx-a11y/anchor-has-content": "error", "astro/jsx-a11y/anchor-is-valid": "error", "astro/jsx-a11y/aria-activedescendant-has-tabindex": "error", "astro/jsx-a11y/aria-props": "error", "astro/jsx-a11y/aria-proptypes": "error", "astro/jsx-a11y/aria-role": "error", "astro/jsx-a11y/aria-unsupported-elements": "error", "astro/jsx-a11y/autocomplete-valid": "error", "astro/jsx-a11y/click-events-have-key-events": "error", "astro/jsx-a11y/control-has-associated-label": [ "off", { ignoreElements: ["audio", "canvas", "embed", "input", "textarea", "tr", "video"], ignoreRoles: [ "grid", "listbox", "menu", "menubar", "radiogroup", "row", "tablist", "toolbar", "tree", "treegrid" ], includeRoles: ["alert", "dialog"] } ], "astro/jsx-a11y/heading-has-content": "error", "astro/jsx-a11y/html-has-lang": "error", "astro/jsx-a11y/iframe-has-title": "error", "astro/jsx-a11y/img-redundant-alt": "error", "astro/jsx-a11y/interactive-supports-focus": [ "error", { tabbable: ["button", "checkbox", "link", "searchbox", "spinbutton", "switch", "textbox"] } ], "astro/jsx-a11y/label-has-associated-control": "error", // "astro/jsx-a11y/label-has-for":"off", "astro/jsx-a11y/media-has-caption": "error", "astro/jsx-a11y/mouse-events-have-key-events": "error", "astro/jsx-a11y/no-access-key": "error", "astro/jsx-a11y/no-autofocus": "error", "astro/jsx-a11y/no-distracting-elements": "error", "astro/jsx-a11y/no-interactive-element-to-noninteractive-role": [ "error", { tr: ["none", "presentation"], canvas: ["img"] } ], "astro/jsx-a11y/no-noninteractive-element-interactions": [ "error", { handlers: [ "onClick", "onError", "onLoad", "onMouseDown", "onMouseUp", "onKeyPress", "onKeyDown", "onKeyUp" ], alert: ["onKeyUp", "onKeyDown", "onKeyPress"], body: ["onError", "onLoad"], dialog: ["onKeyUp", "onKeyDown", "onKeyPress"], iframe: ["onError", "onLoad"], img: ["onError", "onLoad"] } ], "astro/jsx-a11y/no-noninteractive-element-to-interactive-role": [ "error", { ul: ["listbox", "menu", "menubar", "radiogroup", "tablist", "tree", "treegrid"], ol: ["listbox", "menu", "menubar", "radiogroup", "tablist", "tree", "treegrid"], li: ["menuitem", "menuitemradio", "menuitemcheckbox", "option", "row", "tab", "treeitem"], table: ["grid"], td: ["gridcell"], fieldset: ["radiogroup", "presentation"] } ], "astro/jsx-a11y/no-noninteractive-tabindex": [ "error", { tags: [], roles: ["tabpanel"], allowExpressionValues: true } ], "astro/jsx-a11y/no-redundant-roles": "error", "astro/jsx-a11y/no-static-element-interactions": [ "error", { allowExpressionValues: true, handlers: ["onClick", "onMouseDown", "onMouseUp", "onKeyPress", "onKeyDown", "onKeyUp"] } ], "astro/jsx-a11y/role-has-required-aria-props": "error", "astro/jsx-a11y/role-supports-aria-props": "error", "astro/jsx-a11y/scope": "error", "astro/jsx-a11y/tabindex-no-positive": "error" // End expansion }; // src/presets/de-morgan.ts var deMorganRecommendedRules = { // Begin expansion 'eslint-plugin-de-morgan' 'recommended' "de-morgan/no-negated-conjunction": "error", "de-morgan/no-negated-disjunction": "error" // End expansion }; // src/presets/depend.ts var dependRecommendedRules = { // Begin expansion 'eslint-plugin-depend' 'recommended' "depend/ban-dependencies": "error" // End expansion }; // src/presets/eslint-comments.ts var eslintCommentsRecommendedRules = { // Begin expansion '@eslint-community/eslint-plugin-eslint-comments' 'recommended' "eslint-comments/disable-enable-pair": "error", "eslint-comments/no-aggregating-enable": "error", "eslint-comments/no-duplicate-disable": "error", "eslint-comments/no-unlimited-disable": "error", "eslint-comments/no-unused-enable": "error" // End expansion }; // src/presets/eslint-javascript.ts var eslintJavascriptRecommendedRules = { // Begin expansion '@eslint/js' 'recommended' "constructor-super": "error", "for-direction": "error", "getter-return": "error", "no-async-promise-executor": "error", "no-case-declarations": "error", "no-class-assign": "error", "no-compare-neg-zero": "error", "no-cond-assign": "error", "no-const-assign": "error", "no-constant-binary-expression": "error", "no-constant-condition": "error", "no-control-regex": "error", "no-debugger": "error", "no-delete-var": "error", "no-dupe-args": "error", "no-dupe-class-members": "error", "no-dupe-else-if": "error", "no-dupe-keys": "error", "no-duplicate-case": "error", "no-empty": "error", "no-empty-character-class": "error", "no-empty-pattern": "error", "no-empty-static-block": "error", "no-ex-assign": "error", "no-extra-boolean-cast": "error", "no-fallthrough": "error", "no-func-assign": "error", "no-global-assign": "error", "no-import-assign": "error", "no-invalid-regexp": "error", "no-irregular-whitespace": "error", "no-loss-of-precision": "error", "no-misleading-character-class": "error", "no-new-native-nonconstructor": "error", "no-nonoctal-decimal-escape": "error", "no-obj-calls": "error", "no-octal": "error", "no-prototype-builtins": "error", "no-redeclare": "error", "no-regex-spaces": "error", "no-self-assign": "error", "no-setter-return": "error", "no-shadow-restricted-names": "error", "no-sparse-arrays": "error", "no-this-before-super": "error", "no-undef": "error", "no-unexpected-multiline": "error", "no-unreachable": "error", "no-unsafe-finally": "error", "no-unsafe-negation": "error", "no-unsafe-optional-chaining": "error", "no-unused-labels": "error", "no-unused-private-class-members": "error", "no-unused-vars": "error", "no-useless-backreference": "error", "no-useless-catch": "error", "no-useless-escape": "error", "no-with": "error", "require-yield": "error", "use-isnan": "error", "valid-typeof": "error" // End expansion }; // src/presets/eslint-typescript.ts var eslintTypescriptRecommendedOverridesRules = { // Begin expansion '@typescript-eslint/eslint-plugin' 'eslint-recommended.overrides[0]' "constructor-super": "off", "getter-return": "off", "no-class-assign": "off", "no-const-assign": "off", "no-dupe-args": "off", "no-dupe-class-members": "off", "no-dupe-keys": "off", "no-func-assign": "off", "no-import-assign": "off", "no-new-native-nonconstructor": "off", "no-new-symbol": "off", "no-obj-calls": "off", "no-redeclare": "off", "no-setter-return": "off", "no-this-before-super": "off", "no-undef": "off", "no-unreachable": "off", "no-unsafe-negation": "off", "no-var": "error", "no-with": "off", "prefer-const": "error", "prefer-rest-params": "error", "prefer-spread": "error" // End expansion }; var eslintTypescriptStrictTypeCheckedRules = { // Begin expansion '@typescript-eslint/eslint-plugin' 'strict-type-checked' "ts/await-thenable": "error", "ts/ban-ts-comment": ["error", { minimumDescriptionLength: 10 }], "no-array-constructor": "off", "ts/no-array-constructor": "error", "ts/no-array-delete": "error", "ts/no-base-to-string": "error", "ts/no-confusing-void-expression": "error", "ts/no-deprecated": "error", "ts/no-duplicate-enum-values": "error", "ts/no-duplicate-type-constituents": "error", "ts/no-dynamic-delete": "error", "ts/no-empty-object-type": "error", "ts/no-explicit-any": "error", "ts/no-extra-non-null-assertion": "error", "ts/no-extraneous-class": "error", "ts/no-floating-promises": "error", "ts/no-for-in-array": "error", "no-implied-eval": "off", "ts/no-implied-eval": "error", "ts/no-invalid-void-type": "error", "ts/no-meaningless-void-operator": "error", "ts/no-misused-new": "error", "ts/no-misused-promises": "error", "ts/no-misused-spread": "error", "ts/no-mixed-enums": "error", "ts/no-namespace": "error", "ts/no-non-null-asserted-nullish-coalescing": "error", "ts/no-non-null-asserted-optional-chain": "error", "ts/no-non-null-assertion": "error", "ts/no-redundant-type-constituents": "error", "ts/no-require-imports": "error", "ts/no-this-alias": "error", "ts/no-unnecessary-boolean-literal-compare": "error", "ts/no-unnecessary-condition": "error", "ts/no-unnecessary-template-expression": "error", "ts/no-unnecessary-type-arguments": "error", "ts/no-unnecessary-type-assertion": "error", "ts/no-unnecessary-type-constraint": "error", "ts/no-unnecessary-type-conversion": "error", "ts/no-unnecessary-type-parameters": "error", "ts/no-unsafe-argument": "error", "ts/no-unsafe-assignment": "error", "ts/no-unsafe-call": "error", "ts/no-unsafe-declaration-merging": "error", "ts/no-unsafe-enum-comparison": "error", "ts/no-unsafe-function-type": "error", "ts/no-unsafe-member-access": "error", "ts/no-unsafe-return": "error", "ts/no-unsafe-unary-minus": "error", "no-unused-expressions": "off", "ts/no-unused-expressions": "error", "no-unused-vars": "off", "ts/no-unused-vars": "error", "no-useless-constructor": "off", "ts/no-useless-constructor": "error", "ts/no-wrapper-object-types": "error", "no-throw-literal": "off", "ts/only-throw-error": "error", "ts/prefer-as-const": "error", "ts/prefer-literal-enum-member": "error", "ts/prefer-namespace-keyword": "error", "prefer-promise-reject-errors": "off", "ts/prefer-promise-reject-errors": "error", "ts/prefer-reduce-type-parameter": "error", "ts/prefer-return-this-type": "error", "ts/related-getter-setter-pairs": "error", "require-await": "off", "ts/require-await": "error", "ts/restrict-plus-operands": [ "error", { allowAny: false, allowBoolean: false, allowNullish: false, allowNumberAndString: false, allowRegExp: false } ], "ts/restrict-template-expressions": [ "error", { allowAny: false, allowBoolean: false, allowNever: false, allowNullish: false, allowNumber: false, allowRegExp: false } ], // "no-return-await":"off", "ts/return-await": ["error", "error-handling-correctness-only"], "ts/triple-slash-reference": "error", "ts/unbound-method": "error", "ts/unified-signatures": "error", "ts/use-unknown-in-catch-callback-variable": "error" // End expansion }; var eslintTypescriptStylisticTypeCheckedRules = { // Begin expansion '@typescript-eslint/eslint-plugin' 'stylistic-type-checked' "ts/adjacent-overload-signatures": "error", "ts/array-type": "error", "ts/ban-tslint-comment": "error", "ts/class-literal-property-style": "error", "ts/consistent-generic-constructors": "error", "ts/consistent-indexed-object-style": "error", "ts/consistent-type-assertions": "error", "ts/consistent-type-definitions": "error", "dot-notation": "off", "ts/dot-notation": "error", "ts/no-confusing-non-null-assertion": "error", "no-empty-function": "off", "ts/no-empty-function": "error", "ts/no-inferrable-types": "error", "ts/non-nullable-type-assertion-style": "error", "ts/prefer-find": "error", "ts/prefer-for-of": "error", "ts/prefer-function-type": "error", "ts/prefer-includes": "error", "ts/prefer-nullish-coalescing": "error", "ts/prefer-optional-chain": "error", "ts/prefer-regexp-exec": "error", "ts/prefer-string-starts-ends-with": "error" // End expansion }; var eslintTypescriptDisableTypeCheckedRules = { // Begin expansion '@typescript-eslint/eslint-plugin' 'disable-type-checked' "ts/await-thenable": "off", "ts/consistent-return": "off", "ts/consistent-type-exports": "off", "ts/dot-notation": "off", "ts/naming-convention": "off", "ts/no-array-delete": "off", "ts/no-base-to-string": "off", "ts/no-confusing-void-expression": "off", "ts/no-deprecated": "off", "ts/no-duplicate-type-constituents": "off", "ts/no-floating-promises": "off", "ts/no-for-in-array": "off", "ts/no-implied-eval": "off", "ts/no-meaningless-void-operator": "off", "ts/no-misused-promises": "off", "ts/no-misused-spread": "off", "ts/no-mixed-enums": "off", "ts/no-redundant-type-constituents": "off", "ts/no-unnecessary-boolean-literal-compare": "off", "ts/no-unnecessary-condition": "off", "ts/no-unnecessary-qualifier": "off", "ts/no-unnecessary-template-expression": "off", "ts/no-unnecessary-type-arguments": "off", "ts/no-unnecessary-type-assertion": "off", "ts/no-unnecessary-type-conversion": "off", "ts/no-unnecessary-type-parameters": "off", "ts/no-unsafe-argument": "off", "ts/no-unsafe-assignment": "off", "ts/no-unsafe-call": "off", "ts/no-unsafe-enum-comparison": "off", "ts/no-unsafe-member-access": "off", "ts/no-unsafe-return": "off", "ts/no-unsafe-type-assertion": "off", "ts/no-unsafe-unary-minus": "off", "ts/non-nullable-type-assertion-style": "off", "ts/only-throw-error": "off", "ts/prefer-destructuring": "off", "ts/prefer-find": "off", "ts/prefer-includes": "off", "ts/prefer-nullish-coalescing": "off", "ts/prefer-optional-chain": "off", "ts/prefer-promise-reject-errors": "off", "ts/prefer-readonly": "off", "ts/prefer-readonly-parameter-types": "off", "ts/prefer-reduce-type-parameter": "off", "ts/prefer-regexp-exec": "off", "ts/prefer-return-this-type": "off", "ts/prefer-string-starts-ends-with": "off", "ts/promise-function-async": "off", "ts/related-getter-setter-pairs": "off", "ts/require-array-sort-compare": "off", "ts/require-await": "off", "ts/restrict-plus-operands": "off", "ts/restrict-template-expressions": "off", "ts/return-await": "off", "ts/strict-boolean-expressions": "off", "ts/switch-exhaustiveness-check": "off", "ts/unbound-method": "off", "ts/use-unknown-in-catch-callback-variable": "off" // End expansion }; // src/presets/import.ts var importRecommendedRules = { // Begin expansion 'eslint-plugin-import-x' 'recommended' "import/no-unresolved": "error", "import/named": "error", "import/namespace": "error", "import/default": "error", "import/export": "error", "import/no-named-as-default": "warn", "import/no-named-as-default-member": "warn", "import/no-duplicates": "warn" // End expansion }; var importTypescriptRules = { // Begin expansion 'eslint-plugin-import-x' 'typescript' "import/named": "off" // End expansion }; // src/presets/jsdoc.ts var jsdocCommentsRecommendedTypescriptFlavorRules = { // Begin expansion 'eslint-plugin-jsdoc' 'flat/recommended-typescript-flavor' "jsdoc/check-access": "warn", "jsdoc/check-alignment": "warn", "jsdoc/check-examples": "off", "jsdoc/check-indentation": "off", "jsdoc/check-line-alignment": "off", "jsdoc/check-param-names": "warn", "jsdoc/check-property-names": "warn", "jsdoc/check-syntax": "off", "jsdoc/check-tag-names": "warn", "jsdoc/check-template-names": "off", "jsdoc/check-types": "warn", "jsdoc/check-values": "warn", "jsdoc/convert-to-jsdoc-comments": "off", "jsdoc/empty-tags": "warn", "jsdoc/escape-inline-tags": "warn", "jsdoc/implements-on-classes": "warn", "jsdoc/imports-as-dependencies": "off", "jsdoc/informative-docs": "off", "jsdoc/lines-before-block": "off", "jsdoc/match-description": "off", "jsdoc/match-name": "off", "jsdoc/multiline-blocks": "warn", "jsdoc/no-bad-blocks": "off", "jsdoc/no-blank-block-descriptions": "off", "jsdoc/no-blank-blocks": "off", "jsdoc/no-defaults": "warn", "jsdoc/no-missing-syntax": "off", "jsdoc/no-multi-asterisks": "warn", "jsdoc/no-restricted-syntax": "off", "jsdoc/no-types": "off", "jsdoc/no-undefined-types": "off", "jsdoc/prefer-import-tag": "off", "jsdoc/reject-any-type": "warn", "jsdoc/reject-function-type": "warn", "jsdoc/require-asterisk-prefix": "off", "jsdoc/require-description": "off", "jsdoc/require-description-complete-sentence": "off", "jsdoc/require-example": "off", "jsdoc/require-file-overview": "off", "jsdoc/require-hyphen-before-param-description": "off", "jsdoc/require-jsdoc": "warn", "jsdoc/require-next-description": "off", "jsdoc/require-next-type": "warn", "jsdoc/require-param": "warn", "jsdoc/require-param-description": "warn", "jsdoc/require-param-name": "warn", "jsdoc/require-param-type": "warn", "jsdoc/require-property": "warn", "jsdoc/require-property-description": "warn", "jsdoc/require-property-name": "warn", "jsdoc/require-property-type": "warn", "jsdoc/require-rejects": "off", "jsdoc/require-returns": "warn", "jsdoc/require-returns-check": "warn", "jsdoc/require-returns-description": "warn", "jsdoc/require-returns-type": "warn", "jsdoc/require-tags": "off", "jsdoc/require-template": "off", "jsdoc/require-template-description": "off", "jsdoc/require-throws": "off", "jsdoc/require-throws-description": "off", "jsdoc/require-throws-type": "warn", "jsdoc/require-yields": "warn", "jsdoc/require-yields-check": "warn", "jsdoc/require-yields-description": "off", "jsdoc/require-yields-type": "warn", "jsdoc/sort-tags": "off", "jsdoc/tag-lines": "warn", "jsdoc/text-escaping": "off", "jsdoc/ts-method-signature-style": "off", "jsdoc/ts-no-empty-object-type": "warn", "jsdoc/ts-no-unnecessary-template-expression": "off", "jsdoc/ts-prefer-function-type": "off", "jsdoc/type-formatting": "off", "jsdoc/valid-types": "warn" // End expansion }; var jsdocCommentsRecommendedTypescriptRules = { // Begin expansion 'eslint-plugin-jsdoc' 'flat/recommended-typescript' "jsdoc/check-access": "warn", "jsdoc/check-alignment": "warn", "jsdoc/check-examples": "off", "jsdoc/check-indentation": "off", "jsdoc/check-line-alignment": "off", "jsdoc/check-param-names": "warn", "jsdoc/check-property-names": "warn", "jsdoc/check-syntax": "off", "jsdoc/check-tag-names": ["warn", { typed: true }], "jsdoc/check-template-names": "off", "jsdoc/check-types": "warn", "jsdoc/check-values": "warn", "jsdoc/convert-to-jsdoc-comments": "off", "jsdoc/empty-tags": "warn", "jsdoc/escape-inline-tags": "warn", "jsdoc/implements-on-classes": "warn", "jsdoc/imports-as-dependencies": "off", "jsdoc/informative-docs": "off", "jsdoc/lines-before-block": "off", "jsdoc/match-description": "off", "jsdoc/match-name": "off", "jsdoc/multiline-blocks": "warn", "jsdoc/no-bad-blocks": "off", "jsdoc/no-blank-block-descriptions": "off", "jsdoc/no-blank-blocks": "off", "jsdoc/no-defaults": "warn", "jsdoc/no-missing-syntax": "off", "jsdoc/no-multi-asterisks": "warn", "jsdoc/no-restricted-syntax": "off", "jsdoc/no-types": "warn", "jsdoc/no-undefined-types": "off", "jsdoc/prefer-import-tag": "off", "jsdoc/reject-any-type": "warn", "jsdoc/reject-function-type": "warn", "jsdoc/require-asterisk-prefix": "off", "jsdoc/require-description": "off", "jsdoc/require-description-complete-sentence": "off", "jsdoc/require-example": "off", "jsdoc/require-file-overview": "off", "jsdoc/require-hyphen-before-param-description": "off", "jsdoc/require-jsdoc": "warn", "jsdoc/require-next-description": "off", "jsdoc/require-next-type": "warn", "jsdoc/require-param": "warn", "jsdoc/require-param-description": "warn", "jsdoc/require-param-name": "warn", "jsdoc/require-param-type": "off", "jsdoc/require-property": "warn", "jsdoc/require-property-description": "warn", "jsdoc/require-property-name": "warn", "jsdoc/require-property-type": "off", "jsdoc/require-rejects": "off", "jsdoc/require-returns": "warn", "jsdoc/require-returns-check": "warn", "jsdoc/require-returns-description": "warn", "jsdoc/require-returns-type": "off", "jsdoc/require-tags": "off", "jsdoc/require-template": "off", "jsdoc/require-template-description": "off", "jsdoc/require-throws": "off", "jsdoc/require-throws-description": "off", "jsdoc/require-throws-type": "warn", "jsdoc/require-yields": "warn", "jsdoc/require-yields-check": "warn", "jsdoc/require-yields-description": "off", "jsdoc/require-yields-type": "warn", "jsdoc/sort-tags": "off", "jsdoc/tag-lines": "warn", "jsdoc/text-escaping": "off", "jsdoc/ts-method-signature-style": "off", "jsdoc/ts-no-empty-object-type": "warn", "jsdoc/ts-no-unnecessary-template-expression": "off", "jsdoc/ts-prefer-function-type": "off", "jsdoc/type-formatting": "off", "jsdoc/valid-types": "warn" // End expansion }; // src/presets/json.ts var jsonRecommendedWithJsonCommonRules = { // Begin expansion 'eslint-plugin-jsonc' 'flat/recommended-with-json[1]' strict: "off", "no-unused-expressions": "off", "no-unused-vars": "off" // End expansion }; var jsonRecommendedWithJsonRules = { // Begin expansion 'eslint-plugin-jsonc' 'flat/recommended-with-json[2]' "json/comma-dangle": "error", "json/no-bigint-literals": "error", "json/no-binary-expression": "error", "json/no-binary-numeric-literals": "error", "json/no-comments": "error", "json/no-dupe-keys": "error", "json/no-escape-sequence-in-identifier": "error", "json/no-floating-decimal": "error", "json/no-hexadecimal-numeric-literals": "error", "json/no-infinity": "error", "json/no-multi-str": "error", "json/no-nan": "error", "json/no-number-props": "error", "json/no-numeric-separators": "error", "json/no-octal-numeric-literals": "error", "json/no-octal": "error", "json/no-parenthesized": "error", "json/no-plus-sign": "error", "json/no-regexp-literals": "error", "json/no-sparse-arrays": "error", "json/no-template-literals": "error", "json/no-undefined-value": "error", "json/no-unicode-codepoint-escapes": "error", "json/no-useless-escape": "error", "json/quote-props": "error", "json/quotes": "error", "json/space-unary-ops": "error", "json/valid-json-number": "error", "json/vue-custom-block/no-parsing-error": "error" // End expansion }; var jsonRecommendedWithJsoncRules = { // Begin expansion 'eslint-plugin-jsonc' 'flat/recommended-with-jsonc[2]' "json/no-bigint-literals": "error", "json/no-binary-expression": "error", "json/no-binary-numeric-literals": "error", "json/no-dupe-keys": "error", "json/no-escape-sequence-in-identifier": "error", "json/no-floating-decimal": "error", "json/no-hexadecimal-numeric-literals": "error", "json/no-infinity": "error", "json/no-multi-str": "error", "json/no-nan": "error", "json/no-number-props": "error", "json/no-numeric-separators": "error", "json/no-octal-numeric-literals": "error", "json/no-octal": "error", "json/no-parenthesized": "error", "json/no-plus-sign": "error", "json/no-regexp-literals": "error", "json/no-sparse-arrays": "error", "json/no-template-literals": "error", "json/no-undefined-value": "error", "json/no-unicode-codepoint-escapes": "error", "json/no-useless-escape": "error", "json/quote-props": "error", "json/quotes": "error", "json/space-unary-ops": "error", "json/valid-json-number": "error", "json/vue-custom-block/no-parsing-error": "error" // End expansion }; var jsonRecommendedWithJson5Rules = { // Begin expansion 'eslint-plugin-jsonc' 'flat/recommended-with-json5[2]' "json/no-bigint-literals": "error", "json/no-binary-expression": "error", "json/no-binary-numeric-literals": "error", "json/no-dupe-keys": "error", "json/no-escape-sequence-in-identifier": "error", "json/no-number-props": "error", "json/no-numeric-separators": "error", "json/no-octal-numeric-literals": "error", "json/no-octal": "error", "json/no-parenthesized": "error", "json/no-regexp-literals": "error", "json/no-sparse-arrays": "error", "json/no-template-literals": "error", "json/no-undefined-value": "error", "json/no-unicode-codepoint-escapes": "error", "json/no-useless-escape": "error", "json/space-unary-ops": "error", "json/vue-custom-block/no-parsing-error": "error" // End expansion }; var jsonPrettierRules = { // Begin expansion 'eslint-plugin-jsonc' 'flat/prettier[2]' "json/array-bracket-newline": "off", "json/array-bracket-spacing": "off", "json/array-element-newline": "off", "json/comma-dangle": "off", "json/comma-style": "off", "json/indent": "off", "json/key-spacing": "off", "json/no-floating-decimal": "off", "json/object-curly-newline": "off", "json/object-curly-spacing": "off", "json/object-property-newline": "off", "json/quote-props": "off", "json/quotes": "off", "json/space-unary-ops": "off" // End expansion }; // src/presets/json-package.ts var jsonPackageRecommendedRules = { // Begin expansion 'eslint-plugin-package-json' 'configs.recommended.rules' "json-package/no-empty-fields": "error", "json-package/no-redundant-files": "error", "json-package/no-redundant-publishConfig": "error", "json-package/order-properties": "error", "json-package/require-description": "error", "json-package/require-license": "error", "json-package/require-name": "error", "json-package/require-type": "error", "json-package/require-version": "error", "json-package/repository-shorthand": "error", "json-package/sort-collections": "error", "json-package/specify-peers-locally": "error", "json-package/unique-dependencies": "error", "json-package/valid-author": "error", "json-package/valid-bin": "error", "json-package/valid-bundleDependencies": "error", "json-package/valid-config": "error", "json-package/valid-contributors": "error", "json-package/valid-cpu": "error", "json-package/valid-description": "error", "json-package/valid-dependencies": "error", "json-package/valid-devDependencies": "error", "json-package/valid-directories": "error", "json-package/valid-engines": "error", "json-package/valid-exports": "error", "json-package/valid-files": "error", "json-package/valid-homepage": "error", "json-package/valid-keywords": "error", "json-package/valid-license": "error", "json-package/valid-main": "error", "json-package/valid-man": "error", "json-package/valid-optionalDependencies": "error", "json-package/valid-os": "error", "json-package/valid-peerDependencies": "error", "json-package/valid-private": "error", "json-package/valid-publishConfig": "error", "json-package/valid-repository": "error", "json-package/valid-scripts": "error", "json-package/valid-sideEffects": "error", "json-package/valid-type": "error", "json-package/valid-workspaces": "error", "json-package/valid-name": "error", "json-package/valid-repository-directory": "error", "json-package/valid-version": "error" // End expansion }; // src/presets/jsx.ts var jsxA11yRecommendedRules = { // Begin expansion 'eslint-plugin-jsx-a11y' 'flatConfigs.recommended.rules' "jsx-a11y/alt-text": "error", "jsx-a11y/anchor-ambiguous-text": "off", "jsx-a11y/anchor-has-content": "error", "jsx-a11y/anchor-is-valid": "error", "jsx-a11y/aria-activedescendant-has-tabindex": "error", "jsx-a11y/aria-props": "error", "jsx-a11y/aria-proptypes": "error", "jsx-a11y/aria-role": "error", "jsx-a11y/aria-unsupported-elements": "error", "jsx-a11y/autocomplete-valid": "error", "jsx-a11y/click-events-have-key-events": "error", "jsx-a11y/control-has-associated-label": [ "off", { ignoreElements: ["audio", "canvas", "embed", "input", "textarea", "tr", "video"], ignoreRoles: [ "grid", "listbox", "menu", "menubar", "radiogroup", "row", "tablist", "toolbar", "tree", "treegrid" ], includeRoles: ["alert", "dialog"] } ], "jsx-a11y/heading-has-content": "error", "jsx-a11y/html-has-lang": "error", "jsx-a11y/iframe-has-title": "error", "jsx-a11y/img-redundant-alt": "error", "jsx-a11y/interactive-supports-focus": [ "error", { tabbable: ["button", "checkbox", "link", "searchbox", "spinbutton", "switch", "textbox"] } ], "jsx-a11y/label-has-associated-control": "error", "jsx-a11y/label-has-for": "off", "jsx-a11y/media-has-caption": "error", "jsx-a11y/mouse-events-have-key-events": "error", "jsx-a11y/no-access-key": "error", "jsx-a11y/no-autofocus": "error", "jsx-a11y/no-distracting-elements": "error", "jsx-a11y/no-interactive-element-to-noninteractive-role": [ "error", { tr: ["none", "presentation"], canvas: ["img"] } ], "jsx-a11y/no-noninteractive-element-interactions": [ "error", { handlers: [ "onClick", "onError", "onLoad", "onMouseDown", "onMouseUp", "onKeyPress", "onKeyDown", "onKeyUp" ], alert: ["onKeyUp", "onKeyDown", "onKeyPress"], body: ["onError", "onLoad"], dialog: ["onKeyUp", "onKeyDown", "onKeyPress"], iframe: ["onError", "onLoad"], img: ["onError", "onLoad"] } ], "jsx-a11y/no-noninteractive-element-to-interactive-role": [ "error", { ul: ["listbox", "menu", "menubar", "radiogroup", "tablist", "tree", "treegrid"], ol: ["listbox", "menu", "menubar", "radiogroup", "tablist", "tree", "treegrid"], li: ["menuitem", "menuitemradio", "menuitemcheckbox", "option", "row", "tab", "treeitem"], table: ["grid"], td: ["gridcell"], fieldset: ["radiogroup", "presentation"] } ], "jsx-a11y/no-noninteractive-tabindex": [ "error", { tags: [], roles: ["tabpanel"], allowExpressionValues: true } ], "jsx-a11y/no-redundant-roles": "error", "jsx-a11y/no-static-element-interactions": [ "error", { allowExpressionValues: true, handlers: ["onClick", "onMouseDown", "onMouseUp", "onKeyPress", "onKeyDown", "onKeyUp"] } ], "jsx-a11y/role-has-required-aria-props": "error", "jsx-a11y/role-supports-aria-props": "error", "jsx-a11y/scope": "error", "jsx-a11y/tabindex-no-positive": "error" // End expansion }; // src/presets/node.ts var nodeRecommendedRules = { // Begin expansion 'eslint-plugin-n' 'flat/recommended' "node/no-deprecated-api": "error", "node/no-exports-assign": "error", "node/no-extraneous-import": "error", "node/no-extraneous-require": "error", "node/no-missing-import": "error", "node/no-missing-require": "error", "node/no-process-exit": "error", "node/no-unpublished-bin": "error", "node/no-unpublished-import": "error", "node/no-unpublished-require": "error", "node/no-unsupported-features/es-builtins": "error", "node/no-unsupported-features/es-syntax": ["error", { ignores: ["modules"] }], "node/no-unsupported-features/node-builtins": "error", "node/process-exit-as-throw": "error", "node/hashbang": "error" // End expansion }; // src/presets/perfectionist.ts var perfectionistRecommendedNaturalRules = { // Begin expansion 'eslint-plugin-perfectionist' 'recommended-natural' "perfectionist/sort-variable-declarations": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-intersection-types": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-heritage-clauses": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-array-includes": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-named-imports": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-named-exports": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-object-types": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-union-types": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-switch-case": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-decorators": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-interfaces": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-jsx-props": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-modules": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-classes": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-imports": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-exports": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-objects": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-enums": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-sets": ["error", { type: "natural", order: "asc" }], "perfectionist/sort-maps": ["error", { type: "natural", order: "asc" }] // End expansion }; // src/presets/prettier.ts var prettierRules = { // Begin expansion 'eslint-config-prettier' 'rules' curly: 0, "no-unexpected-multiline": 0, // "@stylistic/lines-around-comment":0, // "@stylistic/max-len":0, // "@stylistic/no-confusing-arrow":0, // "@stylistic/no-mixed-operators":0, // "@stylistic/no-tabs":0, // "@stylistic/quotes":0, // "@stylistic/js/lines-around-comment":0, // "@stylistic/js/max-len":0, // "@stylistic/js/no-confusing-arrow":0, // "@stylistic/js/no-mixed-operators":0, // "@stylistic/js/no-tabs":0, // "@stylistic/js/quotes":0, // "@stylistic/ts/lines-around-comment":0, // "@stylistic/ts/quotes":0, "ts/lines-around-comment": 0, "ts/quotes": 0, "babel/quotes": 0, "unicorn/template-indent": 0, "vue/html-self-closing": 0, "vue/max-len": 0, "@babel/object-curly-spacing": "off", "@babel/semi": "off", // "@stylistic/array-bracket-newline":"off", // "@stylistic/array-bracket-spacing":"off", // "@stylistic/array-element-newline":"off", // "@stylistic/arrow-parens":"off", // "@stylistic/arrow-spacing":"off", // "@stylistic/block-spacing":"off", // "@stylistic/brace-style":"off", // "@stylistic/comma-dangle":"off", // "@stylistic/comma-spacing":"off", // "@stylistic/comma-style":"off", // "@stylistic/computed-property-spacing":"off", // "@stylistic/dot-location":"off", // "@stylistic/eol-last":"off", // "@stylistic/func-call-spacing":"off", // "@stylistic/function-call-argument-newline":"off", // "@stylistic/function-call-spacing":"off", // "@stylistic/function-paren-newline":"off", // "@stylistic/generator-star-spacing":"off", // "@stylistic/implicit-arrow-linebreak":"off", // "@stylistic/indent":"off", // "@stylistic/jsx-quotes":"off", // "@stylistic/key-spacing":"off", // "@stylistic/keyword-spacing":"off", // "@stylistic/linebreak-style":"off", // "@stylistic/max-statements-per-line":"off", // "@stylistic/multiline-ternary":"off", // "@stylistic/new-parens":"off", // "@stylistic/newline-per-chained-call":"off", // "@stylistic/no-extra-parens":"off", // "@stylistic/no-extra-semi":"off", // "@stylistic/no-floating-decimal":"off", // "@stylistic/no-mixed-spaces-and-tabs":"off", // "@stylistic/no-multi-spaces":"off", // "@stylistic/no-multiple-empty-lines":"off", // "@stylistic/no-trailing-spaces":"off", // "@stylistic/no-whitespace-before-property":"off", // "@stylistic/nonblock-statement-body-position":"off", // "@stylistic/object-curly-newline":"off", // "@stylistic/object-curly-spacing":"off", // "@stylistic/object-property-newline":"off", // "@stylistic/one-var-declaration-per-line":"off", // "@stylistic/operator-linebreak":"off", // "@stylistic/padded-blocks":"off", // "@stylistic/quote-props":"off", // "@stylistic/rest-spread-spacing":"off", // "@stylistic/semi":"off", // "@stylistic/semi-spacing":"off", // "@stylistic/semi-style":"off", // "@stylistic/space-before-blocks":"off", // "@stylistic/space-before-function-paren":"off", // "@stylistic/space-in-parens":"off", // "@stylistic/space-infix-ops":"off", // "@stylistic/space-unary-ops":"off", // "@stylistic/switch-colon-spacing":"off", // "@stylistic/template-curly-spacing":"off", // "@stylistic/template-tag-spacing":"off", // "@stylistic/wrap-iife":"off", // "@stylistic/wrap-regex":"off", // "@stylistic/yield-star-spacing":"off", // "@stylistic/member-delimiter-style":"off", // "@stylistic/type-annotation-spacing":"off", // "@stylistic/jsx-child-element-spacing":"off", // "@stylistic/jsx-closing-bracket-location":"off", // "@stylistic/jsx-closing-tag-location":"off", // "@stylistic/jsx-curly-newline":"off", // "@stylistic/jsx-curly-spacing":"off", // "@stylistic/jsx-equals-spacing":"off", // "@stylistic/jsx-first-prop-new-line":"off", // "@stylistic/jsx-indent":"off", // "@stylistic/jsx-indent-props":"off", // "@stylistic/jsx-max-props-per-line":"off", // "@stylistic/jsx-newline":"off", // "@stylistic/jsx-one-expression-per-line":"off", // "@stylistic/jsx-props-no-multi-spaces":"off", // "@stylistic/jsx-tag-spacing":"off", // "@stylistic/jsx-wrap-multilines":"off", // "@stylistic/indent-binary-ops":"off", // "@stylistic/type-generic-spacing":"off", // "@stylistic/type-named-tuple-spacing":"off", // "@stylistic/js/array-bracket-newline":"off", // "@stylistic/js/array-bracket-spacing":"off", // "@stylistic/js/array-element-newline":"off", // "@stylistic/js/arrow-parens":"off", // "@stylistic/js/arrow-spacing":"off", // "@stylistic/js/block-spacing":"off", // "@stylistic/js/brace-style":"off", // "@stylistic/js/comma-dangle":"off", // "@stylistic/js/comma-spacing":"off", // "@stylistic/js/comma-style":"off", // "@stylistic/js/computed-property-spacing":"off", // "@stylistic/js/dot-location":"off", // "@stylistic/js/eol-last":"off", // "@stylistic/js/func-call-spacing":"off", // "@stylistic/js/function-call-argument-newline":"off", // "@stylistic/js/function-call-spacing":"off", // "@stylistic/js/function-paren-newline":"off", // "@stylistic/js/generator-star-spacing":"off", // "@stylistic/js/implicit-arrow-linebreak":"off", // "@stylistic/js/indent":"off", // "@stylistic/js/jsx-quotes":"off", // "@stylistic/js/key-spacing":"off", // "@stylistic/js/keyword-spacing":"off", // "@stylistic/js/linebreak-style":"off", // "@stylistic/js/max-statements-per-line":"off", // "@stylistic/js/multiline-ternary":"off", // "@stylistic/js/new-parens":"off", // "@stylistic/js/newline-per-chained-call":"off", // "@stylistic/js/no-extra-parens":"off", // "@stylistic/js/no-extra-semi":"off", // "@stylistic/js/no-floating-decimal":"off", // "@stylistic/js/no-mixed-spaces-and-tabs":"off", // "@stylistic/js/no-multi-spaces":"off", // "@stylistic/js/no-multiple-empty-lines":"off", // "@stylistic/js/no-trailing-spaces":"off", // "@stylistic/js/no-whitespace-before-property":"off", // "@stylistic/js/nonblock-statement-body-position":"off", // "@stylistic/js/object-curly-newline":"off", // "@stylistic/js/object-curly-spacing":"off", // "@stylistic/js/object-property-newline":"off", // "@stylistic/js/one-var-declaration-per-line":"off", // "@stylistic/js/operator-linebreak":"off", // "@stylistic/js/padded-blocks":"off", // "@stylistic/js/quote-props":"off", // "@stylistic/js/rest-spread-spacing":"off", // "@stylistic/js/semi":"off", // "@stylistic/js/semi-spacing":"off", // "@stylistic/js/semi-style":"off", // "@stylistic/js/space-before-blocks":"off", // "@stylistic/js/space-before-function-paren":"off", // "@stylistic/js/space-in-parens":"off", // "@stylistic/js/space-infix-ops":"off", // "@stylistic/js/space-unary-ops":"off", // "@stylistic/js/switch-colon-spacing":"off", // "@stylistic/js/template-curly-spacing":"off", // "@stylistic/js/template-tag-spacing":"off", // "@stylistic/js/wrap-iife":"off", // "@stylistic/js/wrap-regex":"off", // "@stylistic/js/yield-star-spacing":"off", // "@stylistic/ts/block-spacing":"off", // "@stylistic/ts/brace-style":"off", // "@stylistic/ts/comma-dangle":"off", // "@stylistic/ts/comma-spacing":"off", // "@stylistic/ts/func-call-spacing":"off", // "@stylistic/ts/function-call-spacing":"off", // "@stylistic/ts/indent":"off", // "@stylistic/ts/key-spacing":"off", // "@stylistic/ts/keyword-spacing":"off", // "@stylistic/ts/member-delimiter-style":"off", // "@stylistic/ts/no-extra-parens":"off", // "@stylistic/ts/no-extra-semi":"off", // "@stylistic/ts/object-curly-spacing":"off", // "@stylistic/ts/semi":"off", // "@stylistic/ts/space-before-blocks":"off", // "@stylistic/ts/space-before-function-paren":"off", // "@stylistic/ts/space-infix-ops":"off", // "@stylistic/ts/type-annotation-spacing":"off", // "@stylistic/jsx/jsx-child-element-spacing":"off", // "@stylistic/jsx/jsx-closing-bracket-location":"off", // "@stylistic/jsx/jsx-closing-tag-location":"off", // "@stylistic/jsx/jsx-curly-newline":"off", // "@stylistic/jsx/jsx-curly-spacing":"off", // "@stylistic/jsx/jsx-equals-spacing":"off", // "@stylistic/jsx/jsx-first-prop-new-line":"off", // "@stylistic/jsx/jsx-indent":"off", // "@stylistic/jsx/jsx-indent-props":"off", // "@stylistic/jsx/jsx-max-props-per-line":"off", "ts/block-spacing": "off", "ts/brace-style": "off", "ts/comma-dangle": "off", "ts/comma-spacing": "off", "ts/func-call-spacing": "off", "ts/indent": "off", "ts/key-spacing": "off", "ts/keyword-spacing": "off", "ts/member-delimiter-style": "off", "ts/no-extra-parens": "off", "ts/no-extra-semi": "off", "ts/object-curly-spacing": "off", "ts/semi": "off", "ts/space-before-blocks": "off", "ts/space-before-function-paren": "off", "ts/space-infix-ops": "off", "ts/type-annotation-spacing": "off", "babel/object-curly-spacing": "off", "babel/semi": "off", "flowtype/boolean-style": "off", "flowtype/delimiter-dangle": "off", "flowtype/generic-spacing": "off", "flowtype/object-type-curly-spacing": "off", "flowtype/object-type-delimiter": "off", "flowtype/quotes": "off", "flowtype/semi": "off", "flowtype/space-after-type-colon": "off", "flowtype/space-before-generic-bracket": "off", "flowtype/space-before-type-colon": "off", "flowtype/union-intersection-spacing": "off", "react/jsx-child-element-spacing": "off", "react/jsx-closing-bracket-location": "off", "react/jsx-closing-tag-location": "off", "react/jsx-curly-newline": "off", "react/jsx-curly-spacing": "off", "react/jsx-equals-spacing": "off", "react/jsx-first-prop-new-line": "off", "react/jsx-indent": "off", "react/jsx-indent-props": "off", "react/jsx-max-props-per-line": "off", "react/jsx-newline": "off", "react/jsx-one-expression-per-line": "off", "react/jsx-props-no-multi-spaces": "off", "react/jsx-tag-spacing": "off", "react/jsx-wrap-multilines": "off", "standard/array-bracket-even-spacing": "off", "standard/computed-property-even-spacing": "off", "standard/object-curly-even-spacing": "off", "unicorn/empty-brace-spaces": "off", "unicorn/no-nested-ternary": "off", "unicorn/number-literal-case": "off", "vue/array-bracket-newline": "off", "vue/array-bracket-spacing": "off", "vue/array-element-newline": "off", "vue/arrow-spacing": "off", "vue/block-spacing": "off", "vue/block-tag-newline": "off", "vue/brace-style": "off", "vue/comma-dangle": "off", "vue/comma-spacing": "off", "vue/comma-style": "off", "vue/dot-location": "off", "vue/func-call-spacing": "off", "vue/html-closing-bracket-newline": "off", "vue/html-closing-bracket-spacing": "off", "vue/html-end-tags": "off", "vue/html-indent": "off", "vue/html-quotes": "off", "vue/key-spacing": "off", "vue/keyword-spacing": "off", "vue/max-attributes-per-line": "off", "vue/multiline-html-element-content-newline": "off", "vue/multiline-ternary": "off", "vue/mustache-interpolation-spacing": "off", "vue/no-extra-parens": "off", "vue/no-multi-spaces": "off", "vue/no-spaces-around-equal-signs-in-attribute": "off", "vue/object-curly-newline": "off", "vue/object-curly-spacing": "off", "vue/object-property-newline": "off", "vue/operator-linebreak": "off", "vue/quote-props": "off", "vue/script-indent": "off", "vue/singleline-html-element-content-newline": "off", "vue/space-in-parens": "off", "vue/space-infix-ops": "off", "vue/space-unary-ops": "off", "vue/template-curly-spacing": "off", "space-unary-word-ops": "off", "generator-star": "off", "no-comma-dangle": "off", "no-reserved-keys": "off", "no-space-before-semi": "off", "no-wrap-func": "off", "space-after-function-name": "off", "space-before-function-parentheses": "off", "space-in-brackets": "off", "no-arrow-condition": "off", "space-after-keywords": "off", "space-before-keywords": "off", "space-return-throw-case": "off", "no-spaced-func": "off", "indent-legacy": "off", "array-bracket-newline": "off", "array-bracket-spacing": "off", "array-element-newline": "off", "arrow-parens": "off", "arrow-spacing": "off", "block-spacing": "off", "brace-style": "off", "comma-dangle": "off", "comma-spacing": "off", "comma-style": "off", "computed-property-spacing": "off", "dot-location": "off", "eol-last": "off", "func-call-spacing": "off", "function-call-argument-newline": "off", "function-paren-newline": "off", "generator-star-spacing": "off", "implicit-arrow-linebreak": "off", indent: "off", "jsx-quotes": "off", "key-spacing": "off", "keyword-spacing": "off", "linebreak-style": "off", "lines-around-comment": 0, "max-len": 0, "max-statements-per-line": "off", "multiline-ternary": "off", "new-parens": "off", "newline-per-chained-call": "off", "no-confusing-arrow": 0, "no-extra-parens": "off", "no-extra-semi": "off", "no-floating-decimal": "off", "no-mixed-operators": 0, "no-mixed-spaces-and-tabs": "off", "no-multi-spaces": "off", "no-multiple-empty-lines": "off", "no-tabs": 0, "no-trailing-spaces": "off", "no-whitespace-before-property": "off", "nonblock-statement-body-position": "off", "object-curly-newline": "off", "object-curly-spacing": "off", "object-property-newline": "off", "one-var-declaration-per-line": "off", "operator-linebreak": "off", "padded-blocks": "off", "quote-props": "off", quotes: 0, "rest-spread-spacing": "off", semi: "off", "semi-spacing": "off", "semi-style": "off", "space-before-blocks": "off", "space-before-function-paren": "off", "space-in-parens": "off", "space-infix-ops": "off", "space-unary-ops": "off", "switch-colon-spacing": "off", "template-curly-spacing": "off", "template-tag-spacing": "off", "wrap-iife": "off", "wrap-regex": "off", "yield-star-spacing": "off", "react/jsx-space-before-closing": "off" // End expansion }; // src/presets/react.ts var reactRecommendedTypeCheckedRules = { // Begin expansion '@eslint-react/eslint-plugin' 'recommended-type-checked' "react/jsx-no-comment-textnodes": "warn", "react/jsx-no-duplicate-props": "off", "react/jsx-uses-react": "off", "react/jsx-uses-vars": "off", "react/no-access-state-in-setstate": "error", "react/no-arr