prettier-check
prettier-check copied to clipboard
Custom prettier-check message
Currently it prints
Forgot to run prettier? There are files without correct code style:
src/users/userSelectors.js
I would like to print
Forgot to run prettier, please execute npm run prettier-all to run prettier in all the files.
There are files without correct code style:
src/users/userSelectors.js
Thanks for the awesome package btw 👍
I like the idea of telling the user which command needs to run. But we should find a way to specify the command because different projects use different commands.
Maybe pass it as an optional parameter to prettier-check. What do you think? Any other ideas?
The best would be different args like prettier-check STYLE_ERROR 'Some text here' ... and similarly the three other, as most probably you'll get some more issues to change them as well! :)