Dev workflow and DevOps · Comparison
ESLint vs Prettier
They answer different questions. ESLint asks whether code is likely to be wrong; Prettier decides how it should look. Most JavaScript projects run both.
2 options · 8 questions side by side · updated
| Compare | ESLint | Prettier |
|---|---|---|
| What it does | Finds bugs and risky patterns | Rewrites layout into one style |
| Example catch | Unused variables, misused React hooks | Quotes, semicolons, indentation, line breaks |
| Changes your code | Reports problems; auto-fixes some rules | Reformats the whole file every time |
| Configuration | Many rules and plugins to choose from | A handful of options, by design |
| Languages | JavaScript and TypeScript, more via plugins | JS, TS, CSS, HTML, JSON, Markdown, YAML |
| Speed | Slower on big codebases, above all with type-aware rules | Fast |
| Where it runs | Editor, pre-commit hook and CI | Editor on save, pre-commit hook and CI |
| Faster alternatives | Biome, oxlint | Biome, dprint |
How to choose between ESLint and Prettier
- Use both: Prettier for formatting and ESLint for code quality, with eslint-config-prettier switching off the style rules that overlap.
- Consider Biome when one fast tool that both lints and formats is worth giving up some ESLint plugins.
The options
More comparisons
- Git vs GitHubThe two names are often used as if they meant the same thing. Git is the program that records a project's history on your machine; GitHub is a website that hosts Git repositories and adds collaboration on top.
- npm vs pnpm vs Yarn vs BunAll four install packages from the same npm registry and read the same package.json. They differ in speed, disk use, strictness and what else comes bundled with them.
- Docker vs KubernetesThey are partners more than rivals. Docker packages an app into a container and runs it; Kubernetes runs many containers across a fleet of machines and keeps them healthy.
- Vercel vs Netlify vs Cloudflare PagesAll three build your site from Git, serve it from a global CDN and give every branch a preview link. They differ in which frameworks they favour, how they bill, and what sits around the hosting.
- Serverless vs VPS vs shared hostingThree very different ways to run the server side of a site. They trade off how much you manage, how costs behave as traffic grows, and what kinds of software you can run.
- AWS vs Google Cloud vs AzureThe three big clouds offer similar building blocks under different names. The choice usually comes down to your team's experience, the ecosystem you already use and a few standout services.
Crafted in the dark. Shipped to the world.
Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.