💅 False Positive on lint/correctness/useHookAtTopLevel
for arrow functions with implicit return
#871
Closed
1 task done
Labels
A-Linter
Area: linter
S-Bug-confirmed
Status: report has been confirmed as a valid bug
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Environment information
Rule name
lint/correctness/useHookAtTopLevel
Playground link
https://biomejs.dev/playground/?lintRules=all&code=aQBtAHAAbwByAHQAIAB7ACAAdQBzAGUATQBlAG0AbwAgAH0AIABmAHIAbwBtACAAJwByAGUAYQBjAHQAJwAKAAoAZQB4AHAAbwByAHQAIABjAG8AbgBzAHQAIABlAHgAcABsAGkAYwBpAHQAUgBlAHQAdQByAG4AIAA9ACAAKAB4ACkAIAA9AD4AIAB7AAoAIAAgAHIAZQB0AHUAcgBuACAAdQBzAGUATQBlAG0AbwAoACgAKQAgAD0APgAgAHgALAAgAFsAeABdACkAOwAKAH0ACgAKAGUAeABwAG8AcgB0ACAAYwBvAG4AcwB0ACAAaQBtAHAAbABpAGMAaQB0AFIAZQB0AHUAcgBuACAAPQAgACgAeAApACAAPQA%2BACAAdQBzAGUATQBlAG0AbwAoACgAKQAgAD0APgAgAHgALAAgAFsAeABdACkAOwAKAAoACgA%3D
Expected result
lint/correctness/useHookAtTopLevel
should not flag any issues in the provided playground linkCode of Conduct
The text was updated successfully, but these errors were encountered: