🌐
Biome
biomejs.dev
Biome, toolchain of the web
Biome is a fast formatter for JavaScript, TypeScript, JSX, TSX, JSON, HTML, CSS and GraphQL that scores 97% compatibility with Prettier, saving CI and developer time.
Linter
For example, the noDebugger denies the use of debugger statements in JavaScript code, and it emits a diagnostic when it finds one.
Formatter
Biome is an opinionated formatter that supports multiple languages. It follows a similar philosophy to Prettier, only supporting a few options to avoid debates over styles, turning into debates over Biome options.
Getting Started
Biome is best installed as a development dependency of your projects, but it is also available as a standalone executable that doesn’t require Node.js · Although Biome can run with zero configuration, you’ll likely want to tweak some settings to suit your project’s needs, in which case ...
Configuration
How to customize and configure Biome with biome.json.
🌐
Prettier
prettier.io
Prettier · Opinionated Code Formatter · Prettier
Try It OnlineInstall Prettier · Limited edition tshirts are now available to buy! $10 per tshirt goes to maintain the project. An opinionated code formatter · Supports many languages · Integrates with most editors · Has few options » · Your code is formatted on save · No need to discuss style in code review · Saves you time and energy · And more » · JavaScript ·
Discussions

Prettier 2.0 – Opinionated JavaScript formatter
I feel like the cost of changing defaults is wildly underestimated because it's decided on by people who are so deeply engaged in the product · It means either all my code now needs a config file added or all my code will need to be updated More on news.ycombinator.com
🌐 news.ycombinator.com
90
207
March 23, 2020
Prettier: Pros and Cons

(prettier author here)

I would encourage you to set the few flags that prettier has to match what your existing codebase uses and to run it through your codebase, do git diff and see how it behaves.

If it's not outputting code that's too crazy in your opinion, then don't use it :)

More on reddit.com
🌐 r/javascript
16
8
April 28, 2016
Prettier removing camelCasing from css-in-js?

I've been wanting to use camelCase in my cssjs code too for some time.

I like react css convensions and I've used this for a while, and when I moved to jss (which is like emotion) I've used react conventions in my code as well using their library require('react/lib/CSSPropertyOperations');.

Hope it helps

More on reddit.com
🌐 r/javascript
6
7
May 8, 2016
[AskJS] eslint or prettier or both with vim + ALE? Can I get rid of prettier or is it required?
I don't think this is a vim specific issue. ESLint and Prettier are two separate tools with separate purpose. There is some overlap and you can configure ESLint to do some formatting, but Prettier cannot do linting. Often people use both and ensure that they don't overlap so ESLint purely focuses on functional things and Prettier purely focuses on formatting. More on reddit.com
🌐 r/javascript
4
2
November 27, 2021
🌐
Js
extension.js.org › docs › integrations › prettier
Prettier - Extension.js
Prettier is an opinionated code formatter that automatically formats your code to ensure consistent style throughout your project.
🌐
GitHub
github.com › prettier › prettier
GitHub - prettier/prettier: Prettier is an opinionated code formatter. · GitHub
JavaScript · TypeScript · Flow · JSX · JSON CSS · SCSS · Less HTML · Vue · Angular GraphQL · Markdown · YAML Your favorite language? Prettier is an opinionated code formatter.
Starred by 51.8K users
Forked by 4.7K users
Languages   JavaScript 83.3% | TypeScript 6.2% | CSS 3.0% | HTML 3.0% | SCSS 1.5% | Less 1.0%
🌐
Hacker News
news.ycombinator.com › item
Prettier 2.0 – Opinionated JavaScript formatter | Hacker News
March 23, 2020 - I feel like the cost of changing defaults is wildly underestimated because it's decided on by people who are so deeply engaged in the product · It means either all my code now needs a config file added or all my code will need to be updated
🌐
Brian Cline
brcline.com › home › articles › using prettier to automatically format javascript
Using Prettier to Automatically Format JavaScript - Brian Cline
April 29, 2020 - If you aren’t using Standard JavaScript or ESLint, you should be perfectly fine choosing “Prettier – Code formatter”.
🌐
Reddit
reddit.com › r/javascript › prettier: pros and cons
r/javascript on Reddit: Prettier: Pros and Cons
April 28, 2016 -

One of my co-workers recently adopted Prettier, and at first I thought it sounded great. Automated formatting so you never have style complaints in PRs again? Sign me up.

But then I tried actually using it, and its ESLint plug-in, and was mildly horrified to discover that Prettier (through ESLint) was telling me to get rid of my trailing commas! It's not the 1990's anymore: trailing commas have been embraced throughout the JS community. Heck, even ESlint itself requires them by default.

Then I went and read the Prettier site, and it was basically full of quotes to the effect of "our team used to think about stuff, but thinking is hard, so now we use Prettier and just conform to whatever it wants, and now no one thinks anymore. Yay." And the rest of the site make site also makes it clear that Prettier is an opinionated library.

So, I was hoping to hear from people who have used Prettier and can share their experiences. Is banning trailing commas just one poor decision in an otherwise great library, or does adopting Prettier basically mean being shoehorned into whatever the Prettier people feel is best (even if they're wrong)?

To be fair, I know you can re-enable trailing commas with a flag. I'm just more worried about other "opinionated" calls the library might make that don't have flags (and which I might not discover until we've completely adopted Prettify).

Top answer
1 of 5
7

(prettier author here)

I would encourage you to set the few flags that prettier has to match what your existing codebase uses and to run it through your codebase, do git diff and see how it behaves.

If it's not outputting code that's too crazy in your opinion, then don't use it :)

2 of 5
6

As I'm sure you've noticed, the JS world has endless disagreements about style:

  • Tabs vs. spaces

  • Semicolons vs. no semicolons

  • Trailing commas vs. no trailing commas

  • Single quote vs. double quote

I am sure you can think of many others. In each of these debates, each side has has compelling arguments with different trade-offs. After all, if there was an obvious "best way", we wouldn't even be having these debates.

The prettier project has identified a handful of these issues that are deal-breakers for some people, and have made those configurable. Specifically, they let you adjust indentation, quotes, semicolons, trailing commas, and bracket spacing. These are the hot-button issues that nobody can agree on, and you are encouraged to configure them as you like. Prettier has some default settings that reflect what's popular right now, but those defaults aren't binding. Just change them and be happy.

Where prettier really shines is in breaking long statements over multiple lines. Before I adopted prettier, I would use a whole bunch of different styles without even realizing it. For example, I would do things like:

somethingReallyLong(parameterOne, parameterTwo,
  someCall (
    longParameter,
    anotherLongParameter
  ))

It's not really clear what the "right" way to format this statement would be, and there are multiple valid approaches. With prettier, however, I know that I will always get the following:

somethingReallyLong(
  parameterOne,
  parameterTwo,
  someCall(longParameter, anotherLongParameter)
)

It's self-consistent, and it looks good. More importantly, I don't waste any brain cycles thinking about line breaking anymore. I just write the statement in one long line, and when I'm done, I hit the "format document" shortcut to make everything flow. Whenever I collaborate with a coworker, I am always amazed how much time they spend formatting code. Copy-paste, re-indent, fix brackets, adjust long lines, rinse, and repeat. With prettier, all this monkey work is a thing of the past. For that, I am willing to pay the price of a few minor style quibbles (everything else I have configured to taste).

Find elsewhere
🌐
npm
npmjs.com › package › prettier
prettier - npm
January 21, 2026 - JavaScript · TypeScript · Flow · JSX · JSON CSS · SCSS · Less HTML · Vue · Angular GraphQL · Markdown · YAML Your favorite language? Prettier is an opinionated code formatter.
      » npm install prettier
    
Published   Jan 21, 2026
Version   3.8.1
Author   James Long
🌐
Monsterlessons-academy
monsterlessons-academy.com › posts › formatting-code-with-prettier-in-javascript
Prettier - Best Code Formatter for Javascript, React, Vue, Html, Css
Prettier is the best code formatter for lots of languages like Javascript, React, Vue, Html, Css. With the tools like Eslint you spend a lot of time tuning rules and config files.
🌐
JetBrains
jetbrains.com › help › webstorm › prettier.html
Prettier | WebStorm Documentation
Prettier is a tool to format files in various languages, like TypeScript, JavaScript, CSS, HTML, JSON, and others. With WebStorm, you can format selected code fragments as well as entire files or directories using the Reformat with Prettier action.
🌐
freeCodeCamp
freecodecamp.org › news › how-to-use-prettier-in-visual-studio-code
How To Use Prettier in Visual Studio Code
March 18, 2024 - Prettier not only supports all JavaScript libraries and frameworks, such as Angular, React, Vue, and Svelte, but also works with TypeScript.
🌐
OpenReplay
blog.openreplay.com › using-prettier-with-vscode-to-write-javascript
Using Prettier with VSCode to write JavaScript
June 7, 2023 - Prettier is a powerful code formatting tool that can help improve the consistency, readability, and maintainability of your JavaScript codebase.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Prettier - Code formatter - Visual Studio Marketplace
January 21, 2026 - Extension for Visual Studio Code - Code formatter using prettier
🌐
LogRocket
blog.logrocket.com › home › using prettier and eslint for javascript formatting
Using Prettier and ESLint for JavaScript formatting - LogRocket Blog
October 22, 2024 - Prettier and ESLint are code formatting and linting tools, respectively, that can be used together to improve overall code quality and streamline the development process. Linting and pretty printing JavaScript code can:
🌐
DEV Community
dev.to › g_abud › prettier-and-the-beauty-of-opinionated-code-formatters-pfg
Prettier and the Beauty of Opinionated Code Formatters - DEV Community
June 25, 2020 - For those of you that don't know, Prettier is an opinionated code formatter for Javascript/Typescript, HTML, JSX, and more. It is lightweight, requires next to no configuration, and automatically formats code for you.
🌐
JSON Formatter
jsonformatter.org › jsbeautifier
Best JSBeautifier to beautify / format JavaScript
Javascript Beautifier Online helps to Edit, View, Analyse Javascript data along with beautify and formatting Javascript data.
🌐
Scott Sauber
scottsauber.com › 2017 › 06 › 10 › prettier-format-on-save-never-worry-about-formatting-javascript-again
Prettier + Format On Save = Never worry about formatting JavaScript again – Scott Sauber
June 12, 2021 - Prettier takes JavaScript code in, runs some of its formatting rules against it, and then spits out that JavaScript code with its formatting rules applied.
🌐
GeeksforGeeks
geeksforgeeks.org › typescript › how-to-set-up-prettier-in-your-javascript-typescript-project
How to Set Up Prettier in Your JavaScript/TypeScript Project? - GeeksforGeeks
July 23, 2025 - Prettier is a driven code formatter that helps you cooperate and maintain code consistency throughout your JavaScript/TypeScript project. It makes the process of formatting code simpler, allowing developers to concentrate on the functionality ...
🌐
Beautifier
beautifier.io
Online JavaScript beautifier
Chrome, in case the built-in CSS and javascript formatting isn't enough for you: — Quick source viewer by Tomi Mickelsson (github, blog), — Javascript and CSS Code beautifier by c7sky, — jsbeautify-for-chrome by Tom Rix (github), — Pretty Beautiful JavaScript by Will McSweeney — Stackoverflow Code Beautify by Making Odd Edit Studios (github).