2025-05-07 12:06:07 -04:00
|
|
|
import pluginVue from "eslint-plugin-vue";
|
|
|
|
|
import { defineConfigWithVueTs, vueTsConfigs } from "@vue/eslint-config-typescript";
|
|
|
|
|
|
|
|
|
|
import skipFormattingConfig from "@vue/eslint-config-prettier/skip-formatting";
|
|
|
|
|
|
|
|
|
|
export default defineConfigWithVueTs(
|
2026-03-23 18:41:11 -04:00
|
|
|
pluginVue.configs["flat/recommended-error"],
|
2025-05-07 12:06:07 -04:00
|
|
|
vueTsConfigs.recommended,
|
|
|
|
|
skipFormattingConfig,
|
|
|
|
|
{
|
2025-12-04 22:25:48 -06:00
|
|
|
ignores: ["**/dist/**", "playwright-report"]
|
2025-05-07 12:06:07 -04:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
//extends: ["js/recommended"],
|
|
|
|
|
rules: {
|
|
|
|
|
quotes: ["error", "double"],
|
|
|
|
|
"comma-dangle": ["error", "never"],
|
|
|
|
|
|
|
|
|
|
"comma-spacing": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
before: false,
|
|
|
|
|
after: true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
semi: ["error", "always"],
|
|
|
|
|
"eol-last": "error",
|
2026-03-23 18:41:11 -04:00
|
|
|
eqeqeq: "error",
|
|
|
|
|
"no-useless-concat": "error",
|
2025-05-07 12:06:07 -04:00
|
|
|
"object-curly-spacing": ["error", "always"],
|
|
|
|
|
"quote-props": ["error", "as-needed"],
|
|
|
|
|
"no-case-declarations": "off",
|
2026-03-23 18:41:11 -04:00
|
|
|
"vue/eqeqeq": "error",
|
|
|
|
|
"vue/no-useless-concat": "error",
|
|
|
|
|
"vue/no-constant-condition": "error",
|
|
|
|
|
"vue/no-empty-pattern": "error",
|
|
|
|
|
"vue/no-undef-directives": "error",
|
|
|
|
|
"vue/no-undef-properties": "error",
|
|
|
|
|
"vue/no-unused-properties": "error",
|
|
|
|
|
"vue/no-unused-refs": "error",
|
|
|
|
|
"vue/no-use-v-else-with-v-for": "error",
|
|
|
|
|
"vue/no-useless-mustaches": "error",
|
|
|
|
|
"vue/no-useless-v-bind": "error",
|
2025-05-07 12:06:07 -04:00
|
|
|
"vue/require-default-prop": "off",
|
2026-03-23 18:41:11 -04:00
|
|
|
"vue/v-for-delimiter-style": "error",
|
2025-05-07 12:06:07 -04:00
|
|
|
"vue/v-on-event-hyphenation": "off",
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
|
"vue/valid-v-slot": ["error", { allowModifiers: true }]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
);
|