-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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
Labels
No labels