From 4eb87eadbf111824ac5b0393aaef71c68bc089dd Mon Sep 17 00:00:00 2001 From: Boshen <1430279+Boshen@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:15:43 +0000 Subject: [PATCH] feat(linter): RulesOfHooks from nursery to correctness (#7607) --- crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_linter/src/rules/react/rules_of_hooks.rs b/crates/oxc_linter/src/rules/react/rules_of_hooks.rs index baab3df57d200..dbdf678a868d8 100644 --- a/crates/oxc_linter/src/rules/react/rules_of_hooks.rs +++ b/crates/oxc_linter/src/rules/react/rules_of_hooks.rs @@ -104,7 +104,7 @@ declare_oxc_lint!( /// /// RulesOfHooks, - nursery + correctness ); impl Rule for RulesOfHooks { @@ -1228,7 +1228,7 @@ fn test() { if (a) return; useHook2(); } while (b); - + do { useHook3(); if (c) return;