.eslintrc.js
898 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
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
root: true,
env: {
node: true,
browser: true,
commonjs: true,
es6: true
},
globals: {
$: true,
axios: true,
moment: true,
_: true
},
'extends': [
'plugin:vue/essential',
'@vue/standard'
],
rules: {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
// allow no-new
'no-new': 0,
// allow semi
'semi': 0,
// allow indent
'indent': ['error', 2],
// 'indent': 0,
// allow no-tabs
'no-tabs': 0,
// allow camelcase
'camelcase': 0,
'eqeqeq': 0,
'no-undef': 0,
'no-self-assign': 0,
'no-console': ['error', { allow: ['warn', 'error'] }]
},
parserOptions: {
parser: 'babel-eslint'
}
};