Skip to content

Commit

Permalink
feat(linter): RulesOfHooks from nursery to correctness (#7607)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Dec 3, 2024
1 parent bd977cf commit 4eb87ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/react/rules_of_hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ declare_oxc_lint!(
/// <https://reactjs.org/docs/hooks-rules.html>
///
RulesOfHooks,
nursery
correctness
);

impl Rule for RulesOfHooks {
Expand Down Expand Up @@ -1228,7 +1228,7 @@ fn test() {
if (a) return;
useHook2();
} while (b);
do {
useHook3();
if (c) return;
Expand Down

0 comments on commit 4eb87ea

Please sign in to comment.