File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ module.exports = {
22
22
} ,
23
23
plugins : [
24
24
'react' ,
25
- 'prettier'
25
+ 'prettier' ,
26
+ 'react-hooks'
26
27
] ,
27
28
rules : {
28
29
'prettier/prettier' : 'error' ,
@@ -34,6 +35,9 @@ module.exports = {
34
35
] ,
35
36
'import/prefer-default-export' : 'off' ,
36
37
'no-param-reassign' : 'off' ,
37
- 'no-console' : [ "error" , { allow : [ "tron" ] } ]
38
+ 'no-console' : [ "error" , { allow : [ "tron" ] } ] ,
39
+
40
+ 'react-hooks/rules-of-hooks' : 'error' ,
41
+ 'react-hooks/exhaustive-deps' : 'warn'
38
42
} ,
39
43
} ;
Original file line number Diff line number Diff line change 50
50
"eslint-plugin-jsx-a11y" : " ^6.2.3" ,
51
51
"eslint-plugin-prettier" : " ^3.1.0" ,
52
52
"eslint-plugin-react" : " ^7.14.3" ,
53
+ "eslint-plugin-react-hooks" : " ^1.7.0" ,
53
54
"prettier" : " ^1.18.2"
54
55
}
55
56
}
Original file line number Diff line number Diff line change @@ -3745,6 +3745,11 @@ eslint-plugin-react-hooks@^1.5.0:
3745
3745
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.6.0.tgz#348efcda8fb426399ac7b8609607c7b4025a6f5f"
3746
3746
integrity sha512-lHBVRIaz5ibnIgNG07JNiAuBUeKhEf8l4etNx5vfAEwqQ5tcuK3jV9yjmopPgQDagQb7HwIuQVsE3IVcGrRnag==
3747
3747
3748
+ eslint-plugin-react-hooks@^1.7.0 :
3749
+ version "1.7.0"
3750
+ resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz#6210b6d5a37205f0b92858f895a4e827020a7d04"
3751
+ integrity sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA==
3752
+
3748
3753
eslint-plugin-react@7.12.4 :
3749
3754
version "7.12.4"
3750
3755
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.12.4.tgz#b1ecf26479d61aee650da612e425c53a99f48c8c"
You can’t perform that action at this time.
0 commit comments