From c2a3d23133d3aa4bf900897f4576e6ff6408fdf6 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Mon, 22 May 2017 20:30:10 +0200 Subject: [PATCH] Improve the `--list-different` example - Use double quotes for Windows support. - Use the long flag for readability. - Show that you should pass in your formatting options as well. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f3685453..add81dc82 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,7 @@ Note that `--write` cannot be used with `--debug-check`. Another useful flag is `--list-different` (or `-l`) which prints the filenames of files that are different from Prettier formatting. If there are differences the script errors out, which is useful in a CI scenario. ```bash -prettier -l './src/**/*.js' +prettier --single-quote --list-different "src/**/*.js" ``` #### Pre-commit hook for changed files