Skip to content

chore: extend lint-staged glob to cover yml and yaml#57

Merged
kneshi merged 2 commits into
mainfrom
chore/lint-staged-yaml
May 12, 2026
Merged

chore: extend lint-staged glob to cover yml and yaml#57
kneshi merged 2 commits into
mainfrom
chore/lint-staged-yaml

Conversation

@kneshi
Copy link
Copy Markdown
Contributor

@kneshi kneshi commented May 12, 2026

Summary

Adds yml,yaml to the lint-staged glob in package.json so that prettier runs on YAML files at commit time, matching what CI's prettier . --check already enforces.

Why this matters: edits to .github/dependabot.yml (and any other YAML in the repo) could pass the local pre-commit hook and then fail CI on formatting. PR #56 hit this exact gap on its first push. The two checks now stay in sync.

kneshi added 2 commits May 12, 2026 10:48
CI's prettier --check covers all YAML files, but the lint-staged
pre-commit hook only globbed ts/tsx/js/mjs/json/md/css. That meant
edits to .github/dependabot.yml could pass the commit hook locally
and then fail CI on formatting (one example: PR #56's first push).
Bringing the two checks into sync.
@kneshi kneshi merged commit d118daf into main May 12, 2026
15 checks passed
@kneshi kneshi deleted the chore/lint-staged-yaml branch May 12, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant