Skip to content

BiomeJS - The All-in-one JavaScript Toolchain

NPM Last Update NPM Downloads NPM Version

BiomeJS is an all-in-one tool for JavaScript and TypeScript projects, combining a linter, formatter, and bundler. It is designed to be fast, modern, and easy to configure, offering an alternative to traditional tools like ESLint, Prettier, and Webpack.


Install biome via npm or yarn:

Terminal window
npm install --save-dev @biomejs/biome
# or
yarn add --dev @biomejs/biome

Terminal window
npx @biomejs/biome init

Add a script to your package.json:

{
"scripts": {
"lint": "biome lint ./src",
"format": "biome format ./src --write"
}
}

Create a biome.json file:

{
"organizeImports": {
"enabled": true
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2
}
}

Biome integrates with VSCode and other editors via dedicated extensions.


  • Automate Linting: Integrate Biome into your Git hooks.
  • Customize Rules: Adapt linting rules to your project.
  • Use the Formatter: Maintain consistent code style.

For more details, check out the BiomeJS official documentation.