This repository was archived by the owner on Dec 9, 2021. It is now read-only.
File tree 3 files changed +12
-1
lines changed
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 3
3
4
4
module . exports = {
5
5
parser : '@typescript-eslint/parser' , // Specifies the ESLint parser
6
+ plugins : [
7
+ 'react-hooks' , // Uses eslint-plugin-react-hooks
8
+ ] ,
6
9
extends : [
7
10
'plugin:react/recommended' , // Uses the recommended rules from @eslint -plugin-react
8
11
'plugin:@typescript-eslint/recommended' , // Uses the recommended rules from @typescript -eslint/eslint-plugin
@@ -26,7 +29,9 @@ module.exports = {
26
29
'@typescript-eslint/no-explicit-any' : 0 ,
27
30
'@typescript-eslint/no-inferrable-types' : 0 ,
28
31
'@typescript-eslint/no-non-null-assertion' : 0 ,
29
- '@typescript-eslint/explicit-function-return-type' : 0 ,
32
+ '@typescript-eslint/no-use-before-define' : 0 ,
33
+ 'react-hooks/rules-of-hooks' : 2 ,
34
+ 'react-hooks/exhaustive-deps' : 1 ,
30
35
} ,
31
36
settings : {
32
37
react : {
Original file line number Diff line number Diff line change 80
80
"eslint-config-prettier" : " 6.7.0" ,
81
81
"eslint-plugin-prettier" : " 3.1.1" ,
82
82
"eslint-plugin-react" : " 7.17.0" ,
83
+ "eslint-plugin-react-hooks" : " 2.3.0" ,
83
84
"generate-template-files" : " 2.2.0" ,
84
85
"gh-pages" : " 2.1.1" ,
85
86
"husky" : " 3.1.0" ,
Original file line number Diff line number Diff line change @@ -4735,6 +4735,11 @@ eslint-plugin-prettier@3.1.1:
4735
4735
dependencies:
4736
4736
prettier-linter-helpers "^1.0.0"
4737
4737
4738
+ eslint-plugin-react-hooks@2.3.0:
4739
+ version "2.3.0"
4740
+ resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.3.0.tgz#53e073961f1f5ccf8dd19558036c1fac8c29d99a"
4741
+ integrity sha512-gLKCa52G4ee7uXzdLiorca7JIQZPPXRAQDXV83J4bUEeUuc5pIEyZYAZ45Xnxe5IuupxEqHS+hUhSLIimK1EMw==
4742
+
4738
4743
eslint-plugin-react-hooks@^1.6.1:
4739
4744
version "1.7.0"
4740
4745
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz#6210b6d5a37205f0b92858f895a4e827020a7d04"
You can’t perform that action at this time.
0 commit comments