Closed fcsonline closed 4 years ago
--parser is meant to be used if providing code via stdin
normally parser is figured out automatically from extension, so in your case prettier-standard "src/**/*.{ts,tsx}"
should be enough
Ok. Thanks!
I was running the command without stdin and the parser
arguments + the warning message was not clear enough about what was going on.
Closing the issue.
Yes I guess it needs to be improved, thanks :)
Hi @sheerun,
I'm trying to run
prettier-standard
in some typescript files, running this command:But I get
Cannot provide patterns when --stdin is used
Checking this line https://github.com/sheerun/prettier-standard/blob/master/src/cli.js#L65 and commenting out the parser check it runs as expected.
Which is the relation between
hasStdin
andparser
flag?Thanks!