mirror of
https://github.com/biomejs/biome.git
synced 2025-12-23 08:21:13 +00:00
fix(lint): fixed the issue with null literals
This commit is contained in:
parent
6341386ffd
commit
b54dcbb32e
1 changed files with 3 additions and 0 deletions
|
|
@ -188,6 +188,9 @@ impl Rule for NoLeakedRender {
|
|||
}
|
||||
return None;
|
||||
}
|
||||
AnyJsLiteralExpression::JsNullLiteralExpression(_) => {
|
||||
return Some(());
|
||||
}
|
||||
AnyJsLiteralExpression::JsNumberLiteralExpression(num) => {
|
||||
let value = num.value_token().ok()?;
|
||||
if value.text_trimmed() == "0" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue