-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
feat: upgrade to prettier 3 #2200
Conversation
This is WIP, and any help is appreciated. I'll print some of the open issues, since for some reason they don't show up in CI.
|
I was able to narrow it down a bit - the issues come from @fisker Any pointers are greatly appreciated 🙂 |
Unless we still want support Prettier v2, I'd suggest use new property const ignoredKeys = new Set(["kind", "loc", "errors", "extra"]);
function getVisitorKeys(node, nonTraversableKeys) {
return Object.keys(node).filter(
(key) => !nonTraversableKeys.has(key) && !ignoredKeys.has(key),
);
} |
Thank you @fisker! |
Update: It seems that the way <?php
$a = new class (
// 1
$a,
// 2
$b
) {
const foo = "bar";
};
For this example, this looks like a regression - but I didn't check what exactly changed upstream yet and why. @fisker any pointers are much appreciated, as usual 😉 |
I took a quick look. When attaching Not sure how it works in Prettier v2 yet, but it won't be easy to fix. I haven't used PHP for a long time. |
Thanks so much @fisker, this looks great! 💯 The |
No description provided.