-
-
Notifications
You must be signed in to change notification settings - Fork 94
/
eslint.config.js
45 lines (44 loc) · 1 KB
/
eslint.config.js
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
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
import vueParser from "vue-eslint-parser";
export default tseslint.config(
{
extends: [eslint.configs.recommended],
files: ["**/*{.js,.ts,.vue}"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
},
{
extends: [...tseslint.configs.recommended],
files: ["**/*{.ts,.vue}"],
languageOptions: {
parser: tseslint.parser,
},
},
{
ignores: ["**/src/devtools/generated", "**/dist"],
},
{
extends: [...pluginVue.configs["flat/base"]],
files: ["**/*.vue"],
languageOptions: {
parser: vueParser,
parserOptions: {
parser: tseslint.parser,
},
ecmaVersion: "latest",
},
rules: {
"vue/multi-word-component-names": [
"error",
{
ignores: ["Layout"],
},
],
},
},
{ ignores: ["src/.vitepress/cache/**", "src/.vitepress/dist/**"] },
);