-
-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting to specify what .prettierrc to use #254
Comments
Workaround, create a module.exports = require('@sourcegraph/prettierc'); |
That's a great idea! |
Regarding this, according to prettier's docs, the |
If you're working with yaml in vscode I'd recommend using |
@kutyel our extension is associating .prettierrc to JSON. You can change it to yaml if you prefer and it won't yell. Maybe we should remove that default association. And validate only .prettierrc.json |
I don't know what is the correct behaviour (cause I am biased) but for me is kinda counter-intuitive that prettier itself allows those formats (without changing the extension of the file) and the |
Would be nice to be able to use |
@felixfbecker if you prettier config is in |
I like to avoid symlinks if they are not needed. Many tools do not follow them (because there is risk of infinite loops) and they don’t work by default on Windows <10 / need special permissions. |
Feature added in version 3.0 |
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. |
We share a .prettierrc between multiple repos by publishing it as an npm module, running
prettier
withprettier-vscode currently does not have a way to configure that, it will not detect any config for the repo, so we have to duplicate the settings, which defeats the purpose of sharing the config. It would be nice to have a setting
"prettier.configPath"
like"prettier.ignorePath"
. I know you don't like new settings but this one is to avoid having to use the other settings ;)The text was updated successfully, but these errors were encountered: