-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
37 lines (37 loc) · 1.07 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
module.exports = {
extends: ['eslint:recommended', 'prettier', 'prettier/react'],
parser: 'babel-eslint',
env: {
es6: true,
browser: true
},
ecmaFeatures: {
modules: true,
jsx: true
},
globals: {
__DEV__: true
},
rules: {
// 'unicorn/no-new-buffer': 'off',
// 'unicorn/filename-case': 'off',
// 'unicorn/custom-error-definition': 'off',
// 'unicorn/no-array-instanceof': 'off',
// 'unicorn/catch-error-name': 'off',
// 'unicorn/no-process-exit': 'off',
// 'unicorn/throw-new-error': 'off',
// 'unicorn/number-literal-case': 'off',
// 'unicorn/prefer-starts-ends-with': 'off',
// 'unicorn/prefer-type-error': 'off',
// 'unicorn/explicit-length-check': 'off',
// 'unicorn/no-abusive-eslint-disable': 'off',
'react/prop-types': 'off',
'react/forbid-component-props': 'warn',
'react/jsx-no-bind': 'warn',
'react/no-array-index-key': 'warn',
'react/no-string-refs': 'warn',
'import/no-unresolved': 'off',
'import/no-unassigned-import': 'off',
'import/prefer-default-export': 'off'
}
}