-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
51 lines (51 loc) · 1.15 KB
/
.eslintrc
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
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"plugins": [
"react",
"react-hooks"
],
"settings": {
"react": {
"version": "detect"
},
"propWrapperFunctions": [ "forbidExtraProps" ] // The names of any functions used to wrap the
// propTypes object, e.g. `forbidExtraProps`.
// If this isn't set, any propTypes wrapped in
// a function will be skipped.
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
//"react/jsx-no-bind": 1
"react/display-name": 0, // slow
"react/no-deprecated": 0, // slow
"react/prop-types": 0, // slow
"react/require-render-return": 0, // slow
"react/jsx-uses-react": "off", // jsx transform
"react/react-in-jsx-scope": "off" // jsx transform
},
"globals": {
"__DEV__": true,
"BigInt": true,
// jest
"describe": true,
"test": true,
"expect": true
}
}