build(deps-dev): bump @biomejs/biome from 2.6.4 to 2.6.6
Bumps @biomejs/biome from 2.6.4 to 2.6.6.
Release notes
Sourced from @biomejs/biome's releases.
Biome CLI v2.6.6
2.6.6
Patch Changes
#12887
da0422eThanks@dyc3! - Added the new nursery rulenoArrayMethodsOnArguments. It reports calls to array methods on theargumentsobject, which isn't an array, so these calls throw aTypeErrorwhen the code runs.function sum() { return arguments.reduce((total, value) => total + value, 0); }#12877
cd9e10fThanks@dyc3! - Added the nursery rulenoConstantComparisons, which reports&&and||conditions that can never be true, are always true, or contain a check with no effect.if (statusCode <= 400 && statusCode > 500) {}#12876
a7c9586Thanks@dyc3! - Added the nursery rulenoErasingOperation, which disallows operations with0that always result in zero: multiplying by0, a bitwise AND with0, and dividing0by a number. The other value in these operations has no effect on the result, which usually means the code has a mistake.const total = price * 0;#12841
e954f55Thanks@dyc3! - Added the nursery rulenoNegatedArrayPredicate, which reports negated calls toArray#some()andArray#every()and suggests moving the negation into the callback function.// Invalid: use `array.every((item) => !isUnicorn(item))` instead. const isMissing = !array.some((item) => isUnicorn(item));#12888
15039f7Thanks@dyc3! - Added the new nursery rulenoNumberArgumentOutOfRange, which reports number literal arguments oftoString(),toFixed(),toExponential()andtoPrecision()that are outside the range the method accepts. These calls throw aRangeErrorat runtime.value.toString(64);#12889
1cd7520Thanks@dyc3! - Added the nursery rulenoSharedBranchCode, which reports code that is repeated at the start or end of every branch of anifstatement. That code runs no matter which branch is taken, so it can be moved before or after theifstatement.if (condition) { doSomething(); cleanup(); } else { doSomethingElse(); cleanup(); }
... (truncated)
Commits
09ee04dci: release (#12938)191111dfeat(lint): add usePackageJsonEngines (#12310)0538e30feat(lint): add usePackageJsonCpu (#12309)6b73fcffeat(lint): add noUninvokedArrayCallback (#12890)1cd7520feat(lint): add noSharedBranchCode (#12889)15039f7feat(lint): add noNumberArgumentOutOfRange (#12888)da0422efeat(lint): add noArrayMethodsOnArguments (#12887)3bb18d8feat(lint): add useNextScriptForGoogleAnalytics (#12886)cd9e10ffeat(lint): add noConstantComparisons (#12877)a7c9586feat(lint): add noErasingOperation (#12876)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Summary by cubic
Updates @biomejs/biome from 2.6.4 to 2.6.6 as a patch-level dev dependency bump. The release adds several new nursery lint rules, but they are opt-in so existing configuration is unaffected.