Add "--write" to the prettier failure output (#16062)

This commit is contained in:
Matt d'Entremont authored and GitHub committed 2024-02-14 09:16:13 +00:00
1 parent f4b3b7b1e2
commit 4aebc0ecc8
7 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -2060,7 +2060,7 @@ UndefinedParserError: No parser and no file path given, couldn't infer a parser.
#### Updated failure message to be more informative ([#11369](https://github.com/prettier/prettier/pull/11369) by [@webark](https://github.com/webark))
Updated the "Forgot to run Prettier?" to "Run Prettier to fix."
Updated the "Forgot to run Prettier?" to "Run Prettier with --write to fix."
This keeps the same spirit of the message, but is less likely to be
misinterpreted as it's a more formal message rather than being