From 19267833bb5b2a3b00725effa7c4967d08a4d91e Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Fri, 2 Jan 2026 15:16:59 -0500 Subject: [PATCH] chore: add husky for local commit linting Adds package.json with husky and commitlint dependencies to enable local commit message validation before push. --- .husky/commit-msg | 1 + package.json | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .husky/commit-msg create mode 100644 package.json diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..0a4b97d --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +npx --no -- commitlint --edit $1 diff --git a/package.json b/package.json new file mode 100644 index 0000000..0d966dc --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "vs-openinnotepadplusplus", + "version": "0.0.0", + "private": true, + "description": "Development dependencies for VS-OpenInNotepadPlusPlus - conventional commits tooling", + "scripts": { + "prepare": "husky" + }, + "devDependencies": { + "@commitlint/cli": "^19.0.0", + "@commitlint/config-conventional": "^19.0.0", + "husky": "^9.0.0" + } +}