-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
51 lines (48 loc) · 972 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
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
root: true,
plugins: [
'chai-expect',
'mocha',
],
extends: 'eslint:recommended',
env: {
mocha: true,
node: true,
es6: true,
},
globals: {
},
parserOptions: {
ecmaVersion: 6,
},
rules: {
'indent': [2, 2, {
'SwitchCase': 0,
'VariableDeclarator': { 'var': 2, 'let': 2, 'const': 3 }
}],
'camelcase': 2,
'no-cond-assign': [2, 'except-parens'],
'curly': 2,
'no-use-before-define': [2, 'nofunc'],
'no-debugger': 2,
'eqeqeq': 2,
'no-eval': 2,
'new-cap': [2, {
properties: false,
}],
'no-caller': 2,
'no-empty': 2,
'no-new': 2,
'no-undef': 2,
'no-unused-vars': 2,
'no-trailing-spaces': 2,
'no-eq-null': 2,
'no-console': 0,
'comma-dangle': 0,
'no-unused-expressions': 0,
'prefer-template': 2,
'prefer-arrow-callback': 2,
'chai-expect/missing-assertion': 2,
'mocha/no-exclusive-tests': 2,
},
};