Skip to content

chore: migrate from Prettier to oxfmt for code formatting#11824

Draft
yangshun wants to merge 2 commits intofacebook:mainfrom
yangshun:ys/oxfmt
Draft

chore: migrate from Prettier to oxfmt for code formatting#11824
yangshun wants to merge 2 commits intofacebook:mainfrom
yangshun:ys/oxfmt

Conversation

@yangshun
Copy link
Copy Markdown
Contributor

Summary

  • Replace Prettier with oxfmt as the code formatter
  • Add .oxfmtrc.json configuration and remove .prettierrc / .prettierignore
  • Update lint-staged config, CI workflows, and VS Code extensions accordingly
  • Reformat codebase with oxfmt

Test plan

  • Verify oxfmt formats all files correctly
  • Verify CI lint workflow passes
  • Verify lint-staged works on pre-commit

🤖 Generated with Claude Code

@meta-cla meta-cla bot added the CLA Signed Signed Facebook CLA label Mar 20, 2026
@socket-security
Copy link
Copy Markdown

@socket-security
Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm entities is 91.0% likely obfuscated

Confidence: 0.91

Location: Package overview

From: ?npm/@docusaurus/preset-classic@3.9.2npm/@docusaurus/core@3.9.2npm/entities@4.5.0

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/entities@4.5.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm entities is 91.0% likely obfuscated

Confidence: 0.91

Location: Package overview

From: ?npm/@docusaurus/preset-classic@3.9.2npm/@docusaurus/core@3.9.2npm/entities@6.0.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/entities@6.0.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 20, 2026

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit 914608b
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/69bd47b55e7d420008fdcfc5
😎 Deploy Preview https://deploy-preview-11824--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@akshatsinha0
Copy link
Copy Markdown
Contributor

Great Idea. Was searching for something like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants