Skip to content

Commit 4eb87ea

Browse files
committed
feat(linter): RulesOfHooks from nursery to correctness (#7607)
1 parent bd977cf commit 4eb87ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/oxc_linter/src/rules/react/rules_of_hooks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ declare_oxc_lint!(
104104
/// <https://reactjs.org/docs/hooks-rules.html>
105105
///
106106
RulesOfHooks,
107-
nursery
107+
correctness
108108
);
109109

110110
impl Rule for RulesOfHooks {
@@ -1228,7 +1228,7 @@ fn test() {
12281228
if (a) return;
12291229
useHook2();
12301230
} while (b);
1231-
1231+
12321232
do {
12331233
useHook3();
12341234
if (c) return;

0 commit comments

Comments
 (0)