Skip to content

Commit 745562c

Browse files
committed
chore(mise): keep Prettier off JCS package.json and install deps before lint/fmt
Add .prettierignore for package.json and pnpm-lock.yaml so Prettier does not undo JCS canonical form. Prefix the lint and fmt aliases with bun install --frozen-lockfile so bunx --no-install finds Prettier.
1 parent da381ba commit 745562c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎.prettierignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# package.json is JCS-canonical and pnpm-lock.yaml is tool-generated (LANGUAGE-POLICY §1.4).
2+
# Prettier must not reformat them.
3+
package.json
4+
pnpm-lock.yaml

‎mise.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ gnu-grep = "latest"
3434
task = "go-task"
3535
build = "cargo build --release"
3636
test = "cargo test"
37-
lint = "bunx --no-install --bun prettier --check ."
38-
fmt = "bunx --no-install --bun prettier --write ."
37+
lint = "bun install --frozen-lockfile && bunx --no-install --bun prettier --check ."
38+
fmt = "bun install --frozen-lockfile && bunx --no-install --bun prettier --write ."

0 commit comments

Comments
 (0)