Biome
Installation
Make sure @biomejs/biome is installed as peer dependency.
Add
biome
field to plugin config. The exact command to be run can be further configured withcommand
andflags
parameters. See the documentation for CLI reference. The default root of the command uses Vite's root.TIP
Do not add
--apply
to the flags since the plugin is only aiming at checking issues.js// e.g. export default { plugins: [ checker({ biome: { command: 'check', }, }), ], }
Configuration
Advanced object configuration table of options.biome
field | Type | Default value | Description |
---|---|---|---|
command | 'check' | 'lint' | 'format' | 'ci' | 'lint' in dev, 'check' in build. | The command to execute biome with. |
flags | string | '' | CLI flags to pass to the command. |
dev.logLevel | ('error' | 'warning')[] | ['error', 'warning'] | (Only in dev mode) Which level of Biome diagnostics should be emitted to terminal and overlay in dev mode. |
dev.command | 'check' | 'lint' | 'format' | 'ci' | '' | Command to run in dev mode, it will override command config in dev mode. |
dev.flags | string | '' | Flags to run in dev mode, it will override flags config in dev mode. |
build.command | 'check' | 'lint' | 'format' | 'ci' | '' | Command to run in build mode, it will override command config in build mode. |
build.flags | string | '' | Flags to run in build mode, it will override flags config in build mode. |