Skip to content

Custom prettier-check message #2

Open

Description

@kunall17

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 👍

Activity

  1. pomber commented on Jul 20, 2017

    @pomber
    Contributor

    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?

  2. kunall17 commented on Jul 20, 2017

    @kunall17
    ContributorAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions