fix: add --no-error-on-unmatched-pattern to oxfmt md rule in lint-staged#8085
fix: add --no-error-on-unmatched-pattern to oxfmt md rule in lint-staged#8085
Conversation
📝 WalkthroughWalkthroughThe lint-staged configuration has been simplified by removing the Markdown formatting enforcement rule. The Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
oxfmt supports markdown but skips files in .prettierignore (e.g. .changeset/). When the only staged .md file is ignored, oxfmt exits with an error.
792af7c to
557605c
Compare
…ttribution `forge soldeer install --quiet` panics in forge v1.1.0 due to a logger double-init bug, breaking both `deps:soldeer` and `build-tron.sh`. Since turbo guarantees dependencies are already installed via task ordering (build:tron → build → deps:soldeer), the call can safely fall through. Also fix lint-staged oxfmt rule for JSON files (same issue as #8085) and disable Co-Authored-By commit attribution for Claude Code.
Summary
--no-error-on-unmatched-patternto the*.mdoxfmt rule in.lintstagedrc. oxfmt supports markdown but reads.prettierignoreby default, which ignores.changeset/. When the only staged.mdfile is in an ignored directory, oxfmt exits with "Expected at least one target file", failing the pre-commit hook.Drive-by changes
None
Related issues
Introduced in #7973 (prettier-to-oxfmt migration)
Backward compatibility
Yes
Testing
Verified committing
.changeset/*.mdfiles no longer fails the pre-commit hook.