feat(linter): RulesOfHooks from nursery to correctness (#7607)

This commit is contained in:
Boshen 2024-12-03 14:15:43 +00:00
parent bd977cf742
commit 4eb87eadbf

View file

@ -104,7 +104,7 @@ declare_oxc_lint!(
/// <https://reactjs.org/docs/hooks-rules.html>
///
RulesOfHooks,
nursery
correctness
);
impl Rule for RulesOfHooks {
@ -1228,7 +1228,7 @@ fn test() {
if (a) return;
useHook2();
} while (b);
do {
useHook3();
if (c) return;