Skip to content

documentation update for prettier-eslint #3

@basaran

Description

@basaran

Hello, thanks for the package. I was finally able to use prettier-eslint with sublime which before I had to run prettier through eslint but had to give up on some of the nice eslint rules (such as space in parens).

Could you please mention this in your readme so others can possibly benefit from your package as well?

Here's the tweak I made:

a. create a new executable somewhere such as /bin/beauty with the following content

#!/bin/bash
/bin/node $HOME/.yarn/bin/prettier-eslint --parser babel --stdin <&0

and set /bin/beauty as executable. chmod +x /bin/beauty.

b. the settings for fmt package

{
   "rules": [
       {"selector": "source.js", "cmd": ["/bin/beauty"]},
   ],
   "cwd_mode": "auto",
}

with the cwd mode set to auto, it's reading the project .eslintrc and prettier.config.js as one would except.

Thanks again,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions