Repository navigation
Expand file tree
/
Copy path.eslintrc.js
More file actions
61 lines (61 loc) · 1.65 KB
/
Copy path.eslintrc.js
File metadata and controls
61 lines (61 loc) · 1.65 KB
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
55
56
57
58
59
60
61
module.exports = {
root : true,
env : { node : true },
extends : ['airbnb'],
rules : {
'no-console' : 'error',
'no-debugger' : process.env.NODE_ENV === 'production' ? 'error' : 'off',
'comma-dangle' : ['error', 'always-multiline'],
semi : ['error', 'never'],
'key-spacing' : [
'error',
{
beforeColon : true,
afterColon : true,
},
],
'space-before-function-paren' : ['error', 'always'],
'arrow-parens' : ['error', 'always'],
'eol-last' : ['error', 'always'],
'object-property-newline' : [
'error',
{ allowAllPropertiesOnSameLine : false },
],
'object-curly-newline' : [
'error',
{
ObjectExpression : {
multiline : true,
minProperties : 2,
},
ObjectPattern : {
multiline : true,
minProperties : 2,
},
ImportDeclaration : {
multiline : true,
minProperties : 2,
},
ExportDeclaration : 'always',
},
],
'max-len' : ['error', 160],
'no-underscore-dangle' : ['error', { allow : ['_id'] }],
'no-restricted-syntax' : 'off',
'no-param-reassign' : 'off',
'no-await-in-loop' : 'off',
'import/no-dynamic-require' : 'off',
'global-require' : 'off',
'no-restricted-globals' : 'off',
'no-useless-escape' : 'off',
'prefer-destructuring' : 'off',
'react/no-this-in-sfc' : 'off',
'no-prototype-builtins' : 'off',
'no-plusplus' : 'off',
'no-case-declarations' : 'off',
'arrow-body-style' : 'off',
'no-bitwise' : 'off',
'import/extensions' : 'off',
},
parserOptions : { parser : 'babel-eslint' },
}