prettier-check icon indicating copy to clipboard operation
prettier-check copied to clipboard

Custom prettier-check message

Open kunall17 opened this issue 8 years ago • 2 comments

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 👍

kunall17 avatar Jul 20 '17 06:07 kunall17

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?

pomber avatar Jul 20 '17 12:07 pomber

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! :)

kunall17 avatar Jul 20 '17 17:07 kunall17