-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
48 lines (48 loc) · 1.29 KB
/
.eslintrc
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
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"plugins": ["vue", "@typescript-eslint"],
"rules": {
"quotes": ["warn", "double"],
"indent": ["warn", 2],
"vue/script-indent": ["warn", 2, { "baseIndent": 1 }],
"semi": ["warn", "always"],
"vue/no-multiple-template-root": "off",
"vue/singleline-html-element-content-newline": "off",
"space-before-function-paren": "off",
"prefer-promise-reject-errors": ["error", { "allowEmptyReject": true }],
"@typescript-eslint/ban-ts-comment": "off",
"vue/max-attributes-per-line": [ "warn", { "singleline": { "max": 6 } }],
"object-curly-spacing": ["warn", "always"],
},
"ignorePatterns": ["**/*.svg"],
"overrides": [
{
"files": ["*.vue"],
"rules": { "indent": "off" }
},
{
"files": ["src/pages/**/*.vue", "src/layouts/**/*.vue"],
"rules": { "vue/multi-word-component-names": "off" }
},
{
"files": ["*.ts"],
"rules": { "semi": "off" }
}
]
}