sheerun / prettier-standard

Formats with Prettier and lints with ESLint+Standard! (✿◠‿◠)
MIT License
868 stars 44 forks source link

Cryptic error when running in NodeJS #16

Closed mhkeller closed 7 years ago

mhkeller commented 7 years ago

When I try to import this from a NodeJS script, I get this error saying I should install prettier-standard instead. But isn't this prettier-standard?

sheerun commented 7 years ago

prettier-standard doesn't expose programmatic API. you need to use the cli

mhkeller commented 7 years ago

The error message should remove line 6 since that is suggesting a solution that is not a solution.

sheerun commented 7 years ago

Now I get it :) Thanks for pointing it out, I've removed that line, it should be released soon