-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
38 lines (38 loc) · 1.03 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
module.exports = {
'parser': 'babel-eslint',
'extends': 'airbnb-base',
'rules': {
'arrow-parens': ['error', 'as-needed'],
'indent': ['error', 2],
'class-methods-use-this': ['error', { 'exceptMethods': ['boot'] }],
'max-len': ['error', { 'code': 120 }],
'no-useless-constructor': 0,
'no-param-reassign': 0,
'no-console': 0,
'no-return-assign': 0,
'no-underscore-dangle': 0,
'import/prefer-default-export': 0,
'prefer-rest-params': 0,
'consistent-return': 0,
'valid-jsdoc': ['error', {
'prefer': { 'return': 'return' },
'preferType': { 'Boolean': 'Boolean', 'Number': 'Number', 'object': 'Object', 'String': 'String' },
'requireReturn': false,
'requireParamDescription': false,
'requireReturnDescription': false
}]
},
'globals': {
'it': true,
'xit': true,
'describe': true,
'beforeAll': true,
'beforeEach': true,
'afterEach': true,
'afterAll': true,
'before': true,
'after': true,
'expect': true,
'jest': true
}
};