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
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"
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.
Videos
Fraser Boag
boag.online › notepad › post › full-prettier-prettierrc-config
My full Prettier (.prettierrc) config file - Fraser Boag
This allows different projects to have different configuration, and allows you to check this file into the project's git repo, ensuring all developers are committing code with the same style. But enough waffle - here's the .prettierrc file I've landed on and use in every new project.
GitHub
github.com › u3u › prettier-config
GitHub - u3u/prettier-config: 🎨 The most perfect Prettier config
{ "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "prettier.documentSelectors": ["**/*"], "prettier.enableDebugLogs": true, "prettier.endOfLine": "lf", "prettier.printWidth": 120, "prettier.requireConfig": true, "prettier.semi": false, "prettier.singleQuote": true }
Author u3u
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.
DEV Community
dev.to › withtoms › prettier-and-how-to-get-most-out-of-it-2d46
Prettier and how to get most out of it - DEV Community
July 1, 2023 - In conclusion, leveraging the full potential of Prettier involves embracing its opinionated nature and keeping the configuration as simple as possible. By following Prettier's philosophy, developers can benefit from consistent and aesthetically pleasing code formatting. Integrating Prettier with other tools like ESLint enhances code quality and adherence to best practices.
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 ...
GitHub
github.com › lipis › prettier-setup
GitHub - lipis/prettier-setup: Basic configuration for Prettier, ESLint and Husky.
Starred by 180 users
Forked by 23 users
Languages JavaScript 84.5% | SCSS 15.5%
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.
Author npetruzzelli
GitHub
github.com › macklinu › best-prettier-config
GitHub - macklinu/best-prettier-config: The best prettier config in the world :earth_americas:
# These are all the same npx best-prettier-config --plugin prettier-plugin-astro --plugin prettier-plugin-tailwind npx best-prettier-config --plugin astro --plugin tailwind npx best-prettier-config -p astro -p tailwind
Author macklinu
Prettier
prettier.io › docs › options
Options · Prettier
Setting max_line_length in an .editorconfig file will configure Prettier’s print width, unless overridden.
GitHub
github.com › prettier › prettier › issues › 7073
A better Prettier CLI and config file · Issue #7073 · prettier/prettier
November 30, 2019 - Let’s have one config file to rule them all – prettier.json. A prettier.json should be required for Prettier to run – this makes Prettier opt-in. For every file Prettier formats, there must be a prettier.json next to it or up the file tree.
Published Nov 30, 2019
Medium
medium.com › @fabianterh › an-opinionated-guide-to-setting-up-prettier-with-eslint-51809b1b3043
An opinionated guide to setting up Prettier with ESLint | by Fabian Terh | Medium
September 2, 2018 - This is the plugin that is responsible for detecting differences between your code’s formatting and Prettier’s rules. You can install it by running npm install prettier eslint-plugin-prettier. Assuming you already have a .eslintrc.* (ESLint configuration file), edit it to add the following lines:
npm
npmjs.com › package › prettier-config-standard
prettier-config-standard - npm
A Prettier shareable config for ... 3 years ago. Start using prettier-config-standard in your project by running `npm i prettier-config-standard`. There are 28 ......
» npm install prettier-config-standard
Published Aug 11, 2023
Version 7.0.0
Author Nick Petruzzelli
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.
Author prettier
DEV Community
dev.to › vikasparmar › prettier-configuration-for-reactnextjs-projects-2025-4oh5
Prettier Configuration for React/Next.js Projects | 2026 - DEV Community
4 days ago - name: Check Code Formatting on: pull_request: branches: [main] jobs: prettier: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 - run: npm ci - run: npm run format:check · This will check if all code is properly formatted when someone makes a pull request. Remember: Good code formatting is like good hygiene—it makes everyone's life easier and should be a daily habit! ... #beginners #softwaredevelopment #agile #softwareengineering Next.js Component Naming Conventions: Best Practices for File and Component Names
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 ...
Frontity
community.frontity.org › 👨💻 framework development › » framework design
Eslint / Prettier - What presets should we use? - » Framework Design - Frontity Community Forum
February 27, 2019 - This is a good moment to think again about our eslint and prettier configuration so it is as simple as possible. Eslint We were following eslint-airbnb in the past, but I’d like our configuration to be as simple and as standard as possible. In the past, when prettier didn’t exist, eslint ...