Add oxc parser (#17472)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
fisker Cheungandautofix-ci[bot] authored and GitHub committed 2025-05-27 09:35:31 +08:00
1 parent abb43bf287
commit c26d23c955
75 files changed
+1458 -67

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
# @prettier/plugin-oxc
> Prettier Oxc plugin.
## Install
```bash
yarn add --dev prettier @prettier/plugin-oxc
```
## Usage
Create or modify your [prettier configuration file](https://prettier.io/docs/en/configuration) to use the plugin:
```json
{
"overrides": [
{
"files": ["**/*.{js,mjs,cjs}"],
"options": {
"plugins": ["@prettier/plugin-oxc"],
"parser": "oxc"
}
}
]
}
```
## Related
- [Oxc](https://oxc.rs/) - The JavaScript Oxidation Compiler