-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy patheslint.config.mjs
More file actions
73 lines (64 loc) · 2.12 KB
/
eslint.config.mjs
File metadata and controls
73 lines (64 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import jsPlugin from "@eslint/js";
import vueI18nPlugin from "@intlify/eslint-plugin-vue-i18n";
import tsParser from "@typescript-eslint/parser";
import vuePlugin from "eslint-plugin-vue";
import tsPlugin from "typescript-eslint";
import vueParser from "vue-eslint-parser";
export default [
{
ignores: [
"**/node_modules",
"**/dist",
"**/coverage",
"**/docs",
"src/components/ui",
"**/*.json"
]
},
jsPlugin.configs.recommended,
...tsPlugin.configs.recommended,
...vueI18nPlugin.configs.recommended,
...vuePlugin.configs["flat/essential"],
{
languageOptions: {
globals: {
BigInt: true,
console: true,
WebAssembly: true,
chrome: true,
process: true
},
parser: vueParser,
ecmaVersion: "latest",
sourceType: "module",
parserOptions: { parser: tsParser }
},
settings: {
"vue-i18n": {
localeDir: "./src/i18n/locales/*.json",
messageSyntaxVersion: "^11.1.2"
}
},
rules: {
"no-console": "error",
"no-undef": "off", // TypeScript's compiler already enforces this check. https://eslint.org/docs/latest/rules/no-undef#handled_by_typescript
"sort-imports": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"vue/component-api-style": ["warn", ["script-setup", "composition"]],
"vue/multi-word-component-names": "off",
"@intlify/vue-i18n/no-missing-keys": "error",
"@intlify/vue-i18n/no-raw-text": "warn",
"@intlify/vue-i18n/no-unused-keys": "off",
"@intlify/vue-i18n/no-deprecated-i18n-component": "off",
"@intlify/vue-i18n/no-deprecated-i18n-place-attr": "off",
"@intlify/vue-i18n/no-deprecated-i18n-places-prop": "off",
"@intlify/vue-i18n/no-deprecated-modulo-syntax": "off",
"@intlify/vue-i18n/no-deprecated-tc": "off",
"@intlify/vue-i18n/no-deprecated-v-t": "off",
"@intlify/vue-i18n/no-html-messages": "off",
"@intlify/vue-i18n/no-i18n-t-path-prop": "off",
"@intlify/vue-i18n/no-v-html": "off",
"@intlify/vue-i18n/valid-message-syntax": "off"
}
}
];