Back to articles
Biome Has a Free API — Lint and Format JavaScript 100x Faster Than ESLint

Biome Has a Free API — Lint and Format JavaScript 100x Faster Than ESLint

via Dev.to JavaScriptAlex Spinov

Biome is a toolchain for JavaScript, TypeScript, JSON, CSS, and more. It's a linter AND formatter in one tool — and it's 100x faster than ESLint + Prettier because it's written in Rust. Why Biome? 100x faster than ESLint + Prettier (benchmarked) One tool — replaces both ESLint AND Prettier Zero config — works out of the box with sensible defaults 200+ lint rules — covers ESLint, TypeScript-ESLint, import rules Quick Start npm install --save-dev --save-exact @biomejs/biome npx @biomejs/biome init // biome.json (auto-generated) { "$schema" : "https://biomejs.dev/schemas/1.9.0/schema.json" , "organizeImports" : { "enabled" : true }, "linter" : { "enabled" : true }, "formatter" : { "enabled" : true } } Commands # Format npx biome format --write . # Lint npx biome lint . # Both + import sorting npx biome check --write . # CI mode (fail on issues) npx biome ci . Configuration { "formatter" : { "indentStyle" : "space" , "indentWidth" : 2 , "lineWidth" : 100 }, "javascript" : { "formatter" : {

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
3 views

Related Articles