sheerun / prettier-standard

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

Trying to run Prettier-standard as the cli for sublimeprettierjs doens't work #49

Closed jamesblack closed 6 years ago

jamesblack commented 6 years ago

./node_modules/.bin/prettier-standard --stdin --no-config --print-width 80 --single-quote false --trailing-comma none --bracket-spacing true --jsx-bracket-same-line false --parser babylon --semi true --require-pragma false --prose-wrap preserve --arrow-parens avoid --tab-width 2 --use-tabs false --stdin-filepath /path/to/file

This is what command is run by JsPrettier sublime plugin when I configure my cli path to be prettier-standard, this command doesn't work when run alone, it seems because --stdin-filepath is not a valid flag, this causes JsPrettier to fall back to prettier, which causes linting issues. The --stdin-filepath option should still be supported to keep the apis the same and allow for the most interoperability.

jamesblack commented 6 years ago

Updated to 8.0 totally worked, please ignore.