-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.json
38 lines (38 loc) · 916 Bytes
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:vue/essential", "standard", "prettier"],
"parserOptions": {
"ecmaVersion": 12,
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
}
},
"plugins": ["vue", "@typescript-eslint"],
"rules": {
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": ["@/lib**"],
"message": "Do not import from the lib folder"
}
]
}
],
"no-use-before-define": "off",
// buggy, and typescript does it better. https://github.com/typescript-eslint/typescript-eslint/issues/2528
"no-undef": "off",
// our engine uses eval
"no-eval": "off",
"no-unused-vars": "warn",
"vue/no-multiple-template-root": "off"
}
}