-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.eslintrc.js
54 lines (54 loc) · 1.24 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
47
48
49
50
51
52
53
54
module.exports = {
extends: 'eslint:recommended',
env: {
browser: true,
mocha: true,
node: true,
es6: true
},
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
modules: true
}
},
globals: {
sinon: true,
expect: true
},
rules: {
'no-unused-vars': [1, { varsIgnorePattern: '^h$' }],
'no-cond-assign': 1,
'no-empty': 0,
'no-console': 1,
camelcase: 0,
'comma-style': 2,
'comma-dangle': [2, 'never'],
indent: ['error', 2, { 'SwitchCase': 1 }],
'no-mixed-spaces-and-tabs': [2, 'smart-tabs'],
'no-trailing-spaces': [2, { skipBlankLines: true }],
'max-nested-callbacks': [2, 3],
'no-eval': 2,
'no-implied-eval': 2,
'guard-for-in': 0,
eqeqeq: 0,
'no-else-return': 2,
'no-redeclare': 2,
'no-dupe-keys': 2,
radix: 2,
strict: [2, 'never'],
'no-shadow': 0,
'callback-return': [1, ['callback', 'cb', 'next', 'done']],
'no-delete-var': 2,
'no-undef-init': 2,
'no-shadow-restricted-names': 2,
'handle-callback-err': 0,
'no-lonely-if': 2,
'keyword-spacing': 2,
'constructor-super': 2,
'no-this-before-super': 2,
'no-dupe-class-members': 2,
'no-const-assign': 2,
'no-useless-concat': 2
}
}