-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
49 lines (48 loc) · 1.11 KB
/
index.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
'use strict';
module.exports = {
extends: 'xo',
env: {
protractor: true,
jasmine: true,
mocha: true
},
plugins: ['mocha', 'jasmine'],
parser: 'babel-eslint',
settings: {
react: {
version: 'detect'
}
},
rules: {
strict: 0,
indent: [2, 2, {
SwitchCase: 1
}],
'no-unused-expressions': 0,
'no-warning-comments': 0,
'padded-blocks': 0,
'no-throw-literal': 0,
'no-else-return': 0,
'no-implicit-coercion': [2, {
boolean: false,
string: false
}],
'spaced-comment': 0,
'no-multiple-empty-lines': 0,
'one-var': 0,
'no-negated-condition': 0,
'no-return-assign': 0,
radix: 0,
'no-implicit-globals': 0,
'one-var-declaration-per-line': 0,
'max-nested-callbacks': 0,
'comma-dangle': [2, 'only-multiline'],
'quote-props': [2, 'as-needed'],
'no-bitwise': 2,
'new-cap': [2, {newIsCapExceptions: ['express']}],
'max-statements-per-line': ['error', {max: 2}],
'mocha/no-exclusive-tests': 'error',
'generator-star-spacing': ['error', 'after'],
'yield-star-spacing': ['error', 'after']
}
};