Fix docs code style (#7937)

This commit is contained in:
fisker Cheung authored and GitHub committed 2020-04-03 18:44:03 +08:00
1 parent 54766f11a2
commit 096c28f080
4 files changed
+44 -40

No files matched your search

+4 -2
View File
@@ -5,14 +5,16 @@ title: Watching For Changes
If you prefer to have prettier watch for changes from the command line you can use a package like [onchange](https://www.npmjs.com/package/onchange). For example:
```
```bash
npx onchange '**/*.js' -- npx prettier --write {{changed}}
```
or add the following to your `package.json`
```json
{
"scripts": {
"prettier-watch": "onchange '**/*.js' -- prettier --write {{changed}}"
},
}
}
```