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
@@ -72,7 +72,7 @@ Console output if some of the files require re-formatting:
Checking formatting...
[warn] src/fileA.js
[warn] src/fileB.js
[warn] Code style issues found in 2 files. Run Prettier to fix.
[warn] Code style issues found in 2 files. Run Prettier with --write to fix.
```
The command will return exit code `1` in the second case, which is helpful inside the CI pipelines.