I recently made a switch in my development setup that I'm pretty excited about. I've been using Biome instead of the usual ESLint and Prettier combo, and I wanted to share my experience with you.
Why I Chose Biome
I'll be honest, I was pretty comfortable with ESLint and Prettier. But when I heard about Biome's promises, I couldn't resist giving it a try:
- Speed Demon: Biome is blazing fast! We're talking 35x faster than Prettier and 15x faster than ESLint. For someone like me who works on larger projects, this is a game-changer.
- One Tool to Rule Them All: I love simplifying my workflow, and Biome does just that. It combines linting, formatting, and even import sorting into one tool. Fewer dependencies, less configuration headaches!
- Smart Defaults: Biome comes with rules inspired by popular ESLint plugins, so I didn't feel like I was sacrificing functionality.
Want to give it a shot? Here's how I set it up:
Install Packages
Initialize Configuration
Run the following command to create a biome.json
configuration file:
This will generate a basic biome.json
file:
Migrate from ESLint & Prettier
Use these commands to migrate your existing ESLint and Prettier configurations:
For a more comprehensive migration, including ESLint-inspired rules, use:
Configure Biome
After migration, you can customize your biome.json
file. Here's an example configuration. For a complete list of Biome's linting rules, check out their Rules Source.
Usage
To format your code with Biome, run: