Skip to content

Commit f7bc848

Browse files
Boshenclaude
andcommitted
chore: migrate from dprint to oxfmt
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 398a147 commit f7bc848

File tree

54 files changed

+714
-507
lines changed

Some content is hidden

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

54 files changed

+714
-507
lines changed

.clippy.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ disallowed-types = [
2020
{ path = "std::string::String", reason = "Use `vite_str::Str` for small strings. For large strings, prefer `Box/Rc/Arc<str>` if mutation is not needed." },
2121
]
2222

23-
disallowed-macros = [
24-
{ path = "std::format", reason = "Use `vite_str::format` for small strings." },
25-
]
23+
disallowed-macros = [{ path = "std::format", reason = "Use `vite_str::format` for small strings." }]

.devcontainer/devcontainer.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
},
1717
"customizations": {
1818
"vscode": {
19-
"extensions": [
20-
"rust-lang.rust-analyzer",
21-
"tamasfe.even-better-toml",
22-
"fill-labs.dependi"
23-
],
19+
"extensions": ["rust-lang.rust-analyzer", "tamasfe.even-better-toml", "fill-labs.dependi"],
2420
"settings": {
2521
"terminal.integrated.defaultProfile.linux": "fish",
2622
"terminal.integrated.profiles.linux": {

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,11 @@ jobs:
129129
with:
130130
save-cache: ${{ github.ref_name == 'main' }}
131131
cache-key: fmt
132-
tools: dprint,cargo-shear
132+
tools: cargo-shear
133133
components: clippy rust-docs rustfmt
134134

135-
- run: dprint check
135+
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
136+
- run: pnpm oxfmt --check
136137
- run: cargo shear
137138
- run: cargo fmt --check
138139
- run: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
@@ -141,8 +142,6 @@ jobs:
141142
with:
142143
files: .
143144

144-
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
145-
146145
- name: Deduplicate dependencies
147146
run: pnpm dedupe --check
148147

.oxfmtrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 120,
3+
"singleQuote": true,
4+
"ignorePatterns": ["crates/fspy_detours_sys/detours", "crates/vite_task_graph/run-config.ts"]
5+
}

.rustfmt.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,4 @@ group_imports = "StdExternalCrate"
1818
imports_granularity = "Crate"
1919

2020
# Skip generated files
21-
ignore = [
22-
"crates/fspy_detours_sys/src/generated_bindings.rs",
23-
]
21+
ignore = ["crates/fspy_detours_sys/src/generated_bindings.rs"]

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A monorepo task runner (like Nx/Turbo) with intelligent caching and dependency r
2727
```bash
2828
just init # Install build tools and dependencies
2929
just ready # Full quality check (fmt, check, test, lint, doc)
30-
just fmt # Format code (cargo fmt, cargo shear, dprint)
30+
just fmt # Format code (cargo fmt, cargo shear, oxfmt)
3131
just check # Check compilation with all features
3232
just test # Run all tests
3333
just lint # Clippy linting

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
just init
1515
```
1616

17-
This installs all required Rust tools (`cargo-insta`, `typos-cli`, `cargo-shear`, `dprint`, `taplo-cli`) and bootstraps the Node.js tooling.
17+
This installs all required Rust tools (`cargo-insta`, `typos-cli`, `cargo-shear`, `taplo-cli`) and bootstraps the Node.js tooling.
1818

1919
## Development Workflow
2020

@@ -29,7 +29,7 @@ Officially, Vite Task is distributed as part of Vite+ and invoked via `vp run`.
2929

3030
```bash
3131
just ready # Full quality check: typos, fmt, check, test, lint, doc
32-
just fmt # Format code (cargo fmt + cargo shear + dprint)
32+
just fmt # Format code (cargo fmt + cargo shear + oxfmt)
3333
just check # Check compilation with all features
3434
just test # Run all tests
3535
just lint # Clippy linting

crates/vite_task/docs/task-cache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ For tasks defined as below:
2222
{
2323
"scripts": {
2424
"build": "echo $foo",
25-
"test": "echo $foo && echo $bar"
26-
}
25+
"test": "echo $foo && echo $bar",
26+
},
2727
}
2828
```
2929

crates/vite_task/docs/task-query.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ The task graph contains a node for every task in every package, and edges only f
2121
"tasks": {
2222
"build": {
2323
"command": "vite build",
24-
"dependsOn": ["@shared/lib#build"] // ← this becomes an edge
25-
}
26-
}
24+
"dependsOn": ["@shared/lib#build"], // ← this becomes an edge
25+
},
26+
},
2727
}
2828
```
2929

@@ -178,9 +178,9 @@ After mapping the package subgraph to tasks, we follow explicit `dependsOn` edge
178178
{
179179
"tasks": {
180180
"build": {
181-
"dependsOn": ["codegen#generate"]
182-
}
183-
}
181+
"dependsOn": ["codegen#generate"],
182+
},
183+
},
184184
}
185185
```
186186

@@ -198,9 +198,9 @@ A task script can contain `vp run` calls:
198198
{
199199
"tasks": {
200200
"ci": {
201-
"command": "vp run -r build && vp run -r test"
202-
}
203-
}
201+
"command": "vp run -r build && vp run -r test",
202+
},
203+
},
204204
}
205205
```
206206

crates/vite_task/docs/terminologies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
{
88
"name": "app",
99
"scripts": {
10-
"build": "echo build1 && echo build2"
11-
}
10+
"build": "echo build1 && echo build2",
11+
},
1212
}
1313
```
1414

0 commit comments

Comments
 (0)