Co-authored-by: Jed Fox <git@twopointzero.us> Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
421 B
421 B
id, title
| id | title |
|---|---|
| watching-files | Watching For Changes |
You can have Prettier watch for changes from the command line by using onchange. For example:
npx onchange '**/*.js' -- npx prettier --write {{changed}}
Or add the following to your package.json:
{
"scripts": {
"prettier-watch": "onchange '**/*.js' -- prettier --write {{changed}}"
}
}