-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (47 loc) · 1.36 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
module.exports = {
root: true,
env: {
node: true,
},
"extends": [
"eslint:recommended",
"plugin:vue/essential",
"plugin:vue/recommended",
],
rules: {
// Disabled only on development
"no-console": "off",
"no-debugger": "off",
"no-unused-vars": "off",
// "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" ? "error" : "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/require-prop-types": "off",
"vue/no-use-v-if-with-v-for": "off",
"no-useless-escape": "off",
"vue/no-unused-components": "off",
},
parserOptions: {
parser: "babel-eslint",
},
};