Skip to content

Commit 04c54b2

Browse files
committed
fix
1 parent 6e241fb commit 04c54b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lint-staged.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default {
22
"*.rs": "rustfmt",
33
"*.{ts,tsx,js,mjs,yaml,yml}":
44
"node ./node_modules/prettier/bin/prettier.cjs --write",
5-
"*.toml": "pnpm @taplo/cli format",
5+
"*.toml": "pnpx @taplo/cli format",
66
"*.{ts,tsx,js,cts,cjs,mts,mjs}": [
77
"pnpm run lint:js",
88
// ignore staged file list; execute x without extra args

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"format:rs": "cargo fmt --all",
2828
"format:js": "pnpm run format-ci:js --write",
2929
"format-ci:js": "node ./node_modules/prettier/bin/prettier.cjs \"packages/**/src/**/*.{ts,tsx,mts,cts,js,mjs,cjs,jsx}\" \"crates/rspack_plugin_runtime/**/*.{ts,js}\" \"scripts/**/*.{cjs,mjs,js}\" \"*.mjs\" \"x\" --check",
30-
"format-ci:toml": "pnpm @taplo/cli format --check '.cargo/*.toml' './crates/**/Cargo.toml' './Cargo.toml'",
31-
"format:toml": "pnpm @taplo/cli format '.cargo/*.toml' './crates/**/Cargo.toml' './Cargo.toml'",
30+
"format-ci:toml": "pnpx @taplo/cli format --check '.cargo/*.toml' './crates/**/Cargo.toml' './Cargo.toml'",
31+
"format:toml": "pnpx @taplo/cli format '.cargo/*.toml' './crates/**/Cargo.toml' './Cargo.toml'",
3232
"lint:js": "pnpm run lint-ci:js --write",
3333
"lint-ci:js": "biome check --diagnostic-level=warn --no-errors-on-unmatched --max-diagnostics=none --error-on-warnings",
3434
"lint:rs": "node ./scripts/check_rust_dependency.cjs",

0 commit comments

Comments
 (0)