mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
feat(linter): RulesOfHooks from nursery to correctness (#7607)
This commit is contained in:
parent
bd977cf742
commit
4eb87eadbf
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue