From 0799764b329f9009d9da61213ccd530946a71b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josejulio=20Marti=CC=81nez?= Date: Wed, 12 Dec 2018 16:31:32 -0600 Subject: [PATCH] feat: Add --bail option which fails on fix (#52) --- README.md | 4 ++++ bin/pretty-quick.js | 4 +--- src/__tests__/scm-git.test.js | 24 ++++++++++++++++++++++++ src/__tests__/scm-hg.test.js | 16 ++++++++++++++++ src/index.js | 9 +++++++++ 5 files changed, 54 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b64e1ed..a48c5de 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,10 @@ For example `pretty-quick --pattern "**/*.*(js|jsx)"` or `pretty-quick --pattern 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. +## `--bail` + +Prevent `git commit` if any files are fixed. +