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
A .prettierrc file written in JSON or YAML.
Fraser Boag
boag.online › notepad › post › full-prettier-prettierrc-config
My full Prettier (.prettierrc) config file - Fraser Boag
It sets almost every configurable option - some of which are set to the same as Prettier's own defaults, but I like to include them just for clarity and so that I can see at a glance what options I have available to me for tweaking. { "arrowParens": "always", "bracketSpacing": true, "htmlWhitespaceSensitivity": "css", "insertPragma": false, "jsxBracketSameLine": false, "jsxSingleQuote": true, "printWidth": 80, "proseWrap": "always", "quoteProps": "as-needed", "requirePragma": false, "semi": true, "singleQuote": true, "tabWidth": 2, "trailingComma": "all", "useTabs": false }
Videos
08:51
Clean Next.js Code With Prettier: Fast Configuration! - YouTube
00:32
Configure ESLint and Prettier for TypeScript! #coding - YouTube
Prettier Options using Config File
13:37
How to Setup Prettier in VSCode and Format your Project - YouTube
12:11
How To Setup Prettier - YouTube
npm
npmjs.com › package › prettier-config-standard
prettier-config-standard - npm
A Prettier shareable config for projects using 'Prettier' and 'JavaScript Standard Style' as ESLint rules or separate processes.. Latest version: 7.0.0, last published: 3 years ago.
» npm install prettier-config-standard
Published Aug 11, 2023
Version 7.0.0
Author Nick Petruzzelli
Prettier
prettier.io › docs › options
Options · Prettier
To run, JavaScript code formatted this way needs an engine that supports ES2017 (Node.js 8+ or a modern browser) or downlevel compilation. This also enables trailing commas in type parameters in TypeScript (supported since TypeScript 2.7 released in January 2018). "es5" - Trailing commas where valid in ES5 (objects, arrays, etc.). Trailing commas in type parameters in TypeScript and Flow. ... Print spaces between brackets in object literals. ... Configure how Prettier wraps object literals when they could fit on one line or span multiple lines.
GitHub
github.com › prettier › prettier-vscode › issues › 3179
Changes to prettier.config.js don't take effect until restarting ...
October 17, 2023 - ["INFO" - 2:43:18 PM] Extension Version: 10.1.0. ["DEBUG" - 2:43:18 PM] Enabling Prettier globally { "languageSelector": [ { "language": "javascript" }, { "language": "mongo" }, { "language": "javascriptreact" }, { "language": "typescript" }, { "language": "typescriptreact" }, { "language": "json" }, { "language": "jsonc" }, { "language": "json5" }, { "language": "css" }, { "language": "postcss" }, { "language": "less" }, { "language": "scss" }, { "language": "handlebars" }, { "language": "graphql" }, { "language": "markdown" }, { "language": "mdx" }, { "language": "html" }, { "language": "vue
Published Oct 17, 2023
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
Just like ESLint itself, you can control the eslint-config-prettier CLI helper tool using the ESLINT_USE_FLAT_CONFIG environment variable: ESLINT_USE_FLAT_CONFIG=true: Only use eslint.config.js (flat config).
Author prettier
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"
Michael Currin
michaelcurrin.github.io › dev-cheatsheets › cheatsheets › javascript › format-and-lint › prettier › configure.html
Config files | Dev Cheatsheets
Example config with one rule in it: .prettierrc.json · { "arrowParens": "avoid" } Some more rules. .prettierrc.json · { "trailingComma": "es5", "tabWidth": 4, "semi": false, "singleQuote": true } See the Ignoring rules cheatsheet for more info. You can also pass command line flags to change Prettier behavior.
GitHub
gist.github.com › adbutterfield › 6b91625b5b07ca2c29f6322245e3e2bb
Default prettier config with comments and links to prettier rules · GitHub
People can configure prettier options inside their personal vscode settings, which can then create thrashing in projects that don't assert defaults. ... @devinrhode2 In our case I wanted the local formatting for the developers in the team to match the formatting that occurs when running npm run format (prettier --write) in our pre-commit hook. With that said I noticed that the rangeEnd attribute requires an Integer value. Using a js file format, setting the attribute to Infinity works fine.
Prettier
prettier.io › docs › sharing-configurations
Sharing configurations · Prettier
prettier-config/ ├── index.js └── package.json
npm
npmjs.com › package › eslint-config-prettier
eslint-config-prettier - npm
Add eslint-config-prettier to your ESLint configuration – either to eslintrc or to eslint.config.js (flat config).
» npm install eslint-config-prettier
Published Jul 18, 2025
Version 10.1.8
Author Simon Lydell
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 ...
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 › docs › install.html
Install · Prettier
Or use a glob like prettier --write "app/**/*.test.js" to format all tests in a directory (see fast-glob for supported glob syntax).