-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.js
42 lines (42 loc) · 1.11 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
module.exports = {
extends: 'airbnb-base',
env: {
node: true,
es6: true,
mocha: true
},
parserOptions: {
sourceType: 'script'
},
rules: {
indent: ['error', 2, { 'SwitchCase': 1 }],
semi: [2, 'never'],
strict: [2, 'global'],
'one-var-declaration-per-line': [2, 'initializations'],
'one-var': [2, {'uninitialized': 'always', 'initialized': 'never' }],
'no-multiple-empty-lines': ['error', {'max': 2}],
'no-unused-expressions': ['error', {'allowShortCircuit': true}],
'max-len': ['error', {
code: 130,
tabWidth: 2,
ignoreUrls: true,
ignoreComments: true,
ignoreRegExpLiterals: true,
}],
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
}],
'object-curly-newline': ['error', {
// multiline: true,
consistent: true,
}],
'object-curly-spacing': ['error', 'never'],
'no-plusplus': 'off',
'no-confusing-arrow': 'off',
'arrow-parens': ['error', 'as-needed']
}
}