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.
This commit is contained in:
Simon Lydell committed 2017-05-22 20:30:10 +02:00
1 parent 0a5d035a85
commit c2a3d23133
1 file changed
+1 -1
+1 -1
View File
@@ -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