-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
59 lines (53 loc) · 1.32 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module.exports = {
parser: 'babel-eslint',
extends: ['airbnb', 'plugin:jest/recommended'],
plugins: ['jest'],
env: {
browser: true,
node: true,
'jest/globals': true,
},
rules: {
// disabled for condition && someFunc()
'no-unused-expressions': 'off',
// backend developers like _, no need to transform data all the time
camelcase: 'off',
// just the formatting issues, prettier does all the job
'object-curly-newline': 'off',
'spaced-comment': 'off',
'react/jsx-one-expression-per-line': 'off',
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
},
],
// increase max line length to 100
'max-len': [
'error',
100,
{
ignoreTrailingComments: true,
ignoreComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreRegExpLiterals: true,
},
],
'react/no-danger': 'off',
'react/require-default-props': 'off',
'react/sort-comp': 'off',
'react/no-array-index-key': 'off',
'import/prefer-default-export': 'off',
'react/no-typos': 'off',
},
settings: {
'import/resolver': {
webpack: {},
},
},
};