I want to add prettier into scripts in package.json
.
Reading at the docs, it suggests doing the following using the cli
In practice, this may look something like:
prettier --single-quote --trailing-comma es5 --write "{app,__{tests,mocks}__}/**/*.js"
It works on mac / ubuntu but getting the following error message on windows.
[error] No matching files. Patterns tried: 'src/*.js' !**/node_modules/** !./node_modules/**
error Command failed with exit code 2.