--- title: Deviations from Prettier summary: Where tidy prints something other than Prettier, why, and how each case is tracked. group: About order: 5 --- tidy prints what Prettier 3.9.9 prints. Where it does not, the difference is deliberate, listed, and covered by a test. The authoritative list is [`docs/deviations.md`](https://github.com/lukeed/tidy/blob/main/docs/deviations.md) in the repository, generated alongside the tests that enforce it. This page explains the rules it follows. ## The rule for keeping one > Keep a deviation only where Prettier's output changes what the code means — it loses text, changes a value a program reads, or no longer parses. Where the difference is only layout, print what Prettier prints. So a deviation is never a matter of taste. It is a case where running Prettier would change your program. Most of them come from Bun's ports, which found these cases first. When Prettier's HTML printer was ported, the corrections that were only about layout — an SVG ``, `