-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·55 lines (54 loc) · 1.18 KB
/
.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
52
53
54
55
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
node: true,
es6: true,
},
extends: ['eslint:recommended'],
// required to lint *.vue files
plugins: [
'html'
],
// check if imports actually resolve
settings: {
'import/resolver': {
webpack: {
config: 'build/webpack.base.conf.js'
}
}
},
'globals': {
$: true,
'Axios': true
},
// add your custom rules here
rules: {
'comma-dangle': 0,
'eqeqeq': 1,
'no-script-url': 1,
'no-plusplus': 0,
'no-new': 0,
'no-console': 0,
'prefer-rest-params': 1,
//'no-undef':0,
'camelcase': [2, { 'properties': 'never' }],
//'indent': [ 'error', 2 ],
'no-mixed-spaces-and-tabs':0,
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'state', // for vuex state
'acc', // for reduce accumulators
'e' // for e.returnvalue
]
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
}