-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
111 lines (111 loc) · 3.32 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"root": true,
"env": {
"node": true
},
"extends": ["plugin:vue/recommended", "@vue/prettier", "@vue/typescript/recommended"],
"plugins": ["prettier"],
"rules": {
"curly": "error",
"no-mixed-operators": "error",
"no-param-reassign": "error",
/*"operator-linebreak": [
2,
"after",
{
"overrides": {
"?": "before",
":": "before"
}
}
],
"multiline-ternary": ["error", "always"], */
"prettier/prettier": [
"error",
{
"usePrettierrc": false,
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"useTabs": false,
"tabSize": 4,
"tabWidth": 4,
"printWidth": 100
}
],
"vue/attribute-hyphenation": ["error", "always"],
"vue/max-attributes-per-line": [
1,
{
"singleline": 20,
"multiline": {
"max": 1,
"allowFirstLine": false
}
}
],
"vue/attributes-order": [
2,
{
"order": [
"GLOBAL", // id
"DEFINITION", // is
"UNIQUE", // ref, key, slot
"CONDITIONALS", // v-if, v-else-if, v-else, v-show, v-cloak
"LIST_RENDERING", // v-for
"OTHER_ATTR", // all unspecified bound & unbound attributes
"BINDING", // v-model
"RENDER_MODIFIERS", // v-pre, v-once
"CONTENT", // v-html, v-text
"EVENTS" // v-on
]
}
],
"vue/component-name-in-template-casing": ["error", "kebab-case"],
"vue/html-end-tags": "error",
"vue/html-self-closing": [
"error",
{
"html": {
"void": "always",
"normal": "always",
"component": "always"
},
"svg": "always",
"math": "always"
}
],
"vue/name-property-casing": ["error", "kebab-case"],
"vue/no-multi-spaces": "error",
"vue/order-in-components": [
"error",
{
"order": [
"el",
"name",
"parent",
"functional",
["delimiters", "comments"],
["components", "directives", "filters"],
"extends",
"mixins",
"inheritAttrs",
"model",
["props", "propsData"],
"data",
"computed",
"watch",
"LIFECYCLE_HOOKS",
"methods",
["template", "render"],
"renderError"
]
}
],
"vue/require-prop-types": ["error"],
"vue/require-valid-default-prop": ["error"]
},
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}