openpencil/.prettierignore
Fini 6104fa277a fix(ci): protect op-design-lint goldens from oxfmt + restore TS-oracle format
CI 'Fail on golden drift' (rust-check.yml) was red because oxfmt
inlined the 4-element padding arrays in the committed goldens, while
the TS oracle's `JSON.stringify(value, null, 2)` emits them multi-line.
Every `bun run format` would re-introduce the drift.

Fix:
- .prettierignore: ignore crates/op-design-lint/tests/fixtures/golden/
  so oxfmt leaves them at the TS-oracle byte-exact format.
- regenerate the two affected goldens via the oracle
  (edge-section-padding.json, stacked-horizontal-padding.json) so they
  match what the CI drift guard expects.

`bun run tools/dump-diagnostics-golden.ts` + `git diff` now clean.
`cargo test -p op-design-lint` 149/149 green. fmt-check clean.
This was the only red workflow on the v0.8.0-new push; CI should be
fully green after this lands.
2026-05-24 00:50:31 +08:00

28 lines
1,007 B
Text

# oxfmt picks this file up automatically (alongside .gitignore).
# Git submodules — owned by separate repos, not formatted from here.
packages/agent-native/
vendor/agent/
vendor/casement/
vendor/jian/
# Vendored fork of rust-skia — keep upstream Cargo.toml / .orig formatting
# byte-identical so the diff against upstream stays minimal.
vendor/skia-safe-op/
# Rust build artifacts
target/
# Auto-generated by @tanstack/router-plugin.
apps/web/src/routeTree.gen.ts
# op-design-lint TS-oracle parity goldens — regenerated by
# `tools/dump-diagnostics-golden.ts` via `JSON.stringify(value, null, 2)`,
# which keeps 4-element arrays multi-line. oxfmt's `printWidth: 100`
# inlines them, causing the CI drift guard (rust-check.yml: "Fail on
# golden drift") to red on every push. Keep these byte-identical to
# what the TS oracle emits.
crates/op-design-lint/tests/fixtures/golden/
# Local scratch / tutorial outputs (not part of the codebase; users won't have these dirs).
.baoyu-skills/
xhs-images/