Fix docs code style (#7937)
This commit is contained in:
1 parent
54766f11a2
commit
096c28f080
4 files changed
+44
-40
No files matched your search
@@ -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}}"
|
||||
},
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user