-
-
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
Trouble reading prettierrc if it uses extends #2728
Comments
I'm having the same issue described above. We have a shared prettier configuration that is imported via an NPM module, and then referenced from the project's
When you change However, When simply using the Prettier extension to format your files, the configurations in |
I can also confirm that I have the same problem. If necessary, I will set up an example project that uses a npm prettier config package. |
This issue has been labeled as stale due to inactivity. Reply to keep this issue open. |
Replying to keep this issue open. |
This issue has been labeled as stale due to inactivity. Reply to keep this issue open. |
Keep open. |
This issue has been labeled as stale due to inactivity. Reply to keep this issue open. |
Nope. |
This issue has been labeled as stale due to inactivity. Reply to keep this issue open. |
Nope |
This issue has been labeled as stale due to inactivity. Reply to keep this issue open. |
Nope |
Ideally we can get some sort of acknowledgement for this issue, or at the very least the removal of the |
This issue has been labeled as stale due to inactivity. Reply to keep this issue open. |
Still happening, would appreciate some sort of acknowledgement. |
Summary
If you have a prettier config npm package and install it in your local repo (such as in a big team where you want to centrally manage your prettier config), then you use the extends, now when you set up the settings.json in vscode, and prettier require config to be true, it doesn't seem to work. It will only work when you copy paste the actual rules in your config file. That means the current fix is to have a post install script to manually copy that file.
Github Repository to Reproduce Issue
N/A
Steps To Reproduce:
Expected result
It should format exactly as our prettier config rules specified in that npm package.
Actual result
It doesn't seem to work, unless we copy the rules into our local prettierrc.
Additional information
N/A.
VS Code Version: 1.71.2 (Universal)
Prettier Extension Version: v9.9.0
OS and version: MacOS 12.6 as well as Ubuntu 22.04
Prettier Log Output
The text was updated successfully, but these errors were encountered: