-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
39 lines (37 loc) · 1.01 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
module.exports = {
root: true,
env: {
node: true,
'jest/globals': true
},
extends: [
'airbnb-base'
],
plugins: [
'jest'
],
rules: {
semi: ['error', 'always'],
'no-multiple-empty-lines': ['warn', { max: 3 }],
'space-before-function-paren': ['warn', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}],
curly: ['off'],
'no-console': ['warn', { allow: ['warn', 'error'] }],
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'comma-dangle': ['error', 'never'],
'max-len': ['warn', { code: 150 }],
'import/prefer-default-export': ['off'],
'arrow-parens': ['off'],
'no-param-reassign': ['off'],
'global-require': ['off'],
'no-underscore-dangle': ['off'],
'object-curly-newline': ['error', { minProperties: 7, consistent: true }],
'no-plusplus': ['off'],
'object-shorthand': ['error', 'always'],
'arrow-body-style': ['off'],
'import/no-extraneous-dependencies': ['off']
}
};