- Install biomjs
bun add --dev --exact @biomejs/biome
--exact
ensures that everyone within a project has exactly the same version of Biome.
- Configure biom using json file
bunx biome init
- Add vscode specific settings
- Create file at
.vscode/settings.json
- Add below configuration in
settings.json
{
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
}
- Install Biom extension for vscode
- Restart / Reload the vscode
Ctrl + Shift + p
orCmd + Shift + p
then> Reload Window
- Go to each file and save (
Ctrl + S
orCmd + S
)