Are you trying to start a war? LOL The configurable options in prettier are there because they are too controversial for there to be one universally accepted standard. It's all personal opinion. Answer from CreativeTechGuyGames on reddit.com
Prettier
prettier.io › docs › configuration
Configuration File · Prettier
Here’s an annotated description of how different properties map to Prettier’s behavior: # Stop the editor from looking for .editorconfig files in the parent directories # root = true [*] # Non-configurable Prettier behaviors charset = utf-8 insert_final_newline = true # Caveat: Prettier won’t trim trailing whitespace inside template strings, but your editor might.
Fraser Boag
boag.online › notepad › post › full-prettier-prettierrc-config
My full Prettier (.prettierrc) config file - Fraser Boag
Naturally this stuff is all really opinionated - you may want to use tabs instead of spaces, you may dislike trailing semi-colons, and so on - but hopefully this can serve as a nice foundation for anyone new to Prettier to then spin off based on your own preferences.
Videos
08:43
Part 14 | Prettier | Code Formatting | eslint-prettier-config | ...
13:37
How to Setup Prettier in VSCode and Format your Project - YouTube
02:11
How to use Prettier in VS Code - Code Formatting - YouTube
12:11
How To Setup Prettier - YouTube
07:39
Prettier vs Eslint - Which One Is Better? - YouTube
GitHub
github.com › bahmutov › prettier-config-example
GitHub - bahmutov/prettier-config-example: Example project with different per-folder prettier config and VSCode formatting on save
Example project with different per-folder prettier config and VSCode formatting on save - bahmutov/prettier-config-example
Starred by 32 users
Forked by 11 users
Languages JavaScript 89.0% | CSS 5.7% | TypeScript 5.3%
Michelelarson
michelelarson.com › prettier-config
Prettier Config Generator
I've made a few things for fun: GUMDROPS GumGum React Component Library PRETTIER CONFIG UI to generate a Prettier config HOME COUNTDOWN Chrome extension tells you how long until you can leave work and go home RUBBER DUCK DEBUGGING When your code won't work and you just need someone to talk ...
Prettier
prettier.io › docs › options
Options · Prettier
You need to explicitly tell them ... for example on when to break a line. In other words, don’t try to use printWidth as if it was ESLint’s max-len – they’re not the same. max-len just says what the maximum allowed line length is, but not what the generally preferred length is – which is what printWidth specifies. Setting max_line_length in an .editorconfig file will configure Prettier’s print ...
Prettier
prettier.io › docs › sharing-configurations
Sharing configurations · Prettier
You first need to install your published configuration, for example: npm · yarn · pnpm · bun · npm install --save-dev @username/prettier-config · yarn add --dev @username/prettier-config · pnpm add --save-dev @username/prettier-config ...
Reddit
reddit.com › r/reactjs › what is your go to prettierrc configs?
r/reactjs on Reddit: What is your go to prettierrc configs?
March 16, 2022 -
Or am I an old geezer and folks have moved on from prettier?
Whats the best way to get some nice on save features in vs code if not prettier?
If prettier, what are you settings? (single quotes, line width, etc)
Nothing better than writing dog shit and clicking save and seeing it reformat to perfection
Top answer 1 of 10
42
Are you trying to start a war? LOL The configurable options in prettier are there because they are too controversial for there to be one universally accepted standard. It's all personal opinion.
2 of 10
29
"endOfLine": "lf", "semi": false, "singleQuote": true, "tabWidth": 2, "trailingComma": "es5"
GitHub
github.com › prettier › eslint-config-prettier
GitHub - prettier/eslint-config-prettier: Turns off all rules that are unnecessary or might conflict with Prettier. · GitHub
Some of the rules that eslint-config-prettier turns off may be deprecated, or even removed from ESLint. This is perfectly fine, but if you really need to omit the deprecated and removed rules, you can do so by setting the ESLINT_CONFIG_PRETTIER_NO_DEPRECATED environment variable to a non-empty value. For example:
Author prettier
Gleb Bahmutov
glebbahmutov.com › blog › configure-prettier-in-vscode
How to configure Prettier and VSCode | Better world by better software
April 23, 2024 - When setting up Prettier it is important to configure it per-project. Not every project uses the same code style, thus it is important to respect the style of whatever project you are currently working in. The demo repo bahmutov/prettier-config-example has two subfolders, each with its distinct ...
npm
npmjs.com › package › prettier-config-standard
prettier-config-standard - npm
source: https://github.com/prettier/prettier/blob/cacaa92a3f0acf9618f54cd60c9b36b37744dbde/docs/configuration.md · For example, if you need to change it so that semicolons are required:
» npm install prettier-config-standard
Published Aug 11, 2023
Version 7.0.0
Author Nick Petruzzelli
Michael Currin
michaelcurrin.github.io › dev-cheatsheets › cheatsheets › javascript › format-and-lint › prettier › configure.html
Config files | Dev Cheatsheets
See Configuration file in the docs. ... Prettier uses .editorconfig by default.
GitHub
github.com › npetruzzelli › prettier-config-standard
GitHub - npetruzzelli/prettier-config-standard: A Prettier shareable config for projects using 'Prettier' and 'JavaScript Standard Style' as ESLint rules or separate processes. · GitHub
source: https://github.com/prettier/prettier/blob/cacaa92a3f0acf9618f54cd60c9b36b37744dbde/docs/configuration.md · For example, if you need to change it so that semicolons are required:
Author npetruzzelli
Code-boost
code-boost.com › prettier-setup-guide
Prettier Code Formatter Setup Guide – Code Boost
After installation, create a .prettierrc file in your project’s root directory. This file allows you to specify your formatting preferences. Below is an example configuration:
npm
npmjs.com › package › eslint-config-prettier
eslint-config-prettier - npm
A configurable whitelist is used to ensure no whitespace-sensitive strings are edited. ... Using various tags, functions and comments. unicorn/template-indent by default formats some of the same tagged templates, which can cause conflicts. For example, the rule and Prettier disagree about ...
» npm install eslint-config-prettier
Published Jul 18, 2025
Version 10.1.8
Author Simon Lydell
Top answer 1 of 10
103
For those trying to quickly change Prettier settings for VS Code. Here are the steps:
- Go to FILE -> PREFERENCES -> SETTINGS. (VS Code Menus)
- Settings window should open. Above (Top) there is a search. Type "Prettier"
- You should see the available Prettier settings. You can modify them :)
2 of 10
55
The new way to configure prettier settings:
- at the root of your project folder, create a new config file (I'd suggest calling it either
.prettierrc.jsonor just.prettierrc) - in that new file, add json custom settings: my go-to settings for JS are as follows:
{
"trailingComma": "none",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}
I'd suggest doing this in each of your projects and including in any source control, that way every pull of the repo will automatically set some base settings for that developer's instance of prettier.
Prettier
prettier.io › blog › 2025 › 02 › 09 › 3.5.0
Prettier 3.5: New objectWrap option, experimentalOperatorPosition option and TS config file support! · Prettier
February 9, 2025 - // Input const obj1 = { name1: "value1", name2: "value2", }; const obj2 = { name1: "value1", name2: "value2", }; // Prettier 3.4 const obj1 = { name1: "value1", name2: "value2", }; const obj2 = { name1: "value1", name2: "value2" }; // Prettier ...
GitHub
github.com › prettier › prettier-vscode
GitHub - prettier/prettier-vscode: Visual Studio Code extension for Prettier · GitHub
You can use VS Code settings, prettier configuration files, or an .editorconfig file. The VS Code settings are meant to be used as a fallback and are generally intended only for use on non-project files. It is recommended that you always include a prettier configuration file in your project specifying all settings for your project.
Author prettier