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.
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...
15:45
Master Code Formatting Like a Genius | Prettier Tutorial VsCode ...
02:11
How to use Prettier in VS Code - Code Formatting - YouTube
12:11
How To Setup Prettier - YouTube
21:39
Using ESLint and Prettier in Visual Studio Code - YouTube
13:38
Saying Goodbye To ESLINT and Prettier - YouTube
10:22
Prettier & ESLint in Visual Studio Code: The Ultimate Guide - YouTube
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.
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 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.
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
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.