Skip to content

Commit 19d0182

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 a9a4ae0 commit 19d0182

2 files changed

Lines changed: 15 additions & 4 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",

packages/wasm-utxo/test/fixedScript/psbtReconstruction.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ describe("PSBT reconstruction", function () {
205205
);
206206
}
207207
// LockTime is typically 0 for these fixtures
208-
assert.strictEqual(originalPsbt.lockTime(), 0, "lockTime should be 0 for unsigned fixtures");
208+
assert.strictEqual(
209+
originalPsbt.lockTime(),
210+
0,
211+
"lockTime should be 0 for unsigned fixtures",
212+
);
209213
});
210214

211215
it("should include sequence in parsed inputs", function () {

0 commit comments

Comments
 (0)