-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
55 lines (55 loc) · 1.41 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
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
amd: true,
node: true,
es6: true
},
// required to lint *.vue files
extends: 'airbnb-base',
// add your custom rules here
rules: {
'no-await-in-loop': 0,
'no-underscore-dangle': 0,
'max-len': [1, 120, 2, {
ignoreComments: true
}],
'no-new':0,
'semi': [2, 'never'],
'no-console': 0,
'no-param-reassign': [2, {
'props': false
}],
'no-use-before-define': [2, {
'functions': false
}],
'no-plusplus': [1, {
'allowForLoopAfterthoughts': true
}],
'func-names': [2, 'as-needed'],
'indent': ['error', 4,],
'linebreak-style': 0,
'comma-dangle': 0,
'no-bitwise': [2, {
'int32Hint': true
}],
'default-case': 0,
'consistent-return': 0,
'eol-last': 0,
'no-param-reassign': 0,
'no-else-return': 0,
"import/extensions": [2, "always", {
"js": "never",
"vue": "never"
}],
'quote-props': [2, 'consistent-as-needed'],
'class-methods-use-this': 0,
"prefer-destructuring": 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
},
}