Add "--write" to the prettier failure output (#16062)
This commit is contained in:
1 parent
f4b3b7b1e2
commit
4aebc0ecc8
7 files changed
+9
-9
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user