From 143faed3c90d81788ce7e0ee0a05de5b27a1ccb3 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. +