Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .claude/commands/lint-enforce.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ Please follow the following process when I ask you to enfore a new lint rule usi
8. Add the changes
9. Commit the changes
10. Push the changes

You do not need to ask before updating biome.json, running tests, using --fix in safe mode, fetching coment from biomejs.dev, or updating the changelog
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- Enforce strict equality checks (=== and !==) instead of loose equality (== and !=)
- Replace global isNaN with Number.isNaN for safer type checking
- Ensure no variable redeclarations exist to prevent shadowing issues
- Replace global isFinite with Number.isFinite for safer numeric validation

## v0.10.9
- Add support for IPv6 urls
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"noRedundantUseStrict": "error",
"noAsyncPromiseExecutor": "off",
"noGlobalIsNan": "error",
"noGlobalIsFinite": "off",
"noGlobalIsFinite": "error",
"noPrototypeBuiltins": "off",
"noVar": "error"
}
Expand Down
4 changes: 2 additions & 2 deletions test/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ const domainProps = [
[
Double,
function (f) {
return !Number.isNaN(f) && isFinite(f);
return !Number.isNaN(f) && Number.isFinite(f);
},
],
[
Float,
function (f) {
return !Number.isNaN(f) && isFinite(f) && Math.log(Math.abs(f)) * Math.LOG10E < 309;
return !Number.isNaN(f) && Number.isFinite(f) && Math.log(Math.abs(f)) * Math.LOG10E < 309;
},
],
[
Expand Down