-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
44 lines (41 loc) · 1.15 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
module.exports = {
root: true,
env: {
node: true
},
// https://eslint.vuejs.org/rules/
extends: [
"eslint:recommended",
"plugin:vue/recommended"
],
rules: {
// https://eslint.org/docs/rules/no-console
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
// https://eslint.org/docs/rules/no-debugger
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
// https://eslint.org/docs/rules/key-spacing
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-closing-bracket-newline.md
"vue/html-closing-bracket-newline": [
"error",
{
singleline: "never",
multiline: "never"
}
],
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-closing-bracket-spacing.md
"vue/html-closing-bracket-spacing": [
"error",
{
startTag: "never",
endTag: "never",
selfClosingTag: "always"
}
],
"vue/no-v-html": "off"
},
parser: "vue-eslint-parser",
parserOptions: {
parser: "babel-eslint"
}
};