-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
112 lines (112 loc) · 3.08 KB
/
.eslintrc.cjs
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
112
module.exports = {
root: true,
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier",
],
parserOptions: {
ecmaVersion: "latest",
},
rules: {
"vue/max-attributes-per-line": [
"error",
{
singleline: 3,
multiline: 1,
},
],
"vue/first-attribute-linebreak": [
"error",
{
singleline: "ignore",
multiline: "below",
},
],
"vue/v-on-event-hyphenation": [
"error",
"always",
{
autofix: true,
},
],
"vue/attributes-order": [
"error",
{
order: [
"CONDITIONALS",
"DEFINITION",
"LIST_RENDERING",
"RENDER_MODIFIERS",
"TWO_WAY_BINDING",
"GLOBAL",
["UNIQUE", "SLOT"],
"OTHER_DIRECTIVES",
["ATTR_STATIC", "ATTR_DYNAMIC", "ATTR_SHORTHAND_BOOL"],
"EVENTS",
"CONTENT",
],
alphabetical: false,
},
],
"vue/html-quotes": ["error", "double", { avoidEscape: false }],
"vue/order-in-components": [
"error",
{
order: [
["template", "render"],
"el",
"name",
"key",
"parent",
"functional",
["delimiters", "comments"],
["components", "directives", "filters"],
"extends",
"mixins",
["provide", "inject"],
"ROUTER_GUARDS",
"layout",
"middleware",
"validate",
"scrollToTop",
"transition",
"loading",
"inheritAttrs",
"model",
"emits",
["props", "propsData"],
"setup",
"asyncData",
"data",
"fetch",
"head",
"computed",
"watch",
"watchQuery",
"LIFECYCLE_HOOKS",
"methods",
"renderError",
],
},
],
"vue/block-tag-newline": [
"error",
{
singleline: "ignore",
multiline: "always",
maxEmptyLines: 1,
},
],
"vue/html-button-has-type": [
"error",
{
button: true,
submit: true,
reset: true,
},
],
"prefer-rest-params": 1,
},
};