-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
43 lines (41 loc) · 1.17 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
module.exports = {
root: true,
env: {
node: true,
},
"extends": [
"eslint:recommended",
"plugin:vue/essential",
"plugin:vue/recommended",
],
rules: {
// Disabled only on development
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-unused-vars": process.env.NODE_ENV === "production" ? "off" : "off",
// Eslint Rules
"brace-style": "error",
"nonblock-statement-body-position": [ "error", "below" ],
"curly": [ "error", "all" ],
"indent": [ "error", 2 ],
"no-else-return": "error",
"object-curly-spacing": [ "error", "always", {
arraysInObjects: false,
objectsInObjects: false,
}],
"array-bracket-spacing": [ "error", "always", {
objectsInArrays: false,
arraysInArrays: false,
}],
"comma-dangle": [ "error", "always-multiline" ],
"semi": [ "error", "always" ],
// Vue Rules
"vue/no-v-html": "off",
"vue/order-in-components": "error",
"vue/attributes-order": "error",
"vue/no-unused-components": "off",
},
parserOptions: {
parser: "babel-eslint",
},
};