Skip to content

Enable @prettier/plugin-oxc in playground #17575

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

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add example
  • Loading branch information
fisker committed Jun 7, 2025
commit 51fe8a5cb3a5aa61597557bd0912b0d05e3b0815
2 changes: 2 additions & 0 deletions website/playground/codeSamples.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default function getCodeSamples(parser) {
case "acorn":
case "espree":
case "meriyah":
case "oxc":
return [
'function HelloWorld({greeting = "hello", greeted = \'"World"\', silent = false, onMouseOver,}) {',
"",
Expand Down Expand Up @@ -42,6 +43,7 @@ export default function getCodeSamples(parser) {
].join("\n");
case "typescript":
case "babel-ts":
case "oxc-ts":
return [
"interface MyInterface {",
" foo(): string,",
Expand Down