27 lines
846 B
JavaScript
27 lines
846 B
JavaScript
import pluginVue from "eslint-plugin-vue";
|
|
import tseslint from "typescript-eslint";
|
|
import prettierConfig from "@vue/eslint-config-prettier";
|
|
|
|
// No filesystem glob dependency: Vue and TypeScript parsers share flat configs.
|
|
export default tseslint.config(
|
|
{ ignores: ["**/dist/**", "**/dist-ssr/**", "**/coverage/**"] },
|
|
...tseslint.configs.recommended,
|
|
...pluginVue.configs["flat/essential"],
|
|
{
|
|
files: ["**/*.vue"],
|
|
languageOptions: {
|
|
parserOptions: { parser: tseslint.parser, extraFileExtensions: [".vue"] },
|
|
},
|
|
},
|
|
prettierConfig,
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"vue/block-lang": "off",
|
|
"vue/multi-word-component-names": "off",
|
|
"vue/no-mutating-props": ["error", { shallowOnly: true }],
|
|
},
|
|
}
|
|
);
|