-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
39 lines (38 loc) · 889 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
module.exports = {
'env': {
'es6': true,
'node': true,
'mocha': true
},
'extends': 'eslint:recommended',
'parserOptions': {
'sourceType': 'module'
},
'rules': {
'indent': ['error', 2, {
'MemberExpression': 0
}],
'linebreak-style': ['error', 'unix'],
'semi': ['error', 'always'],
'space-before-function-paren': ['error', {
'anonymous': 'never',
'named': 'never'
}],
'no-multiple-empty-lines': ['error', {
'max': 2,
'maxEOF': 0
}],
'no-mixed-spaces-and-tabs': 'error',
'no-trailing-spaces': 'error',
'no-spaced-func': 'error',
'quotes': ['error', 'single', {
'avoidEscape': true
}],
'comma-spacing': ['error', {
'before': false, 'after': true
}],
'comma-style': ['error', 'last'],
'space-before-blocks': ['error'],
'arrow-spacing': ['error']
}
};