-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
39 lines (35 loc) · 954 Bytes
/
.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
var OFF = 0;
var WARNING = 1;
var ERROR = 2;
module.exports = {
env: {
'node': true,
'es2017': true
},
ecmaFeatures: {
'modules': true,
'spread' : true,
'restParams' : true,
},
extends: 'eslint:recommended',
rules: {
'brace-style': [ERROR, '1tbs', {'allowSingleLine': true}],
'comma-spacing': [ERROR, {'before': false, 'after': true}],
'indent': [ERROR, 'tab', {'SwitchCase': 1, 'FunctionExpression': {'body': 1}}],
'keyword-spacing': ERROR,
'linebreak-style': [ERROR, 'unix'],
'no-cond-assign': OFF,
'no-console': OFF,
'no-control-regex': OFF,
'no-fallthrough': OFF,
'no-unused-vars': OFF,
'no-useless-escape': OFF,
'no-undef': OFF,
'no-octal': OFF,
'quotes': [ERROR, 'single', {'avoidEscape': true, allowTemplateLiterals: true}],
'space-before-blocks': [ERROR, 'always'],
'space-infix-ops': [ERROR, {'int32Hint': false}],
'semi': [ERROR, 'always'],
'valid-typeof': OFF
}
};