-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
44 lines (44 loc) · 1.15 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
module.exports = {
'extends': 'airbnb',
'installedESLint': true,
'parserOptions': {
'ecmaFeatures': {
'jsx': true,
"experimentalObjectRestSpread": true
//'impliedStrict': true // TODO Babel runs on strict mode, so strict mode should not be needed on client folder ( still needed on server )
}
},
'globals': {
'HttpError': true,
'PG': true,
'_': true,
'__ENV__': true,
'customFetch': true,
},
'rules': {
'strict': 0,
'one-var': 0,
'no-underscore-dangle': 0,
'no-param-reassign': ['error', { 'props': false }],
'arrow-body-style': 0,
'consistent-return': 0,
'no-use-before-define': ['error', { 'functions': false }],
'new-cap': 0,
'no-restricted-syntax': ['error', 'WithStatement'],
'key-spacing': ['error', { 'mode': 'minimum' }],
'import/no-unresolved': 0,
'max-len': 0,
'no-return-assign': 0,
'no-console': 0,
'space-before-function-paren': ['error', 'never'],
'func-names': 0,
'newline-per-chained-call': 0,
// 'react/jsx-closing-bracket-location': [1, 'props-aligned']
},
'plugins': [
'react'
],
'env': {
'node': true
}
};