From 78a715dcfb19390d8a92915e56d89a4a2e97c7d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josejulio=20Mart=C3=ADnez?= Date: Wed, 12 Dec 2018 16:31:32 -0600 Subject: [PATCH] feat: Fail on fix (#52) --- README.md | 4 ++++ bin/pretty-quick.js | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c80287c..f443405 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,10 @@ When not in `staged` pre-commit mode, use this flag to compare changes with the Outputs the name of each file right before it is proccessed. This can be useful if Prettier throws an error and you can't identify which file is causing the problem. +## `--fail-on-fix` + +Makes pretty-quick to exit with a non-zero exit code if any file is fixed. The intent is to abort the git commit. +