-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
27 lines (27 loc) · 868 Bytes
/
.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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/essential",
"eslint:recommended",
"plugin:prettier/recommended",
"@vue/prettier",
],
parserOptions: {
parser: "babel-eslint",
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-undef": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-unused-vars": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-useless-escape": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-prototype-builtins":
process.env.NODE_ENV === "production" ? "warn" : "off",
"no-constant-condition":
process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/multi-word-component-names": "off"
},
};