NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4650 most downloaded on npm
Last release 4 days ago
30 Sep 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
123 releases · first in 2023
It prevents the use of Vue reserved keys such as those starting with # @biomejs/biome (like $el, $data, $props) and keys starting with \_` in data pro
#7057 634a667 Thanks @mdevils! - Added the rule noVueReservedKeys, which prevents the use of reserved Vue keys.
It prevents the use of Vue reserved keys such as those starting with # @biomejs/biome (like $el, $data, $props) and keys starting with _` in data properties, which can cause conflicts and unexpected behavior in Vue components.
<script>
export default {
data: {
$el: "",
_foo: "bar",
},
};
</script>
<script>
export default {
computed: {
$data() {
return this.someData;
},
},
};
</script>
<script>
export default {
data() {
return {
message: "Hello Vue!",
count: 0,
};
},
};
</script>
<script>
export default {
computed: {
displayMessage() {
return this.message;
},
},
};
</script>
#6941 734d708 Thanks @JamBalaya56562! - Added @eslint-react/no-nested-component-definitions as a rule source for noNestedComponentDefinitions. Now it will get picked up by biome migrate --eslint.
#6463 0a16d54 Thanks @JamBalaya56562! - Fixed a website link for the useComponentExportOnlyModules linter rule to point to the correct URL.
#6944 e53f2fe Thanks @sterliakov! - Fixed #6910: Biome now ignores type casts and assertions when evaluating numbers for noMagicNumbers rule.
#6991 476cd55 Thanks @denbezrukov! - Fixed #6973: Add support for parsing the :active-view-transition-type() pseudo-class
:active-view-transition-type(first second) {
}
#6992 0b1e194 Thanks @ematipico! - Added a new JSON rule called noQuickfixBiome, which disallow the use of code action quickfix.biome inside code editor settings.
#6943 249306d Thanks @JamBalaya56562! - Fixed @vitest/eslint-plugin source url.
#6947 4c7ed0f Thanks @JamBalaya56562! - Fixed ESLint migration for the rule prefer-for from eslint-plugin-solid to Biome's useForComponent.
#6976 72ebadc Thanks @siketyan! - Fixed #6692: The rules noUnusedVariables and noUnusedFunctionParameters no longer cause an infinite loop when the suggested name is not applicable (e.g. the suggested name is already declared in the scope).
#6990 333f5d0 Thanks @rvanlaarhoven! - Fixed the documentation URL for lint/correctness/noUnknownPseudoClass
#7000 4021165 Thanks @harxki! - Fixed #6795: noUnassignedVariables now correctly recognizes variables used in JSX ref attributes.
#7044 b091ddf Thanks @ematipico! - Fixed #6622, now the rule useSemanticElements works for JSX self-closing elements too.
#7014 c4864e8 Thanks @siketyan! - Fixed #6516: The biome migrate command no longer break the member list with trailing comments.
#6979 29cb6da Thanks @unvalley! - Fixed #6767: useSortedClasses now correctly removes leading and trailing whitespace in className.
Previously, trailing spaces in className were not fully removed.
// Think we have this code:
<div className="text-sm font-bold " />
// Before: applied fix, but a trailing space was preserved
<div className="font-bold text-sm " />
// After: applied fix, trailing spaces removed
<div className="font-bold text-sm" />
#7055 ee4828d Thanks @dyc3! - Added the nursery rule useReactFunctionComponents. This rule enforces the preference to use function components instead of class components.
Valid:
function Foo() {
return <div>Hello, world!</div>;
}
Invalid:
class Foo extends React.Component {
render() {
return <div>Hello, world!</div>;
}
}
#6924 2d21be9 Thanks @ematipico! - Fixed #113, where the Biome Language Server didn't correctly update the diagnostics when the configuration file is modified in the editor. Now the diagnostics are correctly updated every time the configuration file is modified and saved.
#6931 e6b2380 Thanks @arendjr! - Fixed #6915: useHookAtTopLevel no longer hangs when rules call themselves recursively.
#7012 01c0ab4 Thanks @siketyan! - Fixed #5837: Invalid suppression comments such as biome-ignore-all-start or biome-ignore-all-end no longer causes a panic.
#6949 48462f8 Thanks @fireairforce! - Support parse import defer(which is a stage3 proposal). The syntax look like this:
import defer * as foo from "<specifier>";
#6938 5feb5a6 Thanks @vladimir-ivanov! - Fixed #6919 and #6920:
useReadonlyClassProperties now does checks for mutations in async class methods.
Example:
class Counter3 {
private counter: number;
async count() {
this.counter = 1;
const counterString = `${this.counter++}`;
}
}
#6942 cfda528 Thanks @sterliakov! - Fixed #6939. Biome now understands this binding in classes outside of methods.
useComponentExportOnlyModules website link by @JamBalaya56562 in https://github.com/biomejs/biome/pull/6463Path type by @arendjr in https://github.com/biomejs/biome/pull/6935no-nested-component-definitions rule to eslint migration by @JamBalaya56562 in https://github.com/biomejs/biome/pull/6941perfer-for → prefer-for by @JamBalaya56562 in https://github.com/biomejs/biome/pull/6947this by @sterliakov in https://github.com/biomejs/biome/pull/6942as const and similar wrappers in noMagicNumbers rule by @sterliakov in https://github.com/biomejs/biome/pull/6944@vitest/eslint-plugin source url by @JamBalaya56562 in https://github.com/biomejs/biome/pull/6943Text by @arendjr in https://github.com/biomejs/biome/pull/6946Type from TypeData by @arendjr in https://github.com/biomejs/biome/pull/6963function A(A) {} by @siketyan in https://github.com/biomejs/biome/pull/6976noUnknownPseudoClass by @rvanlaarhoven in https://github.com/biomejs/biome/pull/6990noQuickfixBiome by @ematipico in https://github.com/biomejs/biome/pull/6992useSemanticElements self-closing elements by @ematipico in https://github.com/biomejs/biome/pull/7044noVueReservedKeys rule by @mdevils in https://github.com/biomejs/biome/pull/7057Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.1.2...@biomejs/biome@2.1.3
One column per month.
`css div { box-sizing: border-box; color: red; } `
#6865 b35bf64 Thanks @denbezrukov! - Fix #6485: Handle multiple semicolons correctly in blocks (#6485)
div {
box-sizing: border-box;
color: red;
}
#6798 3579ffa Thanks @dyc3! - Fixed #6762, Biome now knows that ~/.config/zed/settings.json and ~/.config/Code/User/settings.json allows comments by default.
#6839 4cd62d8 Thanks @ematipico! - Fixed #6838, where the Biome File Watcher incorrectly watched and stored ignored files, causing possible memory leaks when those files were dynamically created (e.g. built files).
#6879 0059cd9 Thanks @denbezrukov! - Refactor: remove one level of indirection for CSS declarations with semicolon
Previously, accessing a declaration from a list required an extra step:
item
.as_any_css_declaration_with_semicolon()
.as_css_declaration_with_semicolon()
Now, it can be done directly with:
item.as_css_declaration_with_semicolon()
#6839 4cd62d8 Thanks @ematipico! - Fixed a bug where the Biome Language Server didn't correctly ignore specific files when vcs.useIgnoreFile is set to true.
#6884 5ff50f8 Thanks @arendjr! - Improved the performance of noImportCycles by ~30%.
#6903 241dd9e Thanks @arendjr! - Fixed #6829: Fixed a false positive reported by useImportExtensions when importing a .js file that had a matching .d.ts file in the same folder.
#6846 446112e Thanks @darricheng! - Fixed an issue where biome was using the wrong string quotes when the classes string has quotes, resulting in invalid code after applying the fix.
#6823 eebc48e Thanks @arendjr! - Improved #6172: Optimised the way function arguments are stored in Biome's type inference. This led to about 10% performance improvement in RedisCommander.d.ts and about 2% on @next/font type definitions.
#6878 3402976 Thanks @ematipico! - Fixed a bug where the Biome Language Server would apply an unsafe fix when using the code action quickfix.biome.
Now Biome no longer applies an unsafe code fix when using the code action quickfix.biome.
#6794 4d5fc0e Thanks @vladimir-ivanov! - Fixed #6719: The noInvalidUseBeforeDeclaration rule covers additional use cases.
Examples:
type Bar = { [BAR]: true };
const BAR = "bar";
interface Bar {
child: { grandChild: { [BAR]: typeof BAR; enumFoo: EnumFoo } };
}
const BAR = "bar";
enum EnumFoo {
BAR = "bar",
}
#6863 531e97e Thanks @dyc3! - Biome now considers whether the linter is enabled when figuring out how the project should be scanned. Resolves #6815.
#6832 bdbc2b1 Thanks @togami2864! - Fixed #6165: Fixed false negative in noUnusedPrivateClassMembers rule when checking member usage in classes
#6839 4cd62d8 Thanks @ematipico! - Fixed a bug where the root ignore file wasn't correctly loaded during the scanning phase, causing false positives and incorrect expectations among users.
Now, when using vcs.useIgnoreFile, the the globs specified in the ignore file from the project root will have the same semantics as the files.includes setting of the root configuration.
Refer to the relative web page to understand how they work.
#6898 5beb024 Thanks @arendjr! - Fixed #6891: Improved type inference for array indices.
Example:
const numbers: number[];
numbers[42]; // This now infers to `number | undefined`.
#6809 8192451 Thanks @arendjr! - Fixed #6796: Fixed a false positive that happened in noFloatingPromises when calling functions that were declared as part of for ... of syntax inside async functions.
Instead, the variables declared inside for ... of loops are now correctly
inferred if the expression being iterated evaluates to an Array (support for other iterables will follow later).
Invalid example
const txStatements: Array<(tx) => Promise<any>> = [];
db.transaction((tx: any) => {
for (const stmt of txStatements) {
// We correctly flag this resolves to a `Promise`:
stmt(tx);
}
});
Valid example
async function valid(db) {
const txStatements: Array<(tx: any) => void> = [(tx) => tx.insert().run()];
db.transaction((tx: any) => {
for (const stmt of txStatements) {
// We don't flag a false positive here anymore:
stmt(tx);
}
});
}
#6757 13a0818 Thanks @mdevils! - Added the rule noVueReservedProps, resolves #6309.
It prevents the use of reserved Vue prop names such as key and ref which can cause conflicts and unexpected behavior in Vue components.
import { defineComponent } from "vue";
export default defineComponent({
props: ["ref", "key", "foo"],
});
<script setup>
defineProps({
ref: String,
key: String,
foo: String,
});
</script>
import { defineComponent } from "vue";
export default defineComponent({
props: ["foo"],
});
<script setup>
defineProps({ foo: String });
</script>
#6840 1a57b51 Thanks @denbezrukov! - Allow multiple identifiers in ::part() pseudo-element selector.
::part(first second) {
}
#6845 4fd44ec Thanks @arendjr! - Fixed #6510: The scanner no longer shows diagnostics on inaccessible files unless --verbose is used.
#6844 b7e2d4d Thanks @sterliakov! - Fixed #6837: Fixed regression with multiple consecutive line suppression comments using instances (like // biome-ignore lint/correctness/useExhaustiveDependencies(depName): reason).
#6818 5f3f5a6 Thanks @siketyan! - Fixed an issue where textDocument/codeAction in the LSP could respond with outdated text edits after the workspace watcher observed outdated changes to the file.
#6804 3e6ab16 Thanks @arendjr! - noFloatingPromises will no longer suggest to add await keyword inside synchronous callbacks nested inside async functions.
#6901 c9e969a Thanks @arendjr! - Fixed #6777: Fixed type inference handling of this to avoid infinite recursion.
Thanks to @sterliakov for the thorough investigation!
#6855 d1581c7 Thanks @vladimir-ivanov! - Fixed #6775: useReadonlyClassProperties now also captures mutations inside function arguments.
Example:
class Counter {
private counter: number;
count() {
console.log(this.counter++);
const counterString = `${this.counter++}`;
}
}
#6839 4cd62d8 Thanks @ematipico! - Fixed a bug where Biome didn't throw any error when vcs.useIgnoreFile is set to true, and there wasn't any ignore file read. Now Biome correctly throws an error if no ignore files are found.
#6911 6d68074 Thanks @arendjr! - Fixed #6838: Reduce resource consumption in the Biome Language Server by using non-recursive filesystem watchers instead of recursive ones.
Watchers are responsible for notifying Biome of changes to files in the filesystem. We used to set up a single recursive watcher, but that meant that Biome would receive filesystem notifications for all files in your project, even for ignored folders such as build/ or dist/ folders.
With this patch, we set up non-recursive watchers only for the folders that are relevant to a project.
Related to this, we also solved an issue where incoming notifications were incorrectly filtered, causing ignored files to be processed and stored in our module graph anyway.
open_file_internal() by @arendjr in https://github.com/biomejs/biome/pull/6803noVueReservedProps rule by @mdevils in https://github.com/biomejs/biome/pull/6757just new* commands by @mdevils in https://github.com/biomejs/biome/pull/6853noVueReservedProps changeset by @mdevils in https://github.com/biomejs/biome/pull/6858noImportCycles by @arendjr in https://github.com/biomejs/biome/pull/6884ScanKind by @arendjr in https://github.com/biomejs/biome/pull/6842this by @arendjr in https://github.com/biomejs/biome/pull/6901.d.ts files in useImportExtensions by @arendjr in https://github.com/biomejs/biome/pull/6903--assist-enabled by @ematipico in https://github.com/biomejs/biome/pull/6912excludedComponents option to useUniqueElementIds by @sterliakov in https://github.com/biomejs/biome/pull/6723Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/js-api@2.0.3...@biomejs/biome@2.1.2
The following code will now pass the noFocusedTests rule:
#6781 9bbd34f Thanks @siketyan! - Fixed the FileFeaturesResult interface in the WASM API was defined as a mapped object but the actual value was a Map object.
#6761 cf3c2ce Thanks @dyc3! - Fixed #6759, a false positive for noFocusedTests that was triggered by calling any function with the name fit on any object.
The following code will now pass the noFocusedTests rule:
import foo from "foo";
foo.fit();
Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/js-api@2.0.1...@biomejs/biome@2.1.1
`ts // This gets flagged because the Promises are not handled. [1, 2, 3].map(async (x) => x + 1); `
#6512 0c0bf82 Thanks @arendjr! - The rule noFloatingPromises can now detect floating arrays of Promises.
Invalid examples
// This gets flagged because the Promises are not handled.
[1, 2, 3].map(async (x) => x + 1);
Valid examples
await Promise.all([1, 2, 3].map(async (x) => x + 1));
#6637 6918085 Thanks @arendjr! - Type inference is now able to handle the sequence operator (,), as well as post- and pre-update operators: ++.
Example
let x = 5;
// We now infer that `x++` resolves to a number, while the expression as a whole
// becomes a Promise:
x++, new Promise((resolve) => resolve("comma"));
#6752 c9eaca4 Thanks @arendjr! - Fixed #6646: .gitignore files are now picked up even when running Biome from a nested directory, or when the ignore file itself is ignored through files.includes.
#6746 90aeead Thanks @arendjr! - biome migrate no longer enables style rules that were recommended in v1, because that would be undesirable for users upgrading from 2.0.
Users who are upgrading from Biome 1.x are therefore advised to first upgrade to Biome 2.0, and run the migration, before continuing to Biome 2.1 or later.
#6583 d415a3f Thanks @arendjr! - Added the nursery rule noMisusedPromises.
It signals Promises in places where conditionals or iterables are expected.
Invalid examples
const promise = Promise.resolve("value");
// Using a `Promise` as conditional is always truthy:
if (promise) {
/* ... */
}
// Spreading a `Promise` has no effect:
console.log({ foo: 42, ...promise });
// This does not `await` the `Promise`s from the callbacks,
// so it does not behave as you may expect:
[1, 2, 3].forEach(async (value) => {
await fetch(`/${value}`);
});
Valid examples
const promise = Promise.resolve("value");
if (await promise) {
/* ... */
}
console.log({ foo: 42, ...(await promise) });
#6405 cd4a9bb Thanks @vladimir-ivanov! - Added the ignoreRestSiblings option to the noUnusedFunctionParameters rule.
This option is used to ignore unused function parameters that are siblings of the rest parameter.
The default is false, which means that unused function parameters that are siblings of the rest parameter will be reported.
Example
{
"rules": {
"noUnusedFunctionParameters": ["error", { "ignoreRestSiblings": true }]
}
}
#6614 0840021 Thanks @arendjr! - We have implemented a more targeted version of the scanner, which ensures that if you provide file paths to handle on the CLI, the scanner will exclude directories that are not relevant to those paths.
Note that for many commands, such as biome check and biome format, the file paths to handle are implicitly set to the current working directory if you do not provide any path explicitly. The targeted scanner also works with such implicit paths, which means that if you run Biome from a subfolder, other folders that are part of the project are automatically exempted.
Use cases where you invoke Biome from the root of the project without providing a path, as well as those where project rules are enabled, are not expected to see performance benefits from this.
#6488 c5ee385 Thanks @ianzone! - nx.json and project.json have been added to the list of well-known files.
#6720 52e36ae Thanks @minht11! - Added # @biomejs/biome symbol to [organizeImports](https://biomejs.dev/assist/actions/organize-imports) :ALIAS:` group.
import { action } from '$lib' will be treated as alias import.
#6712 2649ac6 Thanks @sterliakov! - Fixed #6595: Biome now supports // biome-ignore-all file-level suppressions in files that start with a shebang (#!).
#6758 28dc49e Thanks @arendjr! - Fixed #6573: Grit plugins can now match bare imports.
Example
The following snippet:
`import $source`
will now match:
import "main.css";
#6550 b424f46 Thanks @arendjr! - Type inference is now able to handle logical expressions: &&, ||, and ??.
Examples
// We can now infer that because `true` is truthy, the entire expression
// evaluates to a `Promise`.
true && Promise.reject("logical operator bypass");
// And we know that this doesn't:
false && Promise.reject("logical operator bypass");
// Truthiness, falsiness, and non-nullishness can all be determined on more
// complex expressions as well. So the following also works:
type Nullish = null | undefined;
type Params = {
booleanOption: boolean | Nullish;
falsyOption: false | Nullish;
};
function foo({ booleanOption, falsyOption }: Params) {
// This may be a Promise:
booleanOption ?? Promise.reject("logical operator bypass");
// But this never is:
falsyOption && Promise.reject("logical operator bypass");
}
#6413 4aa0e50 Thanks @wojtekmaj! - Improved error message in useDateNow rule.
#6673 341e062 Thanks @dyc3! - Fixed a case where the HTML formatter would mangle embedded language tags if whitespaceSensitivity was set to strict
#6642 a991229 Thanks @unvalley! - Fixed #4494: The noSecrets rule now correctly uses the entropyThreshold option to detect secret like strings.
#6520 0c43545 Thanks @arendjr! - Type inference is now able to handle ternary conditions in type aliases.
Note that we don't attempt to evaluate the condition itself. The resulting type is simply a union of both conditional outcomes.
Example
type MaybeResult<T> = T extends Function ? Promise<string> : undefined;
// We can now detect this function _might_ return a `Promise`:
function doStuff<T>(input: T): MaybeResult<T> {
/* ... */
}
#6711 1937691 Thanks @sterliakov! - Fixed #6654: Fixed range highlighting of <explanation> placeholder in inline suppression block comments.
#6756 d12b26f Thanks @dyc3! - Fixed #6669: Added an exception to noUnusedImports to allow type augmentation imports.
import type {} from "@mui/lab/themeAugmentation";
#6643 df15ad6 Thanks @skewb1k! - Fixed #4994: LSP server registered some capabilities even when the client did not support dynamic registration.
#6599 5e611fa Thanks @vladimir-ivanov! - Fixed #6380: The noFocusedTests rule now correctly displays the function name in the diagnostic message when a test is focused.
Every instance of a focused test function (like fdescribe, fit, ftest and only) had the word 'only' hardcoded. This has been updated to use the actual function name, so the message is now more accurate and specific.
Example for fdescribe:
i The 'fdescribe' method is often used for debugging or during implementation.
i Consider removing 'f' prefix from 'fdescribe' to ensure all tests are executed.
#6671 0c9ab43 Thanks @vladimir-ivanov! - Fixed #6634: The useReadonlyClassProperties rule now correctly flags mutations in class getters and in arrow functions within class properties.
Examples:
class GetterWithMutationValue {
#value: string;
get value() {
if (!this.#value) {
this.#value = "defaultValue";
}
return this.#value;
}
}
class ClassPropertyArrowFunctionWithMutation {
private bar: string | null = null;
readonly action = () => {
this.bar = "init";
};
}
#6682 ca04cea Thanks @ematipico! - Fixed #6668: Biome Assist is now enabled by default for CSS files.
#6525 66b089c Thanks @arendjr! - Type inference can now infer the return types of functions and methods without annotations.
Examples
const sneakyObject = {
doSomething() {
return Promise.resolve("This is a floating promise!");
},
};
// We can now detect that `doSomething()` returns a `Promise`.
sneakyObject.doSomething();
#6531 c06df79 Thanks @arendjr! - Biome's type inference now detects the type of properties with getters.
Examples
const sneakyObject2 = {
get something() {
return new Promise((_, reject) => reject("This is a floating promise!"));
},
};
// We now detect this is a Promise:
sneakyObject2.something;
#6587 a330fcc Thanks @Conaclos! - organizeImports is now able to sort named specifiers and import attributes with bogus nodes.
#6618 6174869 Thanks @Shinyaigeek! - Fixed #6610: JSON import attributes are now correctly detected when they contain extra whitespace.
#6753 fce5d2c Thanks @dyc3! - Improved the error messages when Biome is provided incompatible arguments on the CLI.
#6587 a330fcc Thanks @Conaclos! - Fixed #6491: The action of useSortedKeys removed comments or wrongly transferred them to distinct nodes.
#6696 92964a7 Thanks @unvalley! - Fixed #6633: The noImplicitCoercion rule no longer reports diagnostics for 1 / value expressions.
1 / value; // no error
#6683 43d871e Thanks @ematipico! - Fixed #6537: Biome no longer removes the trailing comma from JSON files when formatter.json.trailingCommas is explicitly set to "all".
#6693 bfdce0b Thanks @dyc3! - Fixed #6691: The HTML parser will now consider . to be a valid character for tag names.
#6716 ead03d1 Thanks @siketyan! - The Biome LSP server no longer responds with an error for a textDocument/codeActions request when Biome doesn't support a feature for the file (e.g. Code actions aren't supported in GritQL files).
#6679 7bf9a60 Thanks @marko-hologram! - Fixed #6638: JavaScript formatter overrides options now correctly override expand option. JSON formatter overrides options now correctly override bracketSpacing and expand options.
#6717 7f5b541 Thanks @siketyan! - Fixed #6688: the noUselessFragments no longer reports <Fragment /> elements that includes HTML character entities.
#6600 853e1b5 Thanks @daivinhtran! - Fixed #4677: The noUnusedImports rule won't produce diagnostics for types used in comments of static members anymore.
#6662 3afc804 Thanks @arendjr! - If a nested configuration file is ignored by the root configuration, it will now actually be ignored.
Biome has an exception in place for configuration files so they cannot be ignored, because the configuration files are vital to Biome itself. But this exception was incorrectly applied to nested configurations as well. Now only the root configuration is exempt from being ignored.
#6596 c0718ca Thanks @ematipico! - Fixed #6566: Biome no longer errors when using the option --files-ignore-unknown=true in stdin mode.
Biome has also become less strict when using --stdin-file-path in stdin mode. It will no longer error if the file path doesn't contain an extension, but instead it will return the original content.
#6562 153eda7 Thanks @vladimir-ivanov! - Added the nursery rule noMagicNumbers. The rule detects and reports the use of "magic numbers" — numeric literals that are used directly in code without being assigned to a named constant.
Example
let total = price * 1.23; // Magic number for tax rate will highlight 1.23 as magic number
#6663 af78d6d Thanks @ematipico! - Fixed #6656: Biome now correctly formats HTML void elements such as <meta> when they contain a self-closing slash.
- <meta foo="bar" />
+ <meta foo="bar">
#6732 31e4396 Thanks @vladimir-ivanov! - Resolved #6281: Improved performance of handling package.json files in the scanner.
#6625 19cb475 Thanks @arendjr! - Fixed #6616: Fixed an issue with extending configurations that contained an explicit root field while the configuration in the project did not.
#6650 19aab18 Thanks @sterliakov! - Fixed #6621: Improved handling of multiple adjacent line suppressions. Biome now handles such suppressions separately, tracking whether each one is used.
#6700 cdd6e17 Thanks @denbezrukov! - Fixed #6680: Biome incorrectly formatted container-style queries by inserting misplaced spaces.
- @container style (--responsive: true) {}
+ @container style(--responsive: true) {}
#6709 ecf3954 Thanks @dyc3! - Fixed #6038: Fixed a false positive in noShadow where a function parameter in a type definition was erroneously flagged as a violation.
#6593 a4acbb7 Thanks @arendjr! - Type inference is now able to handle ternary conditions in expressions.
Examples
const condition = Math.random() > -1; // Always true, but dynamic to linter
// We now detect that this may return a `Promise`.
condition ? Promise.reject("ternary bypass") : null;
// On the other hand, we know the following is never a `Promise`:
const alwaysFalsy = 0;
alwaysFalsy ? Promise.reject("ternary bypass") : null;
#6428 4b501d3 Thanks @siketyan! - Added MemoryFileSystem to the WASM API.
You can now insert a file from your JS code:
import { MemoryFileSystem, Workspace } from "@biomejs/wasm-web";
const fs = new MemoryFileSystem();
const workspace = Workspace.withFileSystem(fs);
fs.insert("/index.js", new TextEncoder().encode("let foo = 1;"));
fs.remove("/index.js");
#6594 626d4a1 Thanks @ematipico! - Fixed #6528: Biome didn't return the correct output when applying source.fixAll.biome inside Astro/Vue/Svelte files that contained safe fixed.
export * syntax by @arendjr in https://github.com/biomejs/biome/pull/6311noMisusedPromises by @arendjr in https://github.com/biomejs/biome/pull/6315TypeStore in global resolver by @arendjr in https://github.com/biomejs/biome/pull/6318swr fixtures by @arendjr in https://github.com/biomejs/biome/pull/6339Arcs by @arendjr in https://github.com/biomejs/biome/pull/6442noFloatingPromises by @arendjr in https://github.com/biomejs/biome/pull/6512noFloatingPromises by @arendjr in https://github.com/biomejs/biome/pull/6579next by @arendjr in https://github.com/biomejs/biome/pull/6581justfile by @paulo9mv in https://github.com/biomejs/biome/pull/6568noMagicNumbers rule that produces invalid MDX by @siketyan in https://github.com/biomejs/biome/pull/6598biome_line_index crate by @DavisVaughan in https://github.com/biomejs/biome/pull/6222syntax parser directive to Dockerfile by @JamBalaya56562 in https://github.com/biomejs/biome/pull/6619next into main by @arendjr in https://github.com/biomejs/biome/pull/6583entropyThreshold option by @unvalley in https://github.com/biomejs/biome/pull/6642whitespaceSensitivity is strict by @dyc3 in https://github.com/biomejs/biome/pull/6673. a valid char in tag names by @dyc3 in https://github.com/biomejs/biome/pull/66931 / value by @unvalley in https://github.com/biomejs/biome/pull/6696// biome-ignore-all file-level suppressions by @sterliakov in https://github.com/biomejs/biome/pull/6712PackageJson size by @arendjr in https://github.com/biomejs/biome/pull/6754Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.0.6...@biomejs/biome@2.1.0
The following code is now reported as invalid when the limit of maximum lines is set to 2:
#6557 fd68458 Thanks @ematipico! - Fixed a bug where Biome didn't provide all the available code actions when requested by the editor.
#6511 72623fa Thanks @Conaclos! - Fixed #6492. The
organizeImports assist action no longer duplicates a comment at the start of
the file when :BLANK_LINE: precedes the first import group.
#6557 fd68458 Thanks @ematipico! - Fixed #6287 where Biome Language Server didn't adhere to the settings.requireConfiguration option when pulling diagnostics and code actions.
Note that for this configuration be correctly applied, your editor must support dynamic registration capabilities.
#6551 0b63b1d Thanks @Conaclos! - Fixed #6536. useSortedKeys no longer panics in some edge cases where object spreads are involved.
#6503 9a8fe0f Thanks @ematipico! - Fixed #6482 where nursery rules that belonged to a domain were incorrectly enabled.
#6565 e85761c Thanks @daivinhtran! - Fixed #4677: Now the noUnusedImports rule won't produce diagnostics for types used in JSDoc comment of exports.
#6166 b8cbd83 Thanks @mehm8128! - Added the nursery rule noExcessiveLinesPerFunction.
This rule restrict a maximum number of lines of code in a function body.
The following code is now reported as invalid when the limit of maximum lines is set to 2:
function foo() {
const x = 0;
const y = 1;
const z = 2;
}
The following code is now reported as valid when the limit of maximum lines is set to 3:
const bar = () => {
const x = 0;
const z = 2;
};
#6553 5f42630 Thanks @denbezrukov! - Fixed #6547. Now the Biome CSS parser correctly parses @starting-style when it's used inside other at-rules. The following example doesn't raise an error anymore:
@layer my-demo-layer {
@starting-style {
div.showing {
background-color: red;
}
}
}
#6458 05402e3 Thanks @ematipico! - Fixed an issue where the rule useSemanticElements used the incorrect range when positioning suppression comments.
#6560 6d8a6b9 Thanks @siketyan! - Fixed #6559: the error message on detected a large file was outdated and referred a removed configuration option files.ignore.
#6458 05402e3 Thanks @ematipico! - Fixed #6384. The rule useAltText now emits a diagnostic with a correct range, so suppression comments can work correctly.
#6518 7a56288 Thanks @wojtekmaj! - Fixed #6508, where the rule noUselessFragments incorrectly flagged Fragments containing HTML entities as unnecessary.
#6517 c5217cf Thanks @arendjr! - Fixed #6515. When using the
extends field to extend a configuration from an NPM package, we now accept the
condition names "biome" and "default" for exporting the configuration in
the package.json.
This means that where previously your package.json had to contain an export
declaration similar to this:
{
"exports": {
".": "./biome.json"
}
}
You may now use one of these as well:
{
"exports": {
".": {
"biome": "./biome.json"
}
}
}
Or:
{
"exports": {
".": {
"default": "./biome.json"
}
}
}
#6219 a3a3715 Thanks @huangtiandi1999! - Added new nursery rule noUnassignedVariables, which disallows let or var variables that are read but never assigned.
The following code is now reported as invalid:
let x;
if (x) {
console.log(1);
}
The following code is now reported as valid:
let x = 1;
if (x) {
console.log(1);
}
#6395 f62e748 Thanks @mdevils! - Added the new nursery rule noImplicitCoercion, which disallows shorthand type conversions in favor of explicit type conversion functions.
Example (Invalid): Boolean conversion using double negation:
!!foo;
!!(foo + bar);
Example (Invalid): Number conversion using unary operators:
+foo;
-(-foo);
foo - 0;
foo * 1;
foo / 1;
Example (Invalid): String conversion using concatenation:
"" + foo;
foo + "";
`` + foo;
foo += "";
Example (Invalid): Index checking using bitwise NOT:
~foo.indexOf(1);
~foo.bar.indexOf(2);
Example (Valid): Using explicit type conversion functions:
Boolean(foo);
Number(foo);
String(foo);
foo.indexOf(1) !== -1;
#6544 f28b075 Thanks @daivinhtran! - Fixed #6536. Now the rule noUselessFragments produces diagnostics for a top-level useless fragment that is in a return statement.
#6320 5705f1a Thanks @mdevils! - Added the new nursery rule useUnifiedTypeSignature, which disallows overload signatures that can be unified into a single signature.
Overload signatures that can be merged into a single signature are redundant and should be avoided. This rule helps simplify function signatures by combining overloads by making parameters optional and/or using type unions.
Example (Invalid): Overload signatures that can be unified:
function f(a: number): void;
function f(a: string): void;
interface I {
a(): void;
a(x: number): void;
}
Example (Valid): Unified signatures:
function f(a: number | string): void {}
interface I {
a(x?: number): void;
}
Example (Valid): Different return types cannot be merged:
interface I {
f(): void;
f(x: number): number;
}
#6545 2782175 Thanks @ematipico! - Fixed #6529, where the Biome Language Server would emit an error when the user would open a file that isn't part of its workspace (node_modules or external files).
Now the language server doesn't emit any errors and it exits gracefully.
#6524 a27b825 Thanks @vladimir-ivanov! - Fixed #6500: The useReadonlyClassProperties rule now correctly marks class properties as readonly when they are assigned in a constructor, setter or method,
even if the assignment occurs inside an if or else block.
The following code is now correctly detected by the rule:
class Price {
#price: string;
@Input()
set some(value: string | number) {
if (
value === undefined ||
value === null ||
value === "undefined" ||
value === "null" ||
Number.isNaN(value)
) {
this.#price = "";
} else {
this.#price = "" + value;
}
}
}
#6355 e128ea9 Thanks @anthonyshew! - Added a new nursery rule noAlert that disallows the use of alert, confirm and prompt.
The following code is deemed incorrect:
alert("here!");
#6548 37e9799 Thanks @ematipico! - Fixed #6459, where the Biome LSP was not taking into account the correct settings when applying source.fixAll.biome code action.
useUnifiedTypeSignature rule by @mdevils in https://github.com/biomejs/biome/pull/6320noImplicitCoercion rule by @mdevils in https://github.com/biomejs/biome/pull/6395useAtlText by @ematipico in https://github.com/biomejs/biome/pull/6458files.ignore with files.includes in the error message by @siketyan in https://github.com/biomejs/biome/pull/6560Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.0.5...@biomejs/biome@2.0.6
Now Biome will use the file path passed via --std-file-path, and apply the configuration that matches it.
#6461 38862e6 Thanks @ematipico! - Fixed #6419, a regression where stdin mode would create a temporary new file instead of using the one provided by the user. This was an intended regression.
Now Biome will use the file path passed via --std-file-path, and apply the configuration that matches it.
#6480 050047f Thanks @Conaclos! - Fixed #6371.
useNamingConvention now checks the string case of objects' property shorthand.
#6477 b98379d Thanks @ematipico! - Fixed an issue where Biome formatter didn't format consistently CSS value separated by commas.
.font-heading {
- font-feature-settings: var(--heading-salt), var(--heading-ss06),
- var(--heading-ss11), var(--heading-cv09), var(--heading-liga),
- var(--heading-calt);
+ font-feature-settings:
+ var(--heading-salt), var(--heading-ss06), var(--heading-ss11),
+ var(--heading-cv09), var(--heading-liga), var(--heading-calt);
}
#6248 ec7126c Thanks @fireairforce! - Fixed grit pattern matching for different kinds of import statements.
The grit pattern import $imports from "foo" will match the following code:
import bar from "foo";
import { bar } from "foo";
import { bar, baz } from "foo";
Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.0.4...@biomejs/biome@2.0.5
ci: add permissions to release actions by @ematipico in https://github.com/biomejs/biome/pull/6436
7472d9e Thanks @ematipico! - Fixed an issue where the binary wasn't correctly mapped.Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.0.1...@biomejs/biome@v2.0.4
ci: use name instead of pattern for downloading artifact by @siketyan in https://github.com/biomejs/biome/pull/6785
085e3c7 Thanks @siketyan! - Fixed #6722: Missing dist/ files are now included in the @biomejs/js-api package. The previous release haven't fixed the issue properly.name instead of pattern for downloading artifact by @siketyan in https://github.com/biomejs/biome/pull/6785Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.1.1...@biomejs/js-api@2.0.3
> Due to a CI problem, this version is broken and not includes necessary files in the package.
[!WARNING] Due to a CI problem, this version is broken and not includes necessary files in the package.
#6780 563f3d5 Thanks @siketyan! - Fixed #6722: Missing dist/ files are now included in the @biomejs/js-api package. The previous release haven't fixed the issue properly.
Updated dependencies []:
Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/js-api@2.0.1...@biomejs/js-api@2.0.2
> Due to a CI problem, this version is broken and not includes necessary files in the package.
[!WARNING] Due to a CI problem, this version is broken and not includes necessary files in the package.
08652d0 Thanks @siketyan! - Fixed #6722: Missing dist/ files are now included in the @biomejs/js-api package.fit false positive by @dyc3 in https://github.com/biomejs/biome/pull/6761Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.1.0...@biomejs/js-api@2.0.1
[!WARNING] Biome v2.0.1 and v2.0.2 are currently broken, please use v2.0.0 in the meantime. See #6435 for details.
#6425 00e97ad Thanks @siketyan! - Fixed #6391: the rule noUselessFragments no longer reports a fragment that contains whitespaces which aren't trimmed by the runtime.
#6417 dd88565 Thanks @ematipico! - Fixed #6360: The following pseudo classes and elements are no longer reported by noUnknownPseudoClass or noUnknownPseudoElement rules.
:open::details-content::prefix::search-text::suffix#6417 dd88565 Thanks @ematipico! - Fixed #6357, where the boolean values weren't correctly merged when using the extends functionality. Now Biome correctly merges the values.
#6417 dd88565 Thanks @ematipico! - Fixed #6341: Fixed an issue where Biome would throw an error for the language tags nb and nn.
#6385 94142dd Thanks @siketyan! - Fixed #6377: The rule noSelfCompare now correctly compares two function calls with different arguments.
#6417 dd88565 Thanks @ematipico! - Fixed #6278: useExhaustiveDependencies no longer adds duplicated dependencies into the list.
#6417 dd88565 Thanks @ematipico! - Fix #6396, where vi.useFakeTimers() and vi.useRealTimers() incorrectly triggered React Hooks-related rules
#6417 dd88565 Thanks @ematipico! - Fixed a bug where Biome didn't correctly discover nested configuration files when using the lint command and the linter is disabled in the root configuration.
#6422 594ec50 Thanks @ematipico! - Removed the experimental rename feature from Biome LSP, which caused some issues inside existing editors such as Zed.
#6388 c6942d2 Thanks @siketyan! - Fixed #6375: the formatter no longer inserts an extra empty line before a semicolon when it has leading comments.
> Due to a CI problem, this version is broken and not includes necessary files in the package.
[!WARNING] Due to a CI problem, this version is broken and not includes necessary files in the package.
#6535 d8c08e1 Thanks @regseb! - Biome's JavaScript Bindings now have specific subpath exports for the three packages:
import { Biome } from "@biomejs/js-api/bundler";import { Biome } from "@biomejs/js-api/nodejs";import { Biome } from "@biomejs/js-api/web";These new subpath exports load only TypeScript declarations, whereas the default export loads declarations for all three packages. This was a problem if you checked your code with tsc.
Old usage with default export (no subpath):
import { Biome, Distribution } from "@biomejs/js-api";
const biome = await Biome.create({ distribution: Distribution.NODE });
New usage with a specific subpath export:
import { Biome } from "@biomejs/js-api/nodejs";
const biome = new Biome();
export * syntax by @arendjr in https://github.com/biomejs/biome/pull/6311noMisusedPromises by @arendjr in https://github.com/biomejs/biome/pull/6315TypeStore in global resolver by @arendjr in https://github.com/biomejs/biome/pull/6318swr fixtures by @arendjr in https://github.com/biomejs/biome/pull/6339Arcs by @arendjr in https://github.com/biomejs/biome/pull/6442noFloatingPromises by @arendjr in https://github.com/biomejs/biome/pull/6512noFloatingPromises by @arendjr in https://github.com/biomejs/biome/pull/6579next by @arendjr in https://github.com/biomejs/biome/pull/6581justfile by @paulo9mv in https://github.com/biomejs/biome/pull/6568noMagicNumbers rule that produces invalid MDX by @siketyan in https://github.com/biomejs/biome/pull/6598biome_line_index crate by @DavisVaughan in https://github.com/biomejs/biome/pull/6222syntax parser directive to Dockerfile by @JamBalaya56562 in https://github.com/biomejs/biome/pull/6619next into main by @arendjr in https://github.com/biomejs/biome/pull/6583entropyThreshold option by @unvalley in https://github.com/biomejs/biome/pull/6642whitespaceSensitivity is strict by @dyc3 in https://github.com/biomejs/biome/pull/6673. a valid char in tag names by @dyc3 in https://github.com/biomejs/biome/pull/66931 / value by @unvalley in https://github.com/biomejs/biome/pull/6696// biome-ignore-all file-level suppressions by @sterliakov in https://github.com/biomejs/biome/pull/6712PackageJson size by @arendjr in https://github.com/biomejs/biome/pull/6754Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.0.6...@biomejs/js-api@2.0.0
Biome now resolves globs and paths from the configuration. Before, paths and globs were resolved from the working directory.
Biome now raises a warning diagnostic for suppression comments that have <explanation> as reason.
<explanation> is provided as a placeholder when applying the suppression code fix from LSP editors.
Removed the --config-path argument from the biome lsp-proxy and biome start commands.
The option was overriding the configuration path for all workspaces opened in the Biome daemon, which led to a configuration mismatch problem when multiple projects are opened in some editors or IDEs.
If you are using one of our official plugins for IDEs or editors, it is recommended to update it to the latest version of the plugin, or you will get unexpected behavior.
If you are a developer of a plugin, please update your plugin to use the workspace/configuration response instead of using the --config-path argument. Biome's LSP will resolve a configuration in the workspace automatically, so it is recommended to keep it empty unless you are using a custom configuration path.
Downgraded some code fixes to unsafe which were previously safe.
The following rules have now a unsafe fix:
If you want to keep applying these fixes automatically, configure the rule fix as safe:
{
"linter": {
"rules": {
"correctness": {
"noFlatMapIdentity": {
"level": "error",
"fix": "safe"
},
"noUnusedImports": {
"level": "error",
"fix": "safe"
}
}
}
}
}
Previously the lint rules noControlCharactersInRegex and noMisleadingCharacterClass checked both regular expression literals like /regex/ and dynamically built regular expressions like new RegExp("regex").
Checking dynamically built regular expressions has many limitations, edge cases, and complexities. In addition, other rules that lint regular expressions don't check dynamically built regular expressions.
Rather than add support for other rules and have half-baked checking, we decided to remove support for dynamically built regular expressions.
Now the lint rules noControlCharactersInRegex and noMisleadingCharacterClass only check literals of regular expressions.
The lint rule noRestrictedGlobals now supports customizing message for each global name.
For example, the following configuration:
{
"options": {
"deniedGlobals": {
"$": "jQuery is not allowed. Use native DOM manipulation instead."
}
}
}
emits a diagnostic:
index.js:1:13 lint/style/noRestrictedGlobals ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Do not use the global variable $.
> 1 │ console.log($)
│ ^
2 │
ℹ jQuery is not allowed. Use native DOM manipulation instead.
Breaking Change: The option deniedGlobals is now a record instead of an array. Run biome migrate to migrate the configuration automatically.
Removed include and ignore fields in favor of the new field includes.
The Biome configuration file allows users to specify which files should be processed using glob patterns.
Prior to Biome 2.0, this was done using the include and ignore fields.
In Biome 2.0, include and ignore are removed and replaced by includes.
You can run biome migrate to convert include and ignore into includes automatically.
includes uses a different glob pattern format that fixes many issues and many other limitations that Biome users reported.
includes accepts an array of glob patterns.
A glob pattern starting with a ! is a negated pattern also called exception.
This replaces ignore patterns and allows users to create chains of include and ignore patterns.
Thus, it is now possible to include again a file previously ignored.
This was not possible with include and ignore, because ignore has priority over include.
The semantics of * and **/* have changed too.
Before, with include and ignore, the glob * was interpreted as **/*.
Now, with includes, the globs * and **/* are interpreted differently.
The first pattern matches all files that are inside a folder.
The second pattern recursively matches all files and sub-folders inside a folder.
Let's take an example. Given the following file hierarchy of a project...
├── biome.json
├── src
│ ├── file.js
│ ├── file.ts
│ ├── out.gen.js
│ ├── file.test.js
│ └── test
│ └── special.test.js
└── test ...
...we want:
.test.js, except special.test.ts.test directory.
The test directory is located at the root of the project.src directory, that don't end with .gen.js.
The src directory is located at the root of the project.noDefaultExport lint rule on files ending with .ts.Prior to Biome 2.0, the configuration might look like:
{
"files": {
"ignore": ["*.test.js", "test"]
},
"linter": {
"include": ["src/**"],
"ignore": ["*.gen.js"],
"enabled": true
},
"overrides": [
{
"include": ["*.ts"],
"linter": { "rules": { "style": { "noDefaultExport": "on" } } }
}
]
}
Unfortunately, the configuration doesn't quite fit what we want:
.test.js, including special.test.ts.test, including src/test.srcAll these issues and limitations are fixed with includes.
Here the migrated configuration:
{
"files": {
"includes": ["**", "!**/*.test.js", "**/special.test.ts", "!test"]
},
"linter": {
"includes": ["src/**", "!**/*.gen.js"],
"enabled": true
},
"overrides": [
{
"includes": ["**/*.ts"],
"linter": { "rules": { "style": { "noDefaultExport": "on" } } }
}
]
}
special.test.ts are unignored because the pattern appear after the pattern that ignore files ending with .test.js.test directory at the project's root is ignored because the pattern doesn't start with **/.src directory at the project's root only.Because includes pattern have a different pattern format than include and ignore we made some adjustments:
** in files.includes to ensure that all files are included before ignoring some of them.**/ for patterns that must match at any level of the file hierarchy.noUndeclaredVariables no longer reports TypeScript types.
In TypeScript projects, developers often use global declaration files to declare global types.
Biome is currently unable to detect these global types.
This creates many false positives for noUndeclaredVariables.
TypeScript is better suited to perform this kind of check.
As proof of this, TypeScript ESLint doesn't provide any rule that extends the no-undef ESLint rule.
This is why Biome 1.9 introduced a new option checkTypes which, when it is set to false, ignores undeclared type references.
The option was set to true by default.
This option is now set to false by default.
To get the previous behavior, you have to set checkTypes to true:
{
"linter": {
"rules": {
"correctness": {
"noUndeclaredVariables": {
"level": "on",
"options": { "checkTypes": true }
}
}
}
}
}
The rule noUnusedVariables no longer reports unused function parameters. Use noUnusedFunctionParameters.
Fixed #5564. noTypeOnlyImportAttributes now ignores files ending with the extension .ts when the type field of package.json is set to commonjs.
The Biome formatter no longer adds a trailing comma in .json files, even when json.formatter.trailingCommas is set to true.
Prettier 3.4 introduced a change in their normalization process of string literals: it no longer unescapes useless escape sequences. Biome now matches the new behavior of Prettier when formatting code. This affects the JSON and JavaScript formatters.
Reduced accepted values for formatter options:
--quote-style doesn't accept Single and Double anymore.--quote-properties doesn't accept AsNeeded and Preserve anymore.--semicolons doesn't accept AsNeeded and Always anymore.--arrow-parenthesis doesn't accept AsNeeded and Always anymore.--trailing-commas doesn't accept ES5, All and None anymore.--attribute-position doesn't accept Single and Multiline anymore.Removed the option enumMemberCase from the lint rule useNamingConvention.
enumMemberCase is an option that allows to customize the enforced case for TypeScript's enum members.
The option was introduced prior to the conventions option that allows to do the same thing.
The following configuration...
{
"linter": {
"rules": {
"style": {
"useNamingConvention": {
"level": "on",
"options": {
"enumMemberCase": "PascalCase"
}
}
}
}
}
}
...must be rewritten as:
{
"linter": {
"rules": {
"style": {
"useNamingConvention": {
"level": "on",
"options": {
"conventions": [
{
"selector": { "kind": "enumMember" },
"formats": ["PascalCase"]
}
]
}
}
}
}
}
}
Run biome migrate --write to turn enumMemberCase into conventions automatically.
Removed support for BIOME_LOG_DIR.
The environment variable BIOME_LOG_DIR isn't supported anymore.
Use BIOME_LOG_PATH instead.
Remove deprecated rules.
The following deprecated rules have been deleted:
noInvalidNewBuiltinnoNewSymboluseShorthandArrayTypeuseSingleCaseStatementnoConsoleLogRun the command biome migrate --write to update the configuration.
Removed the deprecated indentSize option.
The deprecated option indentSize, and its relative CLI options, has been removed:
formatter.indentSizejavascript.formatter.indentSizejson.formatter.indentSize--indent-size--javascript-formatter-indent-size--json-formatter-indent-sizeUse indentWidth and its relative CLI options instead.
Removed ROME_BINARY. Use BIOME_BINARY instead.
Removed support for legacy suppressions.
Biome used to support "legacy suppressions" that looked like this:
// biome-ignore lint(complexity/useWhile): reason
This format is no longer supported.
Removed support for max_line_length from .editorconfig, as it isn't part of the official spec anymore.
Removed support for rome-ignore suppression comments.
Use biome-ignore suppression comments instead.
Removed support for rome.json.
Use biome.json or biome.jsonc instead.
Removed the option all from the linter.
The options linter.rules.all and linter.rules.<group>.all has been removed.
The number of rules in Biome have increased in scope and use cases, and sometimes some of them can conflict with each other.
The option was useful at the beginning, but now it's deemed harmful, because it can unexpected behaviours in users projects.
To automatically remove it, run the following command:
biome migrate --write
Removed the option trailingComma from the configuration and the CLI. Use the option trailingCommas instead:
{
"javascript": {
"formatter": {
- "trailingComma": "es5"
+ "trailingCommas": "es5"
}
}
}
-biome format --trailing-comma=es5
+biome format --trailing-commas=es5
Removed --apply and --apply-unsafe.
The CLI options --apply and --apply-unasfe aren't accepted anymore. Use --write and --write --unafe instead:
-biome check --apply-unsafe
+biome check --write --unsafe
-biome check --apply
+biome check --write
Removed support for assert syntax.
Biome now longer supports the assert syntax, use the new with syntax instead
-import {test} from "foo.json" assert { for: "for" }
-export * from "mod" assert { type: "json" }
+import {test} from "foo.json" with { for: "for" }
+export * from "mod" with { type: "json" }
Fixed #5495: The rule
noBlankTarget has been
updated to accept the rel="noopener" in addition to rel="noreferrer".
In addition, an option has been added that allows rel="noreferrer" to be
disabled.
The rule has been moved from the a11y group to the security group.
The rule useImportRestrictions has been renamed to noPrivateImports, and its
functionality has been significantly upgraded.
Previously, the rule would assume that any direct imports from modules inside other directories should be forbidden due to their package private visibility.
The updated rule allows configuring the default visibility of exports, and
recognises JSDoc comments to override this visibility. The default visibility
is now **public**, but can be set to **package**, or even **private**.
Refer to the documentation of the rule to understand how to leverage the JSDoc comments.
noPrivateImports is now recommended by default.
The Biome daemon now reuses its workspace across connections. This allows multiple clients to reuse the same documents and other cached data that we extract from them.
This primarily affects our IDE extensions: If you open multiple IDEs/windows for the same project, they'll connect to the same daemon and reuse each other's workspace.
The Biome CLI is unaffected unless you opt in with the --use-server argument.
Biome no longer treats too large files as errors.
Previously, files that exceed the configured size limit would throw an error, and the CLI would exit with an error code.
Now, the CLI ignores the file, emits an information diagnostic and doesn't exit with an error code.
Change the group of some rules, promote nursery rules and update the recommended rule set.
The following rules have been moved to a new group:
New rules are incubated in the nursery group.
Once stable, we promote them to a stable group.
Use the biome migrate command to automatically migrate nursery rules that have been promoted.
The following CSS rules have been promoted:
The following GraphQL rules have been promoted:
The following JavaScript rules have been promoted:
Moreover, the following JavaScript rules are now recommended:
And the following style rules are no longer recommended:
Update the default severity level of lint rules.
Every diagnostic emitted by Biome has a severity level set to error, warn, or info.
Previously, all recommended lint rules had a default severity level set to error.
All other lint rules had a default severity level set to warn.
We have adjusted the default severity level of every rule, whether recommended or not, to better communicate the severity that a diagnostic highlights.
error.warn.info.You can use the CLI option --diagnostic-level=error to display only errors, or --diagnostic-level=warning to display both errors and warnings.
By default, all diagnostics are shown.
You can also use the CLI option --error-on-warnings to make the command fail when warnings are emitted.
Reworked some recommended rules recommended to be less pedantic and blocking. This is a breaking change if your project relied on those rules to block the CI in case of violations; if that's the case, you should raise their severity level to error.
Some rules aren't recommended anymore, and some others return a different severity.
The following rules return a warning diagnostic:
noDeletenoForEachnoSuspiciousSemicolonInJsxnoThisInStaticnoUnusedLabelsThe following rules return an information diagnostic:
noUselessCatchnoUselessConstructornoUselessEmptyExportnoUselessFragmentsnoUselessLabelnoUselessLoneBlockStatementsnoUselessSwitchCasenoUselessTernarynoUselessThisAliasnoUselessTypeConstraintnoFlatMapIdentityThe following rules aren't recommended anymore:
noDeletenoForEachThe rule noRenderReturnValue and useExhaustiveDependencies are only recommended when the react domain is enabled.
Renamed the global option --skip-errors to --skip-parse-errors.
Remove the code action quickfix.suppressRule.
The code action quickfix.suppressRule was removed in favour of two new code actions:
quickfix.suppressRule.inline.biome: a code action that adds a suppression comment for each violation.quickfix.suppressRule.topLevel.biome: a code action that adds a suppression comment at the top of the file which suppresses a rule for the whole file.Given the following code
let foo = "one";
debugger;
The code action quickfix.suppressRule.inline.biome will result in the following code:
// biome-ignore lint/style/useConst: <explanation>
let foo = "one";
// biome-ignore lint/suspicious/noDebugger: <explanation>
debugger;
The code action quickfix.suppressRule.topLevel.biome, instead, will result in the following code:
/** biome-ignore lint/suspicious/noDebugger: <explanation> */
/** biome-ignore lint/style/useConst: <explanation> */
let foo = "one";
debugger;
Changed default formatting of package.json.
When Biome encounters a file called package.json, by default it will format the file with all objects and arrays expanded.
- { "name": "project", "dependencies": { "foo": "latest" } }
+ {
+ "projectName": "project",
+ "dependencies": {
+ "foo": "^1.0.0"
+ }
+ }
The organizeImports is now part of Biome Assist.
The rule noVar now belongs to the suspicious group
The rule useWhile now belongs to the complexity group.
The rule useImportExtensions has been updated to suggest actual file extensions instead of guesses based on hueristics.
As part of this, the suggestedExtensions option has been removed. A simpler,
new option called forceJsExtensions has been introduced for those who use
tsc's "module": "node16" setting.
The rule also no longer reports diagnostics to add an extension when the path doesn't exist at all, with or without extension.
Fixed #4545: useNamingConvention now correctly ignores declarations inside TypeScript's external modules.
The following interface name is no longer reported by the rule:
declare module "myExternalModule" {
export interface my_INTERFACE {}
}
The rule useAltText no longer checks the element's attributes containing object spread.
The following code doesn't trigger the rule anymore:
<img src="test.png" alt={alt} {...restProps}></img>
The rule useNamingConvention no longer accepts non-ASCII characters by default.
Prior to Biome 2.0, non-ASCII names were accepted by default. They are now rejected.
For example, the following code is now reported as invalid by the useNamingConvention rule.
let johnCafé;
If you want to allow non ASCII filenames and non-ASCII identifiers, you need to set the requireAscii options in your Biome configuration file to false:
{
"linter": {
"rules": {
"style": {
"useFilenamingConvention": {
"level": "on",
"options": {
"requireAscii": false
}
}
"useFilenamingConvention": {
"level": "on",
"options": {
"requireAscii": false
}
}
}
}
}
}
Renamed the rule noUnnecessaryContinue to noUselessContinue. Run the command biome migrate to update your configuration.
Renamed the rule noMultipleSpacesInRegularExpressionLiterals to noAdjacentSpacesInRegex. Run the command biome migrate to update your configuration.
An option called allowNoReferrer has been added to the
noBlankTarget rule.
By default, noBlankTarget accepts both rel="noopener" and rel="noreferrer"
with links that have target="_blank". This is because the latter implies the
former, so either one is sufficient to mitigate the security risk.
However, allowing rel="noreferrer" may still be undesirable, because it can
break tracking, which may be an undesirable side-effect. As such, you can set
allowNoReferrer: false to only accept rel="noopener".
Added new option javascript.parser.jsxEverywhere. This new option allows to control whether Biome should expect JSX syntax in .js/.mjs/.cjs files.
When jsxEverywhere is set to false, having JSX syntax like <div></div> inside .js/.mjs/.cjs files will result in a parsing error.
Despite the name of the option, JSX is never supported inside .ts files. This is because TypeScript generics syntax may conflict with JSX in such files.
This option defaults to true.
Add a new JS assist rule - useSortedKeys which enforces ordering of a JS object properties.
This rule will consider spread/calculated keys e.g [k]: 1 as non-sortable.
Instead, whenever it encounters a non-sortable key, it will sort all the
previous sortable keys up until the nearest non-sortable key, if one exist.
This prevents breaking the override of certain keys using spread keys.
Source: https://perfectionist.dev/rules/sort-objects
// Base
// from
const obj = {
b: 1,
a: 1,
...g,
ba: 2,
ab: 1,
set aab(v) {
this._aab = v;
},
[getProp()]: 2,
aba: 2,
abc: 3,
abb: 3,
get aaa() {
return "";
},
};
// to
const obj = {
a: 1,
b: 1,
...g,
set aab(v) {
this._aab = v;
},
ab: 1,
ba: 2,
[getProp()]: 2,
get aaa() {
return "";
},
aba: 2,
abb: 3,
abc: 3,
};
Added the new rule noFloatingPromises.
Added the new rule noImportCycles.
Added the new rule noTsIgnore.
Added the new rule noUnwantedPolyfillio.
Added a format option expand for Javascript and JSON formatters.
The option allows to enforce the formatting of arrays and objects on multiple lines, regardless of their length.
It has three options:
When set to auto (default), objects are expanded if the first property has a leading newline.
Arrays are collapsed when they fit to a single line.
For example, both styles below are considered as already formatted:
const obj = {
foo: "bar",
};
const obj = { foo: "bar" };
When set to always, objects and arrays are always expanded.
When set to never, objects and arrays are never expanded when they fit in a single line.
It is equivalent to Prettier's Object Wrap option with collapse.
The nursery rule noUnresolvedImports has been added.
Importing a non-existing export is an error at runtime or build time. With this rule, Biome can detect such incorrect imports and report errors for them.
Note that if you use TypeScript, you probably don't want to use this rule, since TypeScript already performs such checks for you.
The rule noFocusedTests can now detect the usage of focused tests inside loops.
// invalid
describe.only.each([["a"], ["b"]])("%s", (a) => {});
it.only.each([["a"], ["b"]])("%s", (a) => {});
test.only.each([["a"], ["b"]])("%s", (a) => {});
// valid
describe.each([["a"], ["b"]])("%s", (a) => {});
it.each([["a"], ["b"]])("%s", (a) => {});
test.each([["a"], ["b"]])("%s", (a) => {});
Linter groups now accept new options to enable/disable all rules that belong to a group, and control the severity of the rules that belong to those groups.
For example, you can downgrade the severity of rules that belong to "style" to emit "info" diagnostics:
{
"linter": {
"rules": {
"style": "info"
}
}
}
You can also enable all rules that belong to a group using the default severity of the rule using the "on" option:
{
"linter": {
"rules": {
"complexity": "on"
}
}
}
Biome assist is a new feature of the Biome analyzer. The assist is meant to provide actions. Actions differ from linter rules in that they aren't meant to signal errors.
The assist will provide code actions that users can opt into via configuration or via IDEs/editors, using the Language Server Protocol.
The assist is enabled by default. However, you can turn if off via configuration:
{
"assist": {
"enabled": false
}
}
You can turn on the actions that you want to use in your configuration. For example, you can enable the useSortedKeys action like this:
{
"assist": {
"actions": {
"source": {
"useSortedKeys": "on"
}
}
}
}
Alternatively, IDE/editor users can decide which action to apply on save directly from the editor settings, as long as the assist is enabled.
For example, in VS Code you can apply the useSortedKeys action when saving a file by adding the following snippet in settings.json:
{
"editor.codeActionsOnSave": {
"source.biome.useSortedKeys": "explicit"
}
}
In Zed, you can achieve the same by adding the following snippet in ~/.config/zed/settings.json:
{
"code_actions_on_format": {
"source.biome.useSortedKeys": true
}
}
Biome migrate eslint outputs a better overriding behavior.
A Biome rule can have multiple ESLint equivalent rules. For example, useLiteralKeys has two ESLint equivalent rules: dot-notation and @typescript-eslint/dot-notation.
Previously, Biome wouldn't always enable a Biome rule even if one of its equivalent rules was enabled. Now Biome uses the higher severity level of all the equivalent ESLint rules to set the severity level of the Biome rule.
The following ESLint configuration...
{
"rules": {
"@typescript-eslint/dot-notation": "error",
"dot-notation": "off"
}
}
...is now migrated to...
{
"linter": {
"rules": {
"complexity": {
"useLiteralKeys": "error"
}
}
}
}
...because error is higher than off.
Add useSymbolDescription.
Enhanced the command migrate eslint. Now the command shows which ESLint rules were migrated,
and which rules aren't supported yet.
./eslint.config.js migrate ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ℹ 42% (3/7) of the rules have been migrated.
ℹ Migrated rules:
- getter-return
- prefer-const
- @typescript-eslint/require-await
ℹ Rules that can be migrated to an inspired rule using --include-inspired:
- @typescript-eslint/parameter-properties
ℹ Rules that can be migrated to a nursery rule using --include-nursery:
- @typescript-eslint/switch-exhaustiveness-check
ℹ Stylistic rules that the formatter may support (manual migration required):
- semi
ℹ Unsupported rules:
- block-scoped-var
configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ℹ Migration results:
- ./biome.json: configuration successfully migrated.
Suppression of syntax rules
Added support for suppressing syntax rules. Syntax rules are particular rules meant to complement the parser, hence they can't be configured.
Biome now allows to suppress those rules. This can, for example, be useful in case the rule is affected by a bug. However, this is more an escape hatch, so if a syntax rule requires a suppression, please file an issue.
Example:
// biome-ignore syntax/correctness/noTypeOnlyImportAttributes: bug
import type { MyType } from "my-esm-pkg" with { "resolution-mode": "import" };
Biome now requires all biome-ignore-start suppressions to have an equivalent biome-ignore-end comment.
Add a new lint rule noConstantBinaryExpression.
This rule is inspired from ESLint's no-constant-binary-expression rule.
The CLI options --only and --skip now accept rule and action names without prefixing the group name.
Previously --only=noDebugger was rejected.
You had to add the group name: --only=suspicious/noDebugger.
Fixed #3574: noUnusedImports now reports empty named imports and suggests their removal.
The rule now suggests the removal of empty named imports such as:
- import {} from "mod";
Added the new rule useAdjacentGetterSetter, which enforces getters and setters for the same property
to be adjacent in class and object definitions.
Example (Invalid): Name getter and setter are not adjacent:
class User {
get name() {
return this._name;
}
constructor() {}
set name(value) {
this._name = value;
}
}
**Example (Invalid): Getter should go before the setter.
const user = {
set name(value) {
this._name = value;
},
get name() {
return this._name;
},
};
Example (Valid): Name getter and setter are adjacent:
class User {
get name() {
return this._name;
}
set name(value) {
this._name = value;
}
get age() {
return this._age;
}
set age(age) {
this._age = age;
}
}
Added new rule useConsistentResponse which suggests to use static Response.json() and Response.redirect() methods instead of new Response when possible.
Example:
new Response(JSON.stringify({ value: 1 }));
Response.json({ value: 1 });
Biome users can now configure code actions from linter rules as well as assist actions directly in the settings of their IDE/editor.
For example, let's consider the lint rule noSwitchDeclarations, which has an unsafe fix.
Previously, if you wanted to use this rule, you were "forced" to enable it via configuration, and if you wanted to apply its fix when you saved a file, you were forced to mark the fix as safe:
{
"linter": {
"rules": {
"correctness": {
"noSwitchDeclarations": {
"level": "error",
"fix": "safe"
}
}
}
}
}
Now, you can benefit from the code action without making the fix safe for the entire project. IDEs and editors that are LSP compatible allow to list a series of "filters" or code actions that can be applied on save. In the case of VS Code, you will need to add the following snippet in the settings.json:
{
"editor.codeActionsOnSave": {
"quickfix.biome.correctness.noSwitchDeclarations": "explicit"
}
}
Upon save, Biome will inform the editor the apply the code action of the rule noSwitchDeclarations.
Fixed #3401: noUnusedImports now keeps comments separated from the import with a blank line.
For example:
// Orphan comment
- // Header comment
- import {} from "mod";
Added a new propertyAssignment option to the noParameterAssign rule.
This option allows to configure whether property assignments on function parameters are permitted.
By default, propertyAssignment is set to allow.
Setting it to deny enforces stricter immutability by disallowing property mutations on function parameters.
The formatter option bracketSpacing is now also supported in JSON files.
useValidTypeof now accepts comparisons with variables.
Previously, the rule required to compare a typeof expression against another typeof expression or a valid string literal. We now accept more cases, notably comparison against a variable:
if (typeof foo === bar) {
// ...
}
Added the new rule noNestedComponentDefinitions,
which disallows nested component definitions in React components.
This rule is useful for preventing potential performance issues and improving code readability by ensuring that components are defined at the top level.
Example (Invalid):
function ParentComponent() {
function ChildComponent() {
return <div>Hello</div>;
}
return <ChildComponent />;
}
Example (Valid):
function ChildComponent() {
return <div>Hello</div>;
}
function ParentComponent() {
return <ChildComponent />;
}
Added the new rule noDestructuredProps, which disallow the use of destructured props in Solid projects.
You can now enable lint rules using the default severity suggested by Biome using the new variant "on", when enabling a rule.
For example, the default severity of the rule style.noVar is error, so you would use "on", and then linting a code that uses var, will result in an error:
{
"linter": {
"recommended": false,
"rules": {
"style": {
"noVar": "on"
}
}
}
}
// main.js
var name = "tobias";
The command biome lint main.js will result in an error due to the default severity assigned to noVar.
Refer to the documentation page of each rule to know their suggested diagnostic severity, or use the command biome explain <RULE_NAME>:
biome explain noVar
Biome VCS integration now supports nested ignore files.
For git, if a .gitignore is found in a nested folder root/packages/foo/, and it contains the pattern dist/, only files and directories inside root/packages/foo/dist are matched.
Added the rule useUniqueElementIds.
This rule disallows the use of static IDs in React components. It encourages to generate unique IDs for accessibility purposes using useId.
The following code is now reported as invalid:
function App() {
return <div id="static-id" />;
}
The following code is now reported as valid:
import { useId } from "react";
function App() {
const id = useId();
return <div id={id} />;
}
Added the new JavaScript rule useConsistentObjectDefinition rule. The rule enforces a consistent style for the definition of objects:
By default, the rule enforces a shorthand style:
const validShorthand = {
// Property shorthand
foo,
// Method shorthand
method() {
return "method";
},
};
Alternatively, the rule can be configured to enforce an explicit style:
const invalidExplicit = {
// Basic property shorthand violations
foo: foo,
// Method shorthand violations
method: function () {
return "method";
},
};
Introduced more advanced logging capabilities:
Every Biome CLI command can now be passed a --log-file=<path> argument, which
will write all log messages for that invocation to the given path instead of
stdout.
In addition, the --log-level parameter now also accepts a tracing value.
When --log-level=tracing is used, Biome also prints timing information from
tracing spans to the log.
Combined with Biome's ability to print logs in JSON format, and the jq command
line utility, this allows you to perform advanced analysis on Biome's internal
performance.
For example, if you want to figure out which paths take the longest when building the module graph, you can use the following commands:
biome lint --log-level=tracing --log-kind=json --log-file=tracing.json
cat tracing.json | jq '. | select(.span.name == "update_module_graph") | { path: .span.path, time_busy: .["time.busy"], time_idle: .["time.idle"] }' > filtered.json
Now you will have a file called filtered.json with all the relevant timings,
together with the paths used during the invocations.
Added options to suspicious/noConfusingLabels to allow specific labels.
Fixed #4549: noUnknownProperty now accepts more known CSS properties.
- ['anchor-default', 'anchor-scroll', 'inset-area', 'position-animation', 'position-fallback', 'position-fallback-bounds', 'position-try-options']
+ ['anchor-scope', 'interpolate-size', 'line-fit-edge', 'masonry', 'masonry-auto-tracks', 'masonry-direction', 'masonry-fill', 'masonry-flow', 'masonry-slack', 'masonry-template-areas', 'masonry-template-tracks', 'position-anchor', 'position-area', 'position-try-fallbacks', 'position-visibility', 'scroll-start-target', 'text-box', 'view-transition-class', 'view-transition-group']
This change replaces deprecated properties, improving CSS validation.
LSP clients can now override the configuration path for each workspace, by responding to
workspace/configuration requests.
Added the new CSS rule noImportantStyles, which prevents the use of !important inside CSS declarations.
Biome now emits a warning diagnostic if the configuration contains an out-of-sync schema URL.
Introduced a new configuration setting files.experimentalScannerIgnores.
This setting may be used to configure a set of file and folder names that should be unconditionally ignored by Biome's scanner.
Biome maintains an internal list of default ignore entries, which is based on user feedback and which may change in any release. This setting allows overriding this internal list completely.
This is considered an advanced feature that users should not need to tweak themselves, but they can as a last resort. This setting can only be configured in root configurations, and is ignored in nested configs.
Entries must be file or folder names. Specific paths and globs are not supported.
Examples where this may be useful:
{
"files": {
"experimentalScannerIgnores": [
// You almost certainly don't want to scan your `.git` folder, which
// is why it's already ignored by default:
".git",
// But the scanner does scan `node_modules` by default. If you
// *really* don't want this, you can ignore it like this:
"node_modules",
// But it's probably better to ignore a specific dependency.
// For instance, one that happens to be particularly slow to scan:
"RedisCommander.d.ts",
],
},
}
Please be aware that rules relying on the module graph or type inference information may be negatively affected if dependencies of your project aren't (fully) scanned.
Added the new rule useSingleJsDocAsterisk which enforces JSDoc comment lines to start with a single asterisk.
// Invalid
/**
** Description
*/
// Valid
/**
* Description
*/
The CLI flag --javascript-attribute-position was renamed to --javascript-formatter-attribute-position for consistency.
Introduced the domains linter feature. The Biome linter now has a new way to opt-in rules, with a concept called domains.
Domains can be seen as concepts shared by different rules.
You can enable and disable multiple rules that belong to a domain. When you assign "all", Biome will enable all the rules, when you assign "none", Biome will disable the rules, when you assign "recommended", Biome will enable all rules of the domain that are recommended.
// biome.jsonc
{
linter: {
domains: {
test: "all", // all rules that belong to this domain are enabled
react: "recommended", // only the recommended rules from this domain are enabled
solid: "none", // rules related to Solid are disabled
},
},
}
New domains introduced:
test: it will enable rules:
noExportsInTestnoExcessiveNestedTestSuitesnoDuplicateTestHooksnoFocusedTests
And it will inject the following globals:afterafterAllafterEachbeforebeforeEachbeforeAlldescribeitexpecttestnext: it will enable rules for Next.js projects:
useExhaustiveDependenciesuseHookAtTopLevelnoImgElementnoHeadImportInDocumentnoHeadImportInDocumentreact: it will enable rules for React projects:
useExhaustiveDependenciesuseHookAtTopLevelsolid: it will enable rules for Solid projects:
noReactSpecificPropsFor more information regarding how Biome enables rules via domains, please refer to the documentation page of each rule.
Biome now prints diagnostics sorted by their severity. The order is the following:
This means that error diagnostics are printed last, so users can see them first.
Added the new rule useIterableCallbackReturn, which enforces consistent return values in iterable callbacks.
The following methods require a return value in their callback:
everyfilterfindfindIndexfindLastfindLastIndexflatMapmapreducereduceRightsomesorttoSorted
— from (when called on Array)The rule disallows a return value inside the callback of the method forEach.
Examples:
[].map(() => {
// Missing return value
});
[].forEach(() => {
return 1; // Disallowed
});
Added the new rule noReactPropAssign, based on the react-hooks rule react-hooks/react-compiler
The following code is now reported as invalid:
function Foo(props) {
props.bar = `Hello ${props.bar}`;
return <div>{props.bar}</div>;
}
The following code is now reported as valid:
function Foo({ bar }) {
bar = `Hello ${bar}`;
return <div>{bar}</div>;
}
Added new rule noBitwiseOperators, which disallows bitwise operators.
The Biome analyzer now supports a new top-level suppression. These suppression have to be placed at the top of the file, and they must be followed by two newlines (\n\n\).
The analyzer rules specified inside the block comment will be suppressed for the whole file.
In the example, we suppress the rules lint/style/useConst and lint/suspicious/noDebugger for the whole file:
// main.js
/**
* biome-ignore-all lint/style/useConst: i like let
* biome-ignore-all lint/suspicious/noDebugger: needed now
*/
let path = "/path";
let _tmp = undefined;
debugger;
In this other example, we suppress lint/suspicious/noEmptyBlock for a whole CSS file:
/**
/* biome-ignore-all lint/suspicious/noEmptyBlock: it's fine to have empty blocks
*/
a {
}
span {
}
A new diagnostic is emitted if biome-ignore-all suppression isn't placed at the top of the file:
file.js:3:1 suppressions/incorrect ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Top level suppressions can only be used at the beginning of the file.
2 │ let foo = 2;
> 3 │ /**
│ ^^^
> 4 │ * biome-ignore-all lint/style/useConst: reason
> 5 │ */
│ ^^
6 │ let bar = 33;
i Rename this to biome-ignore
2 │ let foo = 2;
3 │ /**
> 4 │ * biome-ignore-all lint/style/useConst: reason
│ ^^^^^^^^^^^^^^^^
5 │ */
6 │ let bar = 33;
Added the new rule useNumericSeparators, which encourages the use of numeric separators to improve readability.
useImportExtensions now checks imports with sub extensions.
- import 'styles.css'
+ import 'styles.css.ts'
It's possible to override the option files.maxSize. This option is helpful if you need to process specific files that exceed the default maxSize:
{
"overrides": [{
"includes": ["dist/**"]
"files": {
"maxSize": 20000
}
}]
}
Added the new CLI option called --threads to the ci command. It allows to control the numbers of threads that can be used when using the Biome CLI.
It's possible to use the environment variable BIOME_THREADS as an alternatives.
This feature is useful when running the CLI in environments that have limited resources, for example CI/CD.
biome ci --threads=1
BIOME_THREADS=1 biome ci
Added the new rule useObjectSpread, which prefers object spread syntax over Object.assign() when constructing new objects.
Example (Invalid): Using Object.assign with an empty object:
Object.assign({}, foo);
Object.assign({}, { foo: "bar" });
Example (Invalid): Using Object.assign with object literal as first argument:
Object.assign({ foo: "bar" }, baz);
Object.assign({}, baz, { foo: "bar" });
Example (Valid): Using object spread syntax:
({ ...foo });
({ ...baz, foo: "bar" });
Example (Valid): Modifying existing objects is allowed:
Object.assign(foo, { bar: baz });
Object.assign(foo, bar, baz);
Added an option to the lint command called --suppress. The new option suppresses a violation instead of applying a rule fix. The option accepts a string that is used as reason of the suppression comment.
When running the following command, it will add the suppression comment:
biome lint --write --suppress="Migration to Biome"
debugger;
foo == bar;
+ // biome-ignore lint/suspicious/noDebugger: Migration to Biome
debugger;
+ // biome-ignore lint/suspicious/noDoubleEquals: Migration to Biome
foo == bar;
Add an ignoreRestSiblings option into noUnusedVariables.
When this option is set to false, the rule will not ignore variables that created using the rest pattern:
{
"linter": {
"rules": {
"correctness": {
"noUnusedVariables": {
"level": "error",
"options": {
"ignoreRestSiblings": false
}
}
}
}
}
}
const { lorem, ...test } = bar; // the variable "test" will trigger the rule
console.log(lorem);
Upgraded some unsafe fixes to safe fixes.
The following rules have now a safe fix:
Added support for monorepos. The feature will work out of the box for the majority of the users. If your project
has nested configuration files, use the command biome migrate from the root of the project.
Monorepo support in Biome is done in a single way. Create a biome.json at the root of the project. This configuration
file is now called the root configuration. Then, each nested configuration file must specify the new field "root": false.
We also introduced a new microsyntax for extending a nested configuration from the root configuration, which is "extends": "//". This new syntax means “this config extends from the root config”. When using this microsyntax, you may omit the "root": false field as it is implied.
Note that nested configs are not required to extend from the root config, and you can still have independent nested configs, as well as nested configs that extend from other files. In those cases, "root": false must be specified explicitly.
Added support for formatting .html files. The formatting is considered experimental, and it's only opt-in via configuration:
{
"html": {
"formatter": {
"enabled": true
}
}
}
Biome formatter attempts to format as Prettier, however some default options might differ.
An option html.formatter.selfCloseVoidElements allows to control whether the trailing / of void elements should be printed.
By default, Biome formatter will remove the /:
- <input />
+ <input>
If you come from Prettier and you want to keep the same formatting behaviour, you should set the option to "always":
{
"html": {
"formatter": {
"selfCloseVoidElements": "always"
}
}
}
- <input>
+ <input />
Use to the command biome migrate prettier to apply this change automatically.
Added an unsafe fix to the rule useExhaustiveDependencies.
For example, this violation will provide the following code fix:
import { useEffect } from "react";
function MyComponent() {
let a = 1;
useEffect(() => {}, [a]);
}
× This hook specifies more dependencies than necessary: a
3 │ function MyComponent() {
4 │ let a = 1;
> 5 │ useEffect(() => {}, [a]);
│ ^^^^^^^^^
6 │ }
7 │
i This dependency can be removed from the list.
3 │ function MyComponent() {
4 │ let a = 1;
> 5 │ useEffect(() => {}, [a]);
│ ^
6 │ }
7 │
i Unsafe fix: Remove the extra dependencies from the list.
5 │ ··useEffect(()·=>·{},·[a]);
│ -
The rule useExhaustiveDependencies now reports a diagnostic when the dependency list is not an array literal.
Added the new rule useIndexOf, based on the unicorn rule prefer-array-index-of
Added a new rule useExhaustiveSwitchCases, which detects any missing cases for switch statements.
Currently, it supports only literal union types.
For example:
type Day =
| "Monday"
| "Tuesday"
| "Wednesday"
| "Thursday"
| "Friday"
| "Saturday"
| "Sunday";
const day: Day = "Monday";
let result = 0;
switch (day) {
case "Monday": {
result = 1;
break;
}
}
The switch statement is missing other cases than 'Monday', which will cause a runtime error.
To fix this issue, add missing cases or a default case to the statement.
Fixed #4416: The rules useExportType and useImportType now ignore TypeScript declaration files.
Added the new rule useForComponent.
This rule enforces usage of Solid's <For /> component for mapping an array to JSX elements.
Added new lint rule noShadow, a port of eslint's no-shadow.
This rule disallows variable declarations from shadowing variables declared in an outer scope. For example:
const foo = 1;
function bar() {
const foo = 2; // This variable shadows the outer foo
}
Add style option for the useImportType rule.
The rule now allows enforcing an import style for importing types. See the rule documentation for more details.
Added the new rule useJsonImportAttribute to enforce the use of import attributes for JSON modules.
This rule ensures that all imports of .json files include the with { type: "json" } assertion, which is required to inform the JavaScript runtime that the imported file should be parsed as JSON.
- import jsonData from './data.json';
+ import jsonData from './data.json' with { type: "json" };
- import jsonData from './data.json' with { someOtherAttribute: "value" };
+ import jsonData from './data.json' with { type: "json", someOtherAttribute: "value" };
This rule is based on the proposal in issue #6043.
useLiteralKeys now handles numeric keys and is declared as being the same rule as the ESLint no-useless-computed-key rule.
useNamingConmvention now ignores unused variables prefixed with an underscore _.
This avoids conflicts with the unsafe fix of noUnusedVariables.
The following code is now accepted because the variable is unused and prefixed with an underscore.
const _Unknown_Style = 0;
The package now requires v2 of the WebAssembly packages. The internal APIs of Workspace are now camelCase.
The rule useArrayLiterals now provides a code fix.
- const xs = new Array();
+ const xs = [];
The code fix is currently marked as unsafe. We plan to make it safe in a future release of Biome.
The command migrate is now able to migrate nested configuration files.
Added the new rule noRestrictedElements, which prevents use of the specified HTML elements and components.
Added the new lint rule noAwaitInLoop.
Fix #5001, where the CSS formatter removes whitespace from selector preceded by a comment
Fixed noUnusedVariables rule to suggest unsafe fix for unused function declarations.
Fixed a false positive of noUselessEscapeInRegex where \k was reported as useless in non-Unicode regular expressions.
Fixed an issue where the ordering of the diagnostics wasn't predictable.
Fixed a bug where the environment variable BIOME_CONFIG_PATH wasn't correctly picked up.
Biome logs a warning in case a folder contains biome.json and biome.jsonc, and it will use biome.json by default.
noUndeclaredVariables is now able to bind read of value to a type-only import in ambient contexts (#4526).
In the following code, A is now correctly bound to the type-only import.
Previously, A was reported as an undeclared variable.
import type { A } from "mod";
declare class B extends A {}
Fix #4317, setter parameter can contain a trailing comma, the following example will now parsed correctly:
export class DummyClass {
set input(value: string) {}
}
Fix #4575, don't wrap selector indentation after css comments.
Fix #4258, where fixed css parse error with @-moz-document url-prefix().
Fixed #4391: Some files from the .vscode directory are no longer incorrectly parsed as JSON.
The biome format command now correctly handles the --skip-errors option, allowing it to skip files with syntax errors and continue formatting the remaining valid files.
When this option is used, skipped syntax errors are reported as information, since the user is already aware of them.
biome migrate eslint now correctly resolves the scoped package named eslint-config.
Fixed #3836: The CSS parser will now correctly parse the following:
.foo {
color: red;
}
Fixed a bug where the related diagnostics attached to the main diagnostics didn't have a correct message.
Fixed noAccumulatingSpread not reporting calls to Object.assign. The following code will now be reported:
let a = [{ a: 1 }, { b: 2 }];
a.reduce((acc, val) => Object.assign(acc, val), []);
The summary reporter doesn't take --max-diagnostics into account anymore.
Fixed #4553: noUselessFragments will now correctly fix JSX attributes:
<Suspense
fallback={
<>
<span>Loading...</span>
</>
}
>
{children}
</Suspense>
becomes:
<Suspense fallback={<span>Loading...</span>}>{children}</Suspense>
Fixed #4528: biome migrate eslint now correctly handles shared ESLint configuration that don't follow the ESLint naming convention.
ESLint recommends that a package that exports a shared configuration be prefixed with eslint-config- or simply named eslint-config.
This is only a recommendation.
Packages that export shared configurations can have arbitrary names.
Biome is now able to load any package.
Fixed #4993: useAwait now correctly warn on functions with decorator with callback argument.
Fixed #4756: noDuplicateProperties now throws lint errors properly when we use @supports.
Fixed #5981, where noUnknownPseudoClass didn't take :global into consideration when cssModules is enabled.
Fixed #2406: Biome longer expands properties of object type annotations in the only function parameter to align with Prettier.
Fixed #4740: biome migrate eslint now correctly handles ESLint configuration with null values in file lists.
Fixed #4202: Align with Prettier in formatting test functions.
Fixed #342: The JavaScript parser now properly handles unterminated string literals, such as:
function Comp() {
return (
<a rel="
Fixed a bug where syntax rules didn't provide an automatic way to suppress the rule. Now the LSP will show supression actions if a syntax rule is violated.
Fixed a CSS parser error: @-moz-document url-prefix(https://example.com) and @-moz-document domain(example.com) are now valid.
Fixed #4967: The fix for useArrowFunction no longer breaks function bodies starting with {.
Fixed #5998. The rule noUnknownPseudoElement now correctly cheks names
of pseudo-element functions.
Fixed #5024: Added useJsxKeyInIterable rule to React domain.
Fixed #5410. Biome now correctly parse an .editorconfig that includes character classes in glob patterns.
Fixed #2260: The LSP server now returns correct text edits for the specified range in textDocument/rangeFormatting and textDocument/onTypeFormatting requests.
noUnusedVariables no longer reports top-level variables in a global declaration file as unused.
Type exports now support renaming types to default.
The following code is now parsed successfully:
export { type A as default } from "./b.ts";
Added proper support for arrow functions in the lint rule https://biomejs.dev/linter/rules/use-explicit-type/
The rule useNamingConvention no longer suggests renaming top-level variables in a global declaration file.
Improved context in error messages when migrating Prettier configurations
Allowed single spaces in useConsistentCurlyBraces rule.
Fixed #4413: The GraphQL formatter no longer adds a new line at the start of block comments on Windows.
Fixed #5407. Now the noUnusedImports code fix correctly keeps top-level comments that were attached to lone imports.
Fixed #3859: the --skip-parse-errors option is now applied to commands: lint, check, and ci.
The rage command now prints the configuration path relative to the working directory, if applicable.
Fixed #5606: We now correctly
handle .mjs extensions in Node.js packages with "type": "commonjs".
Fixed #1597: useExhaustiveDependencies no longer gets confused about the stability of dependencies by parentheses or type assertions.
Fixed #4751 by checking fragments inside JSXElement and conditional expressions.
For example, the following two cases will now be reported:
<section>
<>
<div />
<div />
</>
</section>
showFullName ? <>{fullName}</> : <>{firstName}</>;
The rule noFallthroughSwitchCase no longer panics on some incomplete code snippets.
Fixed #5007: Resolved false positives in noMissingVarFunction for container-name.
Fixed #4841: Shebang and top leading comments in .cjs files are now handled correctly
Example: shebang only (keep it as is)
#!/usr/bin/env node
Example: comments only (keep it as is)
// comment
Example: with shebang
- #!/usr/bin/env node"use strict";
+ #!/usr/bin/env node
+ "use strict";
let some_variable = "some value";
Example: with comment
- // comment
- "use strict"; // comment
+ "use strict";
+ // comment
let some_variable = "some value";
Example: with shebang and comment
- #!/usr/bin/env node"use strict";
- // comment
+ #!/usr/bin/env node
+ "use strict";
+ // comment
let some_variable = "some value";
Fixes useExhaustiveDependencies missing dependencies being defined after the hook itself failure.
Example:
import { useState, useEffect } from "react";
function MyComponent() {
useEffect(() => {
console.log(a);
}, []);
let a = 1;
}
Fixed #4714: Suppression comments no longer fail on functions that themselves contain suppression comments.
This now works correctly:
// biome-ignore lint/complexity/useArrowFunction: this suppression now works
const foo0 = function (bar: string) {
// biome-ignore lint/style/noParameterAssign: even if there are other suppressions inside
bar = "baz";
};
Add @vitest/eslint-plugin to list of Biome rule sources
Fixed useHookAtTopLevel rule to properly detect React components wrapped in memo and forwardRef, and correctly handle property accessors in control flow analysis.
The rule now correctly identifies hooks in components like:
const TestMemo = memo(
forwardRef((props, ref) => {
useEffect(() => {
const [test, setTest] = useState(1); // now properly flagged
}, []);
return <div ref={ref}>test</div>;
}),
);
And properly handles property accessors:
function ReactComponent() {
const testObj = {
get print() {
return "hello"; // no longer considered component return
},
};
const callback = useCallback(() => {}, []);
return <></>;
}
noMisleadingCharacterClass no longer panics on malformed escape sequences that end with a multi-byte character (#4587).
Fixed the flag --bracket-spacing that was duplicated between the global configuration and the language-specific override for JavaScript.
Fixed #4715: The useJsxKeyInIterable rule now reports missing keys inside switch and if statements.
const data = [
{ value: "a", type: "string" },
{ value: 9, type: "number" },
{ value: "c", type: "string" },
];
const MyComponent = () => {
return (
<>
{/* if statements */}
{data.map((x) => {
if (x.type === "string") {
return <div>{x.value}</div>; // no key, emits diagnostic
} else {
return <div>{x.value}</div>; // no key, emits diagnostic
}
})}
{/* switch statements */}
{data.map((x) => {
switch (x.type) {
case "string":
return <div>{x.value}</div>; // no key, emits diagnostic
case "number":
return <div>{x.value}</div>; // no key, emits diagnostic
default:
return <div key={x.value}>{x.value}</div>;
}
})}
</>
);
};
Fixed #4121: The CSS formatter no longer indents a selector when it has leading comments.
Fixed an issue where react lint rules could panic Biome when some incorrect code was analyzed.
Fixed [#4982](https://github.com/b
Note truncated.
<!-- Release notes generated using configuration in .github/release.yml at main -->
<!-- Release notes generated using configuration in .github/release.yml at main -->
spec_test.rs => spec_tests.rs by @arendjr in https://github.com/biomejs/biome/pull/6102ScanKind by @ematipico in https://github.com/biomejs/biome/pull/6099.d.ts files by @arendjr in https://github.com/biomejs/biome/pull/6115__where_am_i command by @nhedger in https://github.com/biomejs/biome/pull/6151update_service_data() unnecessarily by @arendjr in https://github.com/biomejs/biome/pull/6156useObjectSpread rule by @mdevils in https://github.com/biomejs/biome/pull/6129BIOME_CONFIG_PATH by @ematipico in https://github.com/biomejs/biome/pull/6181useHookAtTopLevel issues, improve react components detection by @mdevils in https://github.com/biomejs/biome/pull/6185Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.0.0-beta.5...@biomejs/biome@2.0.0-beta.6
<!-- Release notes generated using configuration in .github/release.yml at main -->
<!-- Release notes generated using configuration in .github/release.yml at main -->
--only and --skip by @Conaclos in https://github.com/biomejs/biome/pull/6004@keyframes by @ematipico in https://github.com/biomejs/biome/pull/6024\${ escape in template literals by @lucasweng in https://github.com/biomejs/biome/pull/6042useAdjacentGetterSetter rule by @mdevils in https://github.com/biomejs/biome/pull/5964useAdjacentGetterSetter by @mdevils in https://github.com/biomejs/biome/pull/6046workspace/configuration request to workspace folder by @nhedger in https://github.com/biomejs/biome/pull/6047noNestedComponentDefinitions rule by @mdevils in https://github.com/biomejs/biome/pull/6053extends in biome_cli by @arendjr in https://github.com/biomejs/biome/pull/6081Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/js-api@v0.8.0-beta.2...@biomejs/biome@2.0.0-beta.5
<!-- Release notes generated using configuration in .github/release.yml at main -->
<!-- Release notes generated using configuration in .github/release.yml at main -->
enforce-assist in ci by @ematipico in https://github.com/biomejs/biome/pull/5987noUnknownPseudoElement selector check by @ematipico in https://github.com/biomejs/biome/pull/5999Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.0.0-beta.3...@biomejs/biome@2.0.0-beta.4
<!-- Release notes generated using configuration in .github/release.yml at main -->
<!-- Release notes generated using configuration in .github/release.yml at main -->
getTypeInfo by @ematipico in https://github.com/biomejs/biome/pull/5815noShadow by @dyc3 in https://github.com/biomejs/biome/pull/5761node_modules when using the light scanner by @ematipico in https://github.com/biomejs/biome/pull/5827organize_imports analyzer to do action mutation by @bushuai in https://github.com/biomejs/biome/pull/5828Arc<T> to share PackageJson among analyzer rules by @siketyan in https://github.com/biomejs/biome/pull/5839node_modules for now by @arendjr in https://github.com/biomejs/biome/pull/5857should not generate diagnostics comment for tests by @minht11 in https://github.com/biomejs/biome/pull/5883files property in ESLint flat config by @siketyan in https://github.com/biomejs/biome/pull/5903--skip-parse-errors to lint, check and ci commands by @unvalley in https://github.com/biomejs/biome/pull/5780if and switch by @unvalley in https://github.com/biomejs/biome/pull/5909oxc-resolver 8 by @arendjr in https://github.com/biomejs/biome/pull/5922useExhaustiveSwitchCases - typescript-eslint/switch-exhaustiveness-check by @siketyan in https://github.com/biomejs/biome/pull/5762tower-lsp-server by @ematipico in https://github.com/biomejs/biome/pull/5930JsFunctionDeclaration by @daivinhtran in https://github.com/biomejs/biome/pull/5955Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.0.0-beta.2...@biomejs/biome@2.0.0-beta.3
<!-- Release notes generated using configuration in .github/release.yml at main -->
<!-- Release notes generated using configuration in .github/release.yml at main -->
noVar member inside existing list by @ematipico in https://github.com/biomejs/biome/pull/5470noBlankTarget by @arendjr in https://github.com/biomejs/biome/pull/5527noUnresolvedImports by @arendjr in https://github.com/biomejs/biome/pull/5530<li role="treeitem"> by @dyc3 in https://github.com/biomejs/biome/pull/5548DependencyGraph to ModuleGraph by @arendjr in https://github.com/biomejs/biome/pull/5561noImportantStyles by @ematipico in https://github.com/biomejs/biome/pull/5555noFloatingPromises by @arendjr in https://github.com/biomejs/biome/pull/5576noRestrictedElements by @mdevils in https://github.com/biomejs/biome/pull/5578biome_js_semantic::SemanticEventExtractor in biome_module_graph by @arendjr in https://github.com/biomejs/biome/pull/5616.mjs extension in CommonJS packages by @arendjr in https://github.com/biomejs/biome/pull/5630noConsole rule now correctly handles indirect console.log calls and references by @mdevils in https://github.com/biomejs/biome/pull/5648rand by @ematipico in https://github.com/biomejs/biome/pull/5662oxc_resolver by @ematipico in https://github.com/biomejs/biome/pull/5671Typed service and update noFloatingPromises by @arendjr in https://github.com/biomejs/biome/pull/5685noTsIgnore by @lixiaoyan in https://github.com/biomejs/biome/pull/5690Self where appropriate by @arendjr in https://github.com/biomejs/biome/pull/5699useNumericSeparators by @uncenter in https://github.com/biomejs/biome/pull/5635indent_size can set to tab in .editorconfig by @fireairforce in https://github.com/biomejs/biome/pull/5713style option by @Conaclos in https://github.com/biomejs/biome/pull/5717const exported variables by @ematipico in https://github.com/biomejs/biome/pull/5684node_modules by @ematipico in https://github.com/biomejs/biome/pull/5760--skip-errors by @unvalley in https://github.com/biomejs/biome/pull/5719useIterableCallbackReturn rule by @mdevils in https://github.com/biomejs/biome/pull/5754node:process import by @nhedger in https://github.com/biomejs/biome/pull/5779debug_type_info by @ematipico in https://github.com/biomejs/biome/pull/5786--skip-errors to --skip-parse-error by @unvalley in https://github.com/biomejs/biome/pull/5805ModuleId to ResolvedTypeId by @arendjr in https://github.com/biomejs/biome/pull/5809Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/js-api@v0.8.0-beta.1...@biomejs/biome@2.0.0-beta.2
<!-- Release notes generated using configuration in .github/release.yml at main -->
<!-- Release notes generated using configuration in .github/release.yml at main -->
Read our blog post announcement.
Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.0.0-beta...@biomejs/biome@2.0.0-beta.1
refactor: remove deprecated rules by @ematipico in https://github.com/biomejs/biome/pull/4766
<!-- Release notes generated using configuration in .github/release.yml at main -->
Read our blog post announcement.
noPackagePrivateImports rule by @arendjr in https://github.com/biomejs/biome/pull/4651noTsIgnore by @ematipico in https://github.com/biomejs/biome/pull/4650papaya instead of DashMap for workspace documents by @arendjr in https://github.com/biomejs/biome/pull/4624papaya in PathInterner by @arendjr in https://github.com/biomejs/biome/pull/4669all option by @ematipico in https://github.com/biomejs/biome/pull/4664Workspace scanner by @arendjr in https://github.com/biomejs/biome/pull/4682slotmap and simplify locking by @arendjr in https://github.com/biomejs/biome/pull/4696pre, script and style tags by @dyc3 in https://github.com/biomejs/biome/pull/4729noProcessGlobal rule by @wanghaoPolar in https://github.com/biomejs/biome/pull/4694useParseIntRadix - eslint/radix (#3932) by @Jantje19 in https://github.com/biomejs/biome/pull/4524tsconfig.*.json files as well known, allow comments and trailing comments by default by @dyc3 in https://github.com/biomejs/biome/pull/4771AppendOnlyVec for file_sources by @arendjr in https://github.com/biomejs/biome/pull/4772useWhile to complexity by @ematipico in https://github.com/biomejs/biome/pull/4777organizeImports by @ematipico in https://github.com/biomejs/biome/pull/4788bracket_same_line global by @dyc3 in https://github.com/biomejs/biome/pull/4790expand by @ematipico in https://github.com/biomejs/biome/pull/4819noNoninteractiveElementInteractions rule by @tunamaguro in https://github.com/biomejs/biome/pull/4358ROME_BINARY by @SuperchupuDev in https://github.com/biomejs/biome/pull/4853<pre> tag fixes by @dyc3 in https://github.com/biomejs/biome/pull/4869for statement by @arendjr in https://github.com/biomejs/biome/pull/4889max_line_length by @ematipico in https://github.com/biomejs/biome/pull/4894DependencyGraph by @arendjr in https://github.com/biomejs/biome/pull/4929requireAscii by @Conaclos in https://github.com/biomejs/biome/pull/4945noFloatingPromises rule for reguler async function by @kaykdm in https://github.com/biomejs/biome/pull/4911noImportCycles by @arendjr in https://github.com/biomejs/biome/pull/4948noFloatingPromises by @kaykdm in https://github.com/biomejs/biome/pull/4958map_or with is_ok_and and is_some_and by @unvalley in https://github.com/biomejs/biome/pull/4969needless_lifetimes clippy rule by @unvalley in https://github.com/biomejs/biome/pull/4973includes by @Conaclos in https://github.com/biomejs/biome/pull/4974useSortedProperties by @simon-paris in https://github.com/biomejs/biome/pull/4063gen-tw description by @bushuai in https://github.com/biomejs/biome/pull/5010noMissingVarFunction by @bushuai in https://github.com/biomejs/biome/pull/5008css option for whitespace sensitivity by @dyc3 in https://github.com/biomejs/biome/pull/5016@changesets for changelog automation by @ematipico in https://github.com/biomejs/biome/pull/5023useJsxKeyInIterable by @Jayllyz in https://github.com/biomejs/biome/pull/5043noConsole inside arrow function expressions by @ematipico in https://github.com/biomejs/biome/pull/5066insert_final_newline being unable to parse value unset by @dyc3 in https://github.com/biomejs/biome/pull/5067bracketSpacing option in JSON by @siketyan in https://github.com/biomejs/biome/pull/5083pkg.pr.new for preview releases by @ematipico in https://github.com/biomejs/biome/pull/5092FormatOptions by @ah-yu in https://github.com/biomejs/biome/pull/5088--javascript-attribute-position to --javascript-formatter-attribute-position by @siketyan in https://github.com/biomejs/biome/pull/5132bracketSpacing option for lang-specific override by @siketyan in https://github.com/biomejs/biome/pull/5130--suppress flag by @anthonyshew in https://github.com/biomejs/biome/pull/5121noAwaitInLoop by @unvalley in https://github.com/biomejs/biome/pull/5129ignore and include field by @Conaclos in https://github.com/biomejs/biome/pull/5158--javascript-object-wrap to --javascript-formatter-object-wrap by @siketyan in https://github.com/biomejs/biome/pull/5166overrides.include by @Conaclos in https://github.com/biomejs/biome/pull/5176enumMemberCase option by @Conaclos in https://github.com/biomejs/biome/pull/5178test-node-api job to a new pull_request_node.yml workflow by @siketyan in https://github.com/biomejs/biome/pull/5192noDestructuredProps by @ematipico in https://github.com/biomejs/biome/pull/4983useConsistentObjectDefinition rule by @dy0gu in https://github.com/biomejs/biome/pull/5042check,lint,format commands by @MaxtuneLee in https://github.com/biomejs/biome/pull/4796noFloatingPromises by @kaykdm in https://github.com/biomejs/biome/pull/5206use<> to RPIT's by @siketyan in https://github.com/biomejs/biome/pull/5222allowLabels option to suspicious/noConfusingLabels by @tim-we in https://github.com/biomejs/biome/pull/5230useSymbolDescription by @minht11 in https://github.com/biomejs/biome/pull/5232udeps workflows by @arendjr in https://github.com/biomejs/biome/pull/5265HtmlName into HtmlTagName and HtmlAttributeName by @dyc3 in https://github.com/biomejs/biome/pull/5267objectWrap option into expand by @siketyan in https://github.com/biomejs/biome/pull/5262--config-path from lsp-proxy and daemon by @siketyan in https://github.com/biomejs/biome/pull/5235{ by @siketyan in https://github.com/biomejs/biome/pull/5170jsxEverywhere to .ts files by @arendjr in https://github.com/biomejs/biome/pull/5297RuleDomain and RuleDomainValue types to the generated declaration by @siketyan in https://github.com/biomejs/biome/pull/5306--threads to ci command by @ematipico in https://github.com/biomejs/biome/pull/5337noMultipleSpacesInRegularExpressionLiterals by @ematipico in https://github.com/biomejs/biome/pull/5351TERMINAL_EMULATOR variable by @arendjr in https://github.com/biomejs/biome/pull/5359noAdjacentSpacesInRegex by @ematipico in https://github.com/biomejs/biome/pull/5392ignoreRestSiblings option to noUnusedVariables by @iamakulov in https://github.com/biomejs/biome/pull/5157useExhaustiveDependencies rule by @siketyan in https://github.com/biomejs/biome/pull/5326noUnknownFunction by @ematipico in https://github.com/biomejs/biome/pull/5404noPrivateImports by @arendjr in https://github.com/biomejs/biome/pull/5388noPrivateImports doc tweak by @arendjr in https://github.com/biomejs/biome/pull/5412Full Changelog: https://github.com/biomejs/biome/compare/cli/v1.9.5-nightly.81fdedb...@biomejs/biome@2.0.0-beta
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →