When we run the CLI with stdin, it currently doesn't do any of the logic for config file resolution.
However, it is possible to specify a --stdin-filepath, in which case we should do the same resolution as runGlobs does.
There are tests in prettier that we need to move over which will fail until this is possible. That, or we decide we don't want to support such a thing and don't take those tests.
cc @fabiospampinato
When we run the CLI with stdin, it currently doesn't do any of the logic for config file resolution.
However, it is possible to specify a
--stdin-filepath, in which case we should do the same resolution asrunGlobsdoes.There are tests in prettier that we need to move over which will fail until this is possible. That, or we decide we don't want to support such a thing and don't take those tests.
cc @fabiospampinato