Repository navigation
Conversation
Passes the manual config through normal config resolution such that `overrides` are evaluated and respected. Fixes #124
commit: |
|
Have you tested how the classic CLI works? I think it makes sense to solve |
|
do you have an example? i'm not sure i follow. you're saying this is just fixing a bug: we weren't resolving |
|
|
||
| describe("--config-path in another dir resolves override globs from the cwd", () => { | ||
| runCli("config-path-other-dir", [ | ||
| "--config-path", |
There was a problem hiding this comment.
Classic CLI uses --config, not --config-path, a known bug?
https://prettier.io/docs/next/cli#--find-config-path-and---config
There was a problem hiding this comment.
this has always used --config from when Fabio first made it, i just assumed it was on purpose to make it clearer what it is. i don't think it can be considered a bug, its just a choice to be made
|
|
ok @fisker i've updated it:
|
| } | ||
| } | ||
| ] | ||
| } |
There was a problem hiding this comment.
why not just a//b/ or foo bar instead of src//lib/
There was a problem hiding this comment.
no particular reason. its just what i was testing it against so the fixture ended up the same name.
happy to change it if needed
|
I didn't look into the implementation details, but the result looks good. |
Passes the manual config through normal config resolution such that
overridesare evaluated and respected.Fixes #124