It doesn't play very well with npm scripts:
d:\dev\foo>npm run format
> @ format d:\dev\foo
> prettier --write --list-different *.js
foo.js
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ format: `prettier --write --list-different *.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ format script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Without --list-different though it doesn't behave like this.
It doesn't play very well with npm scripts:
Without
--list-differentthough it doesn't behave like this.