-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
79 lines (79 loc) · 2.15 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
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
74
75
76
77
78
79
// {
// "root": true,
// "env": {
// "browser": true,
// "node": true,
// "es6": true
// },
// "extends": [
// "plugin:vue/vue3-essential",
// "@antfu",
// "@unocss"
// ],
// "plugins": ["vue"],
// "parserOptions": {
// "ecmaVersion": 2020,
// "sourceType": "module",
// "parser": "@typescript-eslint/eslint-plugin"
// },
// "rules": {
// // vue
// "vue/multi-word-component-names": ["off", {}],
// "vue/no-mutating-props": ["warn", {
// "shallowOnly": false
// }],
// // base
// "no-console": "off",
// "no-multiple-empty-lines": ["warn", { "max": 2, "maxBOF": 1 }],// 空行
// "semi": ["error", "always"], // 结尾;
// "quotes": ["error", "double"], // 双引号
// "no-trailing-spaces": "error",
// // ts
// "@typescript-eslint/indent": "off",
// "@typescript-eslint/semi": "off",
// "@typescript-eslint/ban-ts-comment": "off",
// "@typescript-eslint/quotes": ["error", "double"], // 双引号
// "prefer-promise-reject-errors": "off",
// "no-tabs": ["error", { "allowIndentationTabs": true }],
// // css
// "@stylistic/js/no-tabs": "off"
// }
// };
{
"root": true,
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"@antfu",
"@unocss",
"plugin:vue/vue3-essential"
],
"plugins": ["vue"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"parser": "@typescript-eslint/parser"
},
"rules": {
// vue
"@stylistic/js/no-tabs": "off",
"vue/multi-word-component-names": ["off", {}],
"vue/no-mutating-props": ["off"],
// base
"n/prefer-global/process": "off",
"unused-imports/no-unused-vars": "off",
"no-console":"off",
"no-multiple-empty-lines": ["warn", { "max": 2, "maxBOF": 1 }],// 空行
"semi": ["error", "always"], // 结尾;
"quotes":["error", "double"], // 双引号
"no-trailing-spaces": "error",
"@stylistic/js/no-multiple-empty-lines":"off",
// ts
"@typescript-eslint/semi": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/quotes":["error", "double"] // 双引号
}
}