Files
test-repo/docs/watching-files.md
e3d1f0dee0 CLI: Add --ignore-unknown (#8829)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2020-08-21 09:11:59 +08:00

451 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 "**/*" -- npx prettier --write --ignore-unknown {{changed}}

Or add the following to your package.json:

{
  "scripts": {
    "prettier-watch": "onchange \"**/*\" -- prettier --write --ignore-unknown {{changed}}"
  }
}