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
Otherwise, Prettier wouldn’t be able to guarantee that everybody in a team gets the same consistent results. The options you can use in the configuration file are the same as the API options. TypeScript support requires Node.js>=22.6.0, and --experimental-strip-types is required before Node.js ...
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
13:37
How to Setup Prettier in VSCode and Format your Project - YouTube
12:11
How To Setup Prettier - YouTube
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
Setup Prettier in VScode in 6 minutes
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.
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.
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
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
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.
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
A Prettier shareable config for projects using 'Prettier' and 'JavaScript Standard Style' as ESLint rules or separate processes. - npetruzzelli/prettier-config-standard
Author npetruzzelli
Prettier
prettier.io › docs › sharing-configurations
Sharing configurations · Prettier
prettier-config/ ├── index.js └── package.json
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
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 ...
Package Control
packagecontrol.io › packages › JsPrettier
JsPrettier - Packages - Package Control
The Prettier config file is resolved by first checking if a --config </path/to/prettier/config> is specified in the additional_cli_args setting, then by searching the location of the file being formatted, and finally navigating up the file tree until a config file is (or isn't) found. allow_inline_formatting (default: false) Enables the ability to format selections of in-lined code. For example, to format a selection of JavaScript code within a PHP or HTML file. When true, the JsPrettier command is available for use across all Sublime Text syntaxes.
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 - Configuring Prettier through a .prettierrc file. Ignoring files or directories you don't want Prettier to format using a .prettierignore file. Integrating Prettier with your code editor (e.g., VSCode) for automatic formatting on save. (Optional) Combining Prettier with ESLint for a complete linting and formatting solution. First, you need to create a new project. Open your terminal and run: ... This will create a new project with a package.json ...
Prettier
prettier.io › docs › cli.html
CLI · Prettier
This will provide you with a path to the configuration file, which you can pass to --config: prettier path/to/file.js --write --config path/to/.prettierrc
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.