From 5a91a2927c956685b4d5fe7d57ba48e5a2a30db7 Mon Sep 17 00:00:00 2001 From: Andrew Calcutt Date: Mon, 2 Sep 2024 17:38:23 -0400 Subject: [PATCH] Remove husky (#1378) --- .husky/commit-msg | 18 ------------------ .husky/pre-push | 1 - package-lock.json | 16 ---------------- package.json | 4 +--- 4 files changed, 1 insertion(+), 38 deletions(-) delete mode 100755 .husky/commit-msg delete mode 100755 .husky/pre-push diff --git a/.husky/commit-msg b/.husky/commit-msg deleted file mode 100755 index 4838d2d9c..000000000 --- a/.husky/commit-msg +++ /dev/null @@ -1,18 +0,0 @@ -NAME=$(git config user.name) -EMAIL=$(git config user.email) - -if [ -z "$NAME" ]; then - echo "empty git config user.name" - exit 1 -fi - -if [ -z "$EMAIL" ]; then - echo "empty git config user.email" - exit 1 -fi - -git interpret-trailers --if-exists doNothing --trailer \ - "Signed-off-by: $NAME <$EMAIL>" \ - --in-place "$1" - -npm exec --no -- commitlint --edit $1 diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100755 index 46e2b1244..000000000 --- a/.husky/pre-push +++ /dev/null @@ -1 +0,0 @@ -npm exec --no -- lint-staged --no-stash diff --git a/package-lock.json b/package-lock.json index ade9854fb..40420157f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,6 @@ "eslint-plugin-jsdoc": "^50.2.2", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-security": "^1.7.1", - "husky": "^9.1.5", "lint-staged": "^15.2.9", "mocha": "^10.7.3", "node-addon-api": "^8", @@ -4296,21 +4295,6 @@ "ms": "^2.0.0" } }, - "node_modules/husky": { - "version": "9.1.5", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.5.tgz", - "integrity": "sha512-rowAVRUBfI0b4+niA4SJMhfQwc107VLkBUgEYYAOQAbqDCnra1nYh83hF/MDmhYs9t9n1E3DuKOrs2LYNC+0Ag==", - "dev": true, - "bin": { - "husky": "bin.js" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", diff --git a/package.json b/package.json index b781cbbb6..254046a44 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,7 @@ "lint:eslint:fix": "eslint --fix \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs}\" --ignore-path .gitignore", "lint:prettier": "prettier --check \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs,json}\" --ignore-path .gitignore", "lint:prettier:fix": "prettier --write \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs,json}\" --ignore-path .gitignore", - "docker": "docker build . && docker run --rm -i -p 8080:8080 $(docker build -q .)", - "prepare": "node -e \"if (process.env.NODE_ENV !== 'production'){ process.exit(1) } \" || husky" + "docker": "docker build . && docker run --rm -i -p 8080:8080 $(docker build -q .)" }, "dependencies": { "@jsse/pbfont": "^0.2.2", @@ -56,7 +55,6 @@ "eslint-plugin-jsdoc": "^50.2.2", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-security": "^1.7.1", - "husky": "^9.1.5", "lint-staged": "^15.2.9", "mocha": "^10.7.3", "node-addon-api": "^8",