-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
60 lines (59 loc) · 1.24 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
56
57
58
59
60
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
globals: {
google: true,
document: false,
navigator: false,
window: false,
},
parserOptions: {
ecmaVersion: 6,
parser: 'babel-eslint',
},
extends: [
'airbnb-base',
'plugin:vue/strongly-recommended',
],
plugins: [
'import',
'html',
],
rules: {
'indent': ['error', 2, {'SwitchCase': 1}],
'max-len': ['error', {code: 180}],
'import/no-unresolved': 0,
'function-paren-newline': ['off', 'never'],
'object-curly-spacing': ['error', 'never'],
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
'import/extensions': ['off', 'never'],
'no-use-before-define': 0,
'vue/html-self-closing': 0,
'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
'vue/no-use-v-if-with-v-for': 0,
'vue/script-indent': [
'error',
2,
{
'baseIndent': 1
},
],
},
settings: {
'import/resolver': 'webpack',
},
overrides: [
{
'files': ['*.vue'],
'rules': {
'indent': 'off'
}
}
],
};