-
Notifications
You must be signed in to change notification settings - Fork 42
/
.eslintrc.js
60 lines (60 loc) · 1.89 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
60
module.exports = {
extends: ['airbnb', 'prettier'],
parser: 'babel-eslint',
plugins: ['jest'],
env: {
'jest/globals': true
},
globals: {
window: true,
Blob: true,
atob: true,
document: true
},
settings: {},
rules: {
'max-lines': ['error', { max: 600, skipComments: true, skipBlankLines: true }],
'import/no-extraneous-dependencies': 'off',
'react/prop-types': 'off',
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-no-undef': 'off',
'react/jsx-indent': 'off',
'react/no-access-state-in-setstate': 'off',
'no-shadow': 'off',
calemcase: 'off',
'class-methods-use-this': 'off',
'react/destructuring-assignment': 'off',
'consistent-return': 'off',
'array-callback-return': 'off',
'import/named': 'off',
'import/prefer-default-export': 1,
'one-var': 'off',
'no-underscore-dangle': 'off',
'no-plusplus': 'off',
camelcase: 1,
'no-console': 'off',
'no-empty': 1,
'no-unused-expressions': 1,
'no-multi-assign': 'off',
'import/first': 1,
'prefer-promise-reject-errors': 1,
'import/extensions': 'off',
'prefer-const': 1,
'no-bitwise': 'off',
'no-restricted-syntax': 1,
'no-param-reassign': 1,
'no-nested-ternary': 1,
'no-control-regex': 'off',
'react/no-unknown-property': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/button-has-type': 'off',
'spaced-comment': 'off',
'react/sort-comp': 'off'
}
};