-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy path.eslintrc.js
More file actions
33 lines (33 loc) · 921 Bytes
/
.eslintrc.js
File metadata and controls
33 lines (33 loc) · 921 Bytes
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
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',
'@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': {
'sourceType': 'module',
},
'plugins': [
'vue',
],
}