-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Upgrade prettier #13916
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
Upgrade prettier #13916
Conversation
|
Since using import.meta outside of a module (including direct eval() within a module) is a syntax error, would renaming I did the rename locally and tests in |
We'd have to check with @pcattori - I think that's a CJS file specifically because it gets copied directly to the |
I alluded to this in my comment, but if you search the code base, the |
@ngbrown is correct; |
oh ok awesome - I'm going to hold off on merging this until I land some in-progress JSDoc updates since they're probably goin to conflict a bunch and I'll re-run the prettier formatting from scratch in here once I land those in |
🤖 Hello there, We just published version Thanks! |
Trying to upgrade prettier to support
import ... with
syntax - we had to ignore an RSC integration file in 78b374b because it was breaking the format workflow.Upgrading was simple, and it causes bunch of changes which seem harmless. I did have to set
trailingComma:es5
to get the minimal set of changes (~100 files instead of 400-500 with the new defaultall
option). We can do that in this PR if we want or do it in a separate PR.However, the latest version of prettier now fails with a new syntax error which I think we would need to add
"type": "module"
topackage.json
to support - and that feels like a bigger undertaking. Our other option is to add this file to the.eslintignore
file but that feels risky since we may miss syntax errors in there?