- Install biomjs
bun add --dev --exact @biomejs/biome
--exactensures 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 + porCmd + Shift + pthen> Reload Window - Go to each file and save (
Ctrl + SorCmd + S)