Add new lint to disallow use of confusing isNaN (#4999)

This commit is contained in:
Jonathan Tran
2025-01-11 00:28:12 -05:00
committed by GitHub
parent 013cb10961
commit c6fad2e2dc
3 changed files with 9 additions and 2 deletions

View File

@ -345,7 +345,7 @@ export function onDragNumberCalculation(text: string, e: MouseEvent) {
)
const newVal = roundOff(addition, precision)
if (isNaN(newVal)) {
if (Number.isNaN(newVal)) {
return
}