You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here lintstaged is expecting a list of pathnames to pass it along to git add after formatting.
Well, I'm aware that this is not a very common use case because modifying files on precommit hook could be a dangerous thing.
But anyways, I thought that prettier-eslint tries to provide a similar API compared to prettier. Or am I wrong? :)
I believe there are at least two options:
a) printing pathnames like I mentioned above
b) telling the user that combining --list-different & --write is not supported (yet).
I wrote such npm script in my package.json:
"format-js": "prettier-eslint --print-width 100 --list-different --write 'webpack/**/*.js' 'development/**/*.js'"
it formats my js, but does not print prettified files. Is it possible to use --list-different with --write?
If not, it would be great to))
The text was updated successfully, but these errors were encountered: