Conversation
…t-staged for pre-commit hooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/readme.txtandCHANGELOG.md.overrides.Key changes (high level)
.husky/pre-commit) andpreparescript inpackage.json.lint-stagedconfig to run file-type checks on staged files.scripts/linters/lint-readme.tsandscripts/linters/lint-changelog.ts(autofix + validations).scripts/lint-readmes.ts.lint:readme,lint:changelog.husky,lint-stageddevDeps (pinnedlint-staged@^15.5.2for current Node), updatedlint-stagedconfig.overridesfor several transitive packages to address vulnerabilities & engine mismatches.CONTRIBUTING.md— instructions for hooks.src/readme.txtandCHANGELOG.md.npm audit fixand added targeted overrides (see Risks/Notes).Behavior / rules enforced
## [X.Y.Z] (YYYY-MM-DD),###change-type headings normalized, list marker normalization, spacing rules (1 blank after#/##, no blank after###), intelligent conversion of indented sublists.lint-staged(hook).Testing / how to validate locally
src/readme.txtorCHANGELOG.md, stage andgit commit— the hook should auto-fix and re-stage.Risks / notes
lint-stagedpinned to^15.5.2to remain compatible with Node v20.16.0 — recommend upgrading Node to >= 20.17 and then moving to lint-staged 16.x.