Biome 2.6.9 introduces new linter rules for code quality
Biome's latest update adds several new nursery linter rules to help developers improve code quality and consistency.
Biome version 2.6.9 introduces several new nursery linter rules designed to improve code quality. The noArrayDelete rule reports the delete operator used on array elements, suggesting splice() as an alternative. For testing, noExpectToHaveBeenCalledOnce advises replacing toHaveBeenCalledOnce() with toHaveBeenCalledTimes(1).
The noImmediateMutation rule identifies arrays, objects, Sets, and Maps changed immediately after creation, and variables assigned right after declaration. Additionally, noJasmineGlobals flags Jasmine globals in Jest tests, and noReturnInTest reports return statements within test function bodies.
Why it matters
These new rules provide more tools for developers to catch common errors and enforce best practices in their JavaScript and TypeScript codebases.