Skip to content

Commit c21a4ee

Browse files
OttoAllmendingerllm-git
andcommitted
feat(wasm-utxo)!: restructure linting scripts for granular control
Split monolithic lint commands into individual tasks for prettier, eslint, rustfmt, and clippy. This enables running specific linters independently and provides better control over the linting workflow. BREAKING CHANGE: `check-fmt` now runs prettier and rustfmt instead of both formatters. Use `lint` for comprehensive checks including clippy. Issue: BTC-XXXX Co-authored-by: llm-git <llm-git@ttll.de>
1 parent 7b77a2b commit c21a4ee

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

packages/wasm-utxo/package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,16 @@
7575
"build:ts": "npm run build:ts-esm && npm run build:ts-cjs",
7676
"build:package-json": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
7777
"build": "npm run build:wasm && npm run build:ts && npm run build:package-json",
78-
"check-fmt": "prettier --check . && cargo fmt -- --check",
79-
"lint": "eslint .",
80-
"lint:fix": "eslint . --fix"
78+
"check-fmt": "npm run lint:prettier && npm run lint:rustfmt",
79+
"lint:prettier": "prettier --check .",
80+
"lint:eslint": "eslint .",
81+
"lint:rustfmt": "cargo fmt -- --check",
82+
"lint:clippy": "cargo clippy --all-targets --all-features -- -D warnings",
83+
"lint": "npm run lint:prettier && npm run lint:eslint && npm run lint:rustfmt && npm run lint:clippy",
84+
"lint:prettier:fix": "prettier --write .",
85+
"lint:eslint:fix": "eslint . --fix",
86+
"lint:rustfmt:fix": "cargo fmt",
87+
"lint:fix": "npm run lint:prettier:fix && npm run lint:eslint:fix && npm run lint:rustfmt:fix"
8188
},
8289
"devDependencies": {
8390
"@bitgo/unspents": "^0.50.13",

0 commit comments

Comments
 (0)