Skip to content

Commit bc1bc8c

Browse files
committed
Merge branch 'dev-0.9'
2 parents 52c518b + 66dfbe2 commit bc1bc8c

473 files changed

Lines changed: 32552 additions & 30 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,7 @@ JSON example:
180180
]
181181
}
182182
```
183+
184+
## Stargazers over time
185+
186+
[![Stargazers over time](https://starchart.cc/ony3000/prettier-plugin-classnames.svg?variant=adaptive)](https://starchart.cc/ony3000/prettier-plugin-classnames)

global.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ declare global {
3737

3838
type SupportedParserNames =
3939
| 'babel'
40+
| 'babel-ts'
4041
| 'typescript'
4142
| 'angular'
4243
| 'html'
4344
| 'vue'
45+
| 'oxc'
46+
| 'oxc-ts'
4447
| 'astro'
4548
| 'svelte';
4649

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
},
3838
"devDependencies": {
3939
"@biomejs/biome": "2.0.0",
40+
"@oxc-parser/binding-linux-x64-gnu": "0.99.0",
41+
"@prettier/plugin-oxc": "0.1.3",
4042
"@trivago/prettier-plugin-sort-imports": "4.2.1",
4143
"@types/node": "20.17.46",
4244
"esbuild": "0.25.0",
@@ -49,11 +51,15 @@
4951
"vitest": "1.6.1"
5052
},
5153
"peerDependencies": {
54+
"@prettier/plugin-oxc": "*",
5255
"prettier": "^3",
5356
"prettier-plugin-astro": "*",
5457
"prettier-plugin-svelte": "*"
5558
},
5659
"peerDependenciesMeta": {
60+
"@prettier/plugin-oxc": {
61+
"optional": true
62+
},
5763
"prettier-plugin-astro": {
5864
"optional": true
5965
},

pnpm-lock.yaml

Lines changed: 227 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core-parts/experimental.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,10 @@ function formatTokens(
378378
if (isMultiLineClassName && options.syntaxTransformation) {
379379
switch (options.parser) {
380380
case 'babel':
381+
case 'babel-ts':
381382
case 'typescript':
383+
case 'oxc':
384+
case 'oxc-ts':
382385
case 'astro':
383386
case 'svelte': {
384387
formattedTokens[tokenIndex - 1].body = `{${BACKTICK}`;

0 commit comments

Comments
 (0)