From f57dfb3e66b088f892f1d5312d39ede1c732a894 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 | 21 +++++++++++++-------- src/__tests__/scm-git.test.js | 27 +++++++++++++++++++++++++++ src/__tests__/scm-hg.test.js | 16 ++++++++++++++++ src/index.js | 12 ++++++++++++ 5 files changed, 72 insertions(+), 8 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. +