forked from blocks/blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (46 loc) · 1001 Bytes
/
.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
module.exports = {
root: true,
parser: 'babel-eslint',
env: {
browser: true,
es6: true,
node: true,
jest: true
},
plugins: ['jest'],
rules: {
'import/no-unresolved': 'off',
'no-console': 'off',
'no-case-declarations': 'off',
'no-prototype-builtins': 'off',
'no-unsafe-finally': 'off',
'import/order': [
'error',
{ 'newlines-between': 'always-and-inside-groups' }
],
'react/prop-types': 'off',
'react/display-name': 'off',
'react/no-children-prop': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'off'
},
extends: [
'react-app',
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:react/recommended',
'plugin:jest/recommended'
],
settings: {
react: {
version: 'detect'
},
'import/extensions': ['.js', '.jsx'],
'import/resolver': {
node: {
extensions: ['.js', '.jsx']
}
}
}
}