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.
./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.