From e66c5dd2335131c0a96d66bbb401b541ff29672e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 18 Jun 2020 11:11:34 +0400 Subject: Added react and react-hooks plugins Signed-off-by: Valentin Popov --- docs/roadmap/react-hooks.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 docs/roadmap/react-hooks.md (limited to 'docs/roadmap/react-hooks.md') diff --git a/docs/roadmap/react-hooks.md b/docs/roadmap/react-hooks.md new file mode 100644 index 0000000..2e651d4 --- /dev/null +++ b/docs/roadmap/react-hooks.md @@ -0,0 +1,4 @@ +# React Hooks + +- [ ] "exhaustive-deps" +- [ ] "rules-of-hooks" -- cgit v1.2.3 From f6868cf9b6ffb583313a7c62526688064ee64d05 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 18 Jun 2020 11:47:07 +0400 Subject: Added react-hooks rules Signed-off-by: Valentin Popov --- docs/roadmap/react-hooks.md | 4 ++-- src/rules/react-hooks/default.json | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'docs/roadmap/react-hooks.md') diff --git a/docs/roadmap/react-hooks.md b/docs/roadmap/react-hooks.md index 2e651d4..49d99cc 100644 --- a/docs/roadmap/react-hooks.md +++ b/docs/roadmap/react-hooks.md @@ -1,4 +1,4 @@ # React Hooks -- [ ] "exhaustive-deps" -- [ ] "rules-of-hooks" +- [X] "exhaustive-deps" +- [X] "rules-of-hooks" diff --git a/src/rules/react-hooks/default.json b/src/rules/react-hooks/default.json index 0967ef4..4276d63 100644 --- a/src/rules/react-hooks/default.json +++ b/src/rules/react-hooks/default.json @@ -1 +1,8 @@ -{} +{ + "react-hooks/exhaustive-deps": [ + "warn" + ], + "react-hooks/rules-of-hooks": [ + "error" + ] +} \ No newline at end of file -- cgit v1.2.3