-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
48 lines (47 loc) · 1.05 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
// https://eslint.org/docs/user-guide/configuring
module.exports = {
extends: 'airbnb-base',
'plugins': [
'vue',
],
'parser': 'vue-eslint-parser',
'parserOptions': {
'parser': 'babel-eslint',
},
// add your custom rules here
'rules': {
'indent': ['error', 'tab'],
'no-tabs': ['off'],
'brace-style': ['error', 'stroustrup'],
'arrow-body-style': ['error', 'always'],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'import/extensions': [
'error', 'always', {
'js': 'never',
'vue': 'never'
}
],
'object-curly-newline': [
'error',
{
'consistent': true
}
]
},
'settings': {
'import/resolver': {
'webpack': {
'config': 'webpack.config.js'
}
}
},
'globals': {
'test': true,
'expect': true,
'describe': true,
'window': true,
'beforeEach': true,
'document': true,
},
}