hexacta / prettier-check

Check that all files match prettier code style.
MIT License
54 stars 5 forks source link

Custom prettier-check message #2

Open kunall17 opened 7 years ago

kunall17 commented 7 years ago

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 👍

pomber commented 7 years ago

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?

kunall17 commented 7 years ago

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