Assist
Biome assist offers a series of actions (or rules) meant to improve code quality and DX of the users.
Contrary to linter rules, assist actions are meant for editors and IDEs, and they can include things like sorting of properties or fields, simplification of binary expressions and more. The assist has 3 actions.
Assist actions are very close LSP code actions in semantics.
Biome assist is enabled by default. In the following example, you can enable the assist and enable the action useSortedKeys:
{ "assist": { "enabled": true, "actions": { "source": { "useSortedKeys": "on" } } }}Enforce assist actions via CLI
Section titled Enforce assist actions via CLIAssist actions can be enforced via CLI via check command:
npx @biomejs/biome checkyarn biome checkpnpm biome checkbunx biome checkdeno run -A npm:@biomejs/biome checkHowever, the check is meant for running multiple tools at once, so if you want to check only the assist actions, you should run:
npx @biomejs/biome check --formatter-enabled=false --linter-enabled=false --organize-imports-enabled=falseyarn biome check --formatter-enabled=false --linter-enabled=false --organize-imports-enabled=falsepnpm biome check --formatter-enabled=false --linter-enabled=false --organize-imports-enabled=falsebunx biome check --formatter-enabled=false --linter-enabled=false --organize-imports-enabled=falsedeno run -A npm:@biomejs/biome check --formatter-enabled=false --linter-enabled=false --organize-imports-enabled=false