-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
51 lines (51 loc) · 1006 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
},
env: {
browser: true,
node: true
},
extends: [
'standard',
'plugin:prettier/recommended',
'plugin:promise/recommended',
'plugin:vue/recommended',
'plugin:import/errors'
],
settings: {
'import/resolver': {
webpack: {
config: './.webpackrc.js'
}
}
},
rules: {
'promise/catch-or-return': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-unused-vars': process.env.NODE_ENV === 'production' ? 1 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 1 : 0,
'no-new': 0,
'no-var': 2,
'import/extensions': [
'error',
'always',
{
js: 'never',
vue: 'never'
}
],
'vue/max-attributes-per-line': [
2,
{
singleline: 1,
multiline: {
max: 1,
allowFirstLine: true
}
}
]
}
}