-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
62 lines (60 loc) · 2.07 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
{
"root": true,
"plugins": ["prettier"],
"extends": ["@nuxt/eslint-config", "prettier"],
"rules": {
// "no-var": "error",
// "unicorn/no-for-loop": "error",
// "max-classes-per-file": ["error", 2]
// General
"no-useless-catch": 1,
"semi": ["error", "never"],
"quotes": ["error", "single"],
"no-trailing-spaces": "error",
"comma-dangle": ["error", "never"],
"linebreak-style": ["error", "unix"],
"comma-spacing": ["error", { "before": false, "after": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"space-before-function-paren": ["error", "always"],
"object-curly-spacing": ["error", "always"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"key-spacing": [
"error",
{ "beforeColon": false, "afterColon": true, "mode": "strict" }
],
"sort-imports": [
"warn",
{ "ignoreDeclarationSort": true, "allowSeparatedGroups": true }
],
"space-before-blocks": ["error", "always"],
"space-infix-ops": ["error", { "int32Hint": false }],
// Typescript
"@typescript-eslint/type-annotation-spacing": "error",
// Vuejs
"vue/multi-word-component-names": 0,
"vue/html-indent": ["error", 2],
"vue/script-indent": ["error", 2, { "baseIndent": 0 }],
"vue/keyword-spacing": ["error", { "before": true, "after": true }],
"vue/object-curly-spacing": ["error", "always"],
"vue/key-spacing": [
"error",
{ "beforeColon": false, "afterColon": true, "mode": "strict" }
],
"vue/arrow-spacing": ["error", { "before": true, "after": true }],
"vue/array-bracket-spacing": ["error", "never"],
"vue/block-spacing": ["error", "always"],
"vue/brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"vue/no-mutating-props": 0,
"vue/space-infix-ops": ["error", { "int32Hint": false }],
"vue/max-attributes-per-line": [
"error",
{
"singleline": {
"max": 7
}
}
],
"vue/padding-line-between-blocks": ["error", "always"]
},
"ignorePatterns": ["*.md"]
}