1+ import eslint from "@eslint/js"
2+ import eslintConfigPrettier from "eslint-config-prettier"
3+ import eslintPluginVue from "eslint-plugin-vue"
4+ import globals from "globals"
5+ import typescriptEslint from "typescript-eslint"
6+
7+ export default typescriptEslint . config (
8+ {
9+ ignores : [
10+ "*.d.ts" ,
11+ "**/coverage" ,
12+ "**/dist" ,
13+ "assets/" ,
14+ "src/dev.ts" ,
15+ ] ,
16+ } ,
17+ {
18+ extends : [
19+ eslint . configs . recommended ,
20+ ...typescriptEslint . configs . recommended ,
21+ ...eslintPluginVue . configs [ "flat/recommended" ] ,
22+ ] ,
23+ files : [ "**/*.{ts,vue}" ] ,
24+ languageOptions : {
25+ ecmaVersion : "latest" ,
26+ sourceType : "module" ,
27+ globals : globals . browser ,
28+ parserOptions : { parser : typescriptEslint . parser } ,
29+ } ,
30+ rules : {
31+ "@typescript-eslint/no-explicit-any" : "off" , // Allow the use of `any`
32+ "@typescript-eslint/no-unused-vars" : [
33+ "error" ,
34+ {
35+ args : "all" ,
36+ argsIgnorePattern : "^_" ,
37+ varsIgnorePattern : "^_" ,
38+ caughtErrorsIgnorePattern : "^_" ,
39+ } ,
40+ ] ,
41+ "vue/multi-word-component-names" : "off" , // Disable multi-word component names rule
42+ "vue/require-default-prop" : "off" , // Disable requiring default props
43+ "vue/no-v-html" : "off" , // Allow v-html usage (if needed)
44+ } ,
45+ } ,
46+ eslintConfigPrettier
47+ )
0 commit comments