-
-
Notifications
You must be signed in to change notification settings - Fork 852
/
.eslintrc.js
34 lines (34 loc) · 959 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
28
29
30
31
32
33
34
module.exports = {
"root": true,
"env": {
"node": true,
"browser": true, // Browser window global variables
"jquery": true, // jQuery global variable
},
"extends": [
"plugin:vue/essential",
// "plugin:vue/recommended" // TODO
"@vue/standard"
],
"rules": {
"comma-dangle": [
"error", "always-multiline"
], // Improve diffs
"func-names": "off", // Conflicts with vue
"object-shorthand": "off", // Conflicts with vue
"no-underscore-dangle": "off", // Conflicts with vue
// Vue-plugin lint rules
"vue/require-v-for-key": "off", // Requires not using <template>; breaks layouts
// Temporary; to fix
"no-console": process.env.NODE_ENV === 'production' ? 'warn' : 'off',
"no-debugger": process.env.NODE_ENV === 'production' ? 'warn' : 'off',
"radix": "off",
},
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module",
},
"plugins": [
"vue",
],
}