-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
106 lines (105 loc) · 2.34 KB
/
.eslintrc.js
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
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:vue/vue3-essential",
"@vue/eslint-config-typescript/recommended",
"plugin:vue/vue3-recommended",
"./.eslintrc-auto-import.json",
],
env: {
browser: true,
es2021: true,
node: true,
"vue/setup-compiler-macros": true,
},
rules: {
"vue/no-mutating-props": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars-experimental": "off",
"@typescript-eslint/explicit-module-boundary-types": 0,
"vue/attributes-order": [
"error",
{
order: [
"DEFINITION",
"LIST_RENDERING",
"CONDITIONALS",
"RENDER_MODIFIERS",
"GLOBAL",
["UNIQUE", "SLOT"],
"TWO_WAY_BINDING",
"OTHER_DIRECTIVES",
"ATTR_DYNAMIC",
"ATTR_STATIC",
"ATTR_SHORTHAND_BOOL",
"EVENTS",
"CONTENT",
],
alphabetical: true,
},
],
"vue/v-on-event-hyphenation": [
"error",
"always",
{
autofix: true,
ignore: [],
},
],
"vue/max-attributes-per-line": [
"error",
{
singleline: {
max: 3,
},
multiline: {
max: 1,
},
},
],
"vue/singleline-html-element-content-newline": 0,
"vue/require-default-prop": 0,
"vue/html-closing-bracket-newline": [
"error",
{
singleline: "never",
multiline: "always",
},
],
"vue/component-definition-name-casing": ["error", "PascalCase"],
"vue/attribute-hyphenation": [
"error",
"always",
{
ignore: [],
},
],
"vue/html-self-closing": [
"error",
{
html: {
void: "always",
normal: "never",
component: "always",
},
svg: "always",
math: "always",
},
],
"vue/component-name-in-template-casing": [
"error",
"kebab-case",
{
registeredComponentsOnly: false,
ignores: [],
},
],
"no-debugger": "warn",
"vue/html-indent": ["error", "tab"],
"no-fallthrough": "off",
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/multi-word-component-names": "off",
},
};