The well-documented rules happen to be the configurable ones. However, if you're looking to explore everything prettier does, it may be worthwhile looking at the unit tests. Specifically, each folder has a __snapshots__ folder inside that contains a config, input, and output.

Answer from Aplet123 on Stack Overflow
🌐
Prettier
prettier.io › docs › options
Options · Prettier
Try prettier's new ternary formatting before it becomes the default behavior. ... false - Retain the default behavior of ternaries; keep question marks on the same line as the consequent. ... "end" - Default behavior; when binary expressions wrap lines, print operators at the end of previous lines. Specify the line length that the printer will wrap on. ... In code styleguides, maximum line length rules are often set to 100 or 120.
🌐
Prettier
prettier.io › docs › configuration
Configuration File · Prettier
node --experimental-strip-types node_modules/prettier/bin/prettier.cjs . --write ... Overrides let you have different configuration for certain file extensions, folders and specific files. ... files is required for each override, and may be a string or array of strings. excludeFiles may be optionally provided to exclude files for a given rule...
🌐
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 is an opinionated code formatter for JavaScript and other popular languages. Prettier enforces a consistent format by parsing code and reprinting it with its own rules that take the maximum line length into account, wrapping code when necessary.
🌐
Prettier
prettier.io › docs
What is Prettier? · Prettier
Prettier enforces a consistent code style (i.e. code formatting that won’t affect the AST) across your entire codebase because it disregards the original styling* by parsing it away and re-printing the parsed AST with its own rules that take the maximum line length into account, wrapping code when necessary.
🌐
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
For eslintrc, while the "prettier" config can disable problematic rules in "some-other-config-you-use", it cannot touch "rules"! (That’s how ESLint works – it lets you override configs you extend.) The CLI helper tool reports that "indent" conflicts with Prettier, so you can remove it.
Author: prettier
Author: prettier
🌐
GitHub
gist.github.com › adbutterfield › 6b91625b5b07ca2c29f6322245e3e2bb
Default prettier config with comments and links to prettier rules · GitHub
For example, I'm using Vue and I have an UI component that, when I save, (format on save turned on) it formats nicely with my other prettier configs, except the ">" is not behind the div at the bottom of my app.vue.
Find elsewhere
🌐
DEV Community
dev.to › griseduardo › customizable-rules-for-prettier-eslint-in-react-17hj
Customizable rules for Prettier + Eslint in React - DEV Community
June 25, 2024 - In last month's article, I presented the setup of Eslint with Prettier for a React application, focusing on using these libraries as tools for code standardization and error prevention. In this article, I will show how to customize the rules and introduce some interesting ones to consider.
🌐
npm
npmjs.com › package › eslint-plugin-prettier
eslint-plugin-prettier - npm
May 28, 2026 - Runs Prettier as an ESLint rule and reports differences as individual ESLint issues.
      » npm install eslint-plugin-prettier
    
Published: May 28, 2026
Version: 5.5.6
🌐
Prettier
prettier.io › docs › integrating-with-linters
Integrating with Linters · Prettier
Linters usually contain not only code quality rules, but also stylistic rules. Most stylistic rules are unnecessary when using Prettier, but worse – they might conflict with Prettier! Use Prettier for code formatting concerns, and linters for code-quality concerns, as outlined in Prettier vs.
🌐
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 - Install prettier and eslint-plugin-prettier. This is the plugin that is responsible for detecting differences between your code’s formatting and Prettier’s rules.
🌐
Prettier
prettier.io › docs › plugins
Plugins · Prettier
Plugins are ways of adding new languages or formatting rules to Prettier. Prettier’s own implementations of all languages are expressed using the plugin API. The core prettier package contains JavaScript and other web-focused languages built in. For additional languages you’ll need to install ...
🌐
Prettier
prettier.io › docs › rationale
Rationale · Prettier
The first requirement of Prettier is to output valid code that has the exact same behavior as before formatting. Please report any code where Prettier fails to follow these correctness rules — that’s a bug which needs to be fixed!
🌐
Prettier
prettier.io › docs › comparison
Prettier vs. Linters · Prettier
Prettier is not a rule-based tool: it has no individual formatting rules that you can enable or disable.
🌐
Pixel Free Studio
blog.pixelfreestudio.com › home › how to use prettier for consistent code formatting
How to Use Prettier for Consistent Code Formatting
July 26, 2024 - Prettier is an opinionated code formatter that supports multiple programming languages. It enforces a consistent style by parsing your code and re-printing it with its own set of formatting rules.
🌐
Robin Wieruch
robinwieruch.de › prettier-eslint
How to use Prettier with ESLint - Robin Wieruch
February 14, 2022 - For instance, it can happen that you imported something from another file, but don’t make use of the imported something in your current file. ESLint will warn you about an unused import. In contrast to Prettier, ESLint is highly configurable, because it doesn’t come with pre-configured rules.
🌐
Medium
medium.com › @aleksej.gudkov › prettier-configuration-understanding-prettierrc-with-examples-4bf6f94b7f61
Prettier Configuration: Understanding .prettierrc with Examples | by UATeam | Medium
June 7, 2025 - Prettier is a popular code formatter that helps developers maintain consistent style rules across projects. It automatically formats code, reducing manual work and ensuring readability. To customize Prettier for your specific needs, you can create a .prettierrc configuration file.
🌐
Medium
tianyaschool.medium.com › prettier-and-eslint-automating-code-style-and-quality-49cca1e2433c
Prettier and ESLint: Automating Code Style and Quality | by Kevin | Medium
May 9, 2025 - Prettier and ESLint are complementary tools that together ensure code style consistency and quality. Prettier handles code formatting, while ESLint performs more complex static analysis and rule checking.