forked from Wifsimster/beta-scss
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
59 lines (58 loc) · 1.55 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
module.exports = {
root: true,
extends: ["eslint:recommended", "plugin:vue/essential"],
parser: "vue-eslint-parser",
parserOptions: {
parser: "babel-eslint",
ecmaVersion: 2018,
sourceType: "module"
},
plugins: ["vue"],
rules: {
"linebreak-style": "off", // don't matter line ending style
indent: ["error", 2], // indent with 2 spaces
quotes: ["error", "single"], // force single quotes
semi: ["error", "never"], // remove semicolons
eqeqeq: "warn", // require === and !==
"default-case": "warn", // require default case in switch statements
"no-implicit-coercion": "warn", // disallows implicit type conversion methods
curly: ["error", "all"],
yoda: "warn", // requires 'yoda' condition statements
"no-var": "warn", // requires let or const, not var
"no-debugger": "warn",
"vue/max-attributes-per-line": [
"warn",
{
singleline: 4,
multiline: { max: 3, allowFirstLine: false }
}
],
"vue/singleline-html-element-content-newline": [
"warn",
{
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: ["alert", "i", "span", "template", "btn"]
}
],
"vue/html-indent": [
"warn",
2,
{
attribute: 1,
baseIndent: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: []
}
],
"vue/html-closing-bracket-spacing": [
"warn",
{
startTag: "never",
endTag: "never",
selfClosingTag: "always"
}
]
}
};