From 4a5659a2cbb3dae65734d3503e4acdadf755ef9c Mon Sep 17 00:00:00 2001 From: Lucas Duailibe Date: Mon, 13 May 2019 10:54:29 -0300 Subject: [PATCH] Update docs --- website/versioned_docs/version-stable/cli.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/versioned_docs/version-stable/cli.md b/website/versioned_docs/version-stable/cli.md index 65c70aedd..dc0136310 100644 --- a/website/versioned_docs/version-stable/cli.md +++ b/website/versioned_docs/version-stable/cli.md @@ -54,6 +54,14 @@ Applying this practice will minimise the number of times the CI fails because of If you need to pipe the list of unformatted files to another command, you can use [`--list-different`](cli.md#list-different) flag instead of `--check`. +### Exit codes + +| Code | Information | +| ---- | ----------------------------------- | +| 0 | Everything formatted properly | +| 1 | Something wasn't formatted properly | +| 2 | Something's wrong with Prettier | + ## `--debug-check` If you're worried that Prettier will change the correctness of your code, add `--debug-check` to the command. This will cause Prettier to print an error message if it detects that code correctness might have changed. Note that `--write` cannot be used with `--debug-check`.