prettier-vscode icon indicating copy to clipboard operation
prettier-vscode copied to clipboard

Need option for fallback config, `Prettier: Config Path` does not work for this

Open trusktr opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

I need a fallback config for when a project doesn't have a config file.

However, when I provide a path for Prettier: Config Path, it overrides any config in any project I am in, which is not what I wanted.

Describe the solution you'd like

Need an option that applies only when a project does not have its own configuration file, which is very much not what the Prettier: Config Path option currently does.

Describe alternatives you've considered

There is no alternative other than undoing the Prettier: Config Path option so that project configs will be honored.

Additional context

trusktr avatar Jun 19 '22 22:06 trusktr

I'd also like the config path option to set the fallback config. That way you could make language-specific settings for the prettier extension. Local project configurations should overwrite that though. It would make way more sense.

rlnt avatar Jul 30 '22 15:07 rlnt

Happy to take a PR on this.

ntotten avatar Aug 20 '22 19:08 ntotten

Why did you close this as completed?

rlnt avatar Aug 20 '22 21:08 rlnt

Because I'm not going to do it. Happy to take a PR.

ntotten avatar Aug 21 '22 20:08 ntotten

But why as completed? This is confusing and I thought this was done although you mentioned a PR is welcome. Anyways, I will probably take a look into this once I have a bit of time.

rlnt avatar Aug 21 '22 20:08 rlnt

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Nov 20 '22 00:11 github-actions[bot]