Add oxc parser (#17472)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
abb43bf287
commit
c26d23c955
75 files changed
+1458
-67
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user