From 851ddc11c351030c4d6a3e8e0fd3b5eb05ec0add Mon Sep 17 00:00:00 2001 From: Phil <35127144+flurmbo@users.noreply.github.com> Date: Fri, 12 Oct 2018 18:13:28 -0500 Subject: [PATCH] feat: add --verbose flag (#46) * added verbose flag functionality * documentation for verbose flag * remove onUnchangedFile, it seems redundant * added tests for verbose flag --- README.md | 4 ++++ bin/pretty-quick.js | 4 ++++ src/__tests__/scm-git.test.js | 20 ++++++++++++++++++++ src/__tests__/scm-hg.test.js | 18 ++++++++++++++++++ src/formatFiles.js | 7 ++++++- src/index.js | 3 +++ 6 files changed, 55 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3aeb819..b1f0070 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,10 @@ Use with the `--staged` flag to skip re-staging files after formatting. When not in `staged` pre-commit mode, use this flag to compare changes with the specified branch. Defaults to `master` (git) / `default` (hg) branch. +### `--verbose` + +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. +