-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (46 loc) · 1.1 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
module.exports = {
extends : 'airbnb-base',
env : {
browser : true,
node : true
},
rules : {
'linebreak-style' : 0, // <----------
'prefer-const' : [
'error',
{
destructuring : 'any',
ignoreReadBeforeAssign : false
}
],
'comma-dangle' : [ 'error', 'never' ],
indent : [ 2, 'tab' ],
'key-spacing' : [
2,
{
singleLine : {
beforeColon : false,
afterColon : true
},
multiLine : {
beforeColon : true,
afterColon : true,
align : 'colon'
}
}
],
'no-tabs' : [ 'error', { allowIndentationTabs: true } ],
'one-var' : [ 'error', 'consecutive' ],
'no-underscore-dangle' : [ 'error', { allow: [ '_id' ] } ],
'arrow-parens' : [ 'error', 'as-needed' ],
'max-len' : [ 'error', { code: 125 } ],
'no-plusplus' : [ 'error', { allowForLoopAfterthoughts: true } ],
'object-curly-newline' : [
'error',
{
ImportDeclaration : 'never',
ExportDeclaration : { multiline: true, minProperties: 3 }
}
]
}
};