Skip to content

Instantly share code, notes, and snippets.

@rifayetuxbd
Last active January 29, 2025 02:39
Show Gist options
  • Save rifayetuxbd/3ec31bf5d5e2c3bc1d1f426d2510cb4f to your computer and use it in GitHub Desktop.
Save rifayetuxbd/3ec31bf5d5e2c3bc1d1f426d2510cb4f to your computer and use it in GitHub Desktop.
Use biom js as linter formatter

Steps for configuring biom js

  1. Install biomjs bun add --dev --exact @biomejs/biome
  • --exact ensures that everyone within a project has exactly the same version of Biome.
  1. Configure biom using json file bunx biome init
  2. 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"
	}
}
  1. Install Biom extension for vscode
  1. Restart / Reload the vscode Ctrl + Shift + p or Cmd + Shift + p then > Reload Window
  2. Go to each file and save (Ctrl + S or Cmd + S)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment