Repository navigation
Replace husky and lint-staged with simple-git-hooks and nano-staged - #680
Merged
Merged
Conversation
Run the same Prettier and Stylelint pre-commit commands with lighter tooling, configured in package.json. Remove the .husky directory and document how to unset the leftover core.hooksPath in the README. Signed-off-by: Roger Sheen <roger@infotexture.net>
infotexture
added a commit
that referenced
this pull request
Oct 31, 2026
* develop: Bump prettier from 3.8.1 to 3.9.10 (#671) Replace husky and lint-staged with simple-git-hooks and nano-staged (#680) Pin website workflows to Ubuntu 24.04 Update npm lockfile to fix dev dependency vulnerabilities Update link to DITA Bootstrap plug-in Update Dockerfile to use subcommand for installing plug-ins Update docs GitHub Actions for 4.4.1 (#675) Add 4.4.1 release date
infotexture
added a commit
that referenced
this pull request
Nov 14, 2026
* hotfix/4.4.2: (21 commits) Bump stylelint-config-recommended from 17.0.0 to 18.0.0 Bump stylelint-config-sass-guidelines from 12.1.0 to 13.0.0 Bump stylelint from 16.26.1 to 17.16.0 Bump Node version to Active LTS v24 Bump .github render actions to latest versions Bump actions/setup-java from 5 to 6 (#688) Bump actions/cache from 5 to 6 (#687) Bump actions/setup-node from 6 to 7 (#686) Bump actions/checkout from 6 to 7 (#682) Add details on recently merged PRs Draft 4.4.2 Release Notes stub Bump Docker image version to “4.4.2” Bump 'maintenance-version' key to “4.4.2” Bump prettier from 3.8.1 to 3.9.10 (#671) Replace husky and lint-staged with simple-git-hooks and nano-staged (#680) Pin website workflows to Ubuntu 24.04 Update npm lockfile to fix dev dependency vulnerabilities Update link to DITA Bootstrap plug-in Update Dockerfile to use subcommand for installing plug-ins Update docs GitHub Actions for 4.4.1 (#675) ...
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.
Description
Replaces husky with simple-git-hooks and lint-staged with nano-staged to reduce the number of npm dependencies.
The pre-commit commands are unchanged: Prettier still formats staged files, and Stylelint still lints staged stylesheets. All configuration lives in
package.json.Changes
prepareand the staged-files script and config inpackage.json..huskydirectory.core.hooksPathsetting Husky left behind.Installed packages in
package-lock.jsondrop from 166 to 134 (−32); direct dev dependencies stay at 8.Notes
^22 || >=24;.nvmrcalready pins 22.git config --unset core.hooksPathand thennpm install, otherwise the new hook won't run (documented in the README).Testing
npm run checkpasses.