Skip to content

Commit 58802c3

Browse files
chore: migrate from husky to simple-git-hooks for pre-commit linting
1 parent 9b99029 commit 58802c3

4 files changed

Lines changed: 18 additions & 22 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/modules_temp/*
55
/node_modules/*
66
.eslintcache
7+
.husky/*
78
.idea
89
.vscode/*
910
ownModuleList.json

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
This file was deleted.

package-lock.json

Lines changed: 12 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@
4444
"ownList": "node create_own_module_list.js && node --run collectMetadata && node --run getModules && node --run expandModuleList && node --run checkModules",
4545
"lint": "eslint && prettier --check .",
4646
"lint:fix": "eslint --fix && prettier . --write",
47-
"prepare": "husky",
47+
"prepare": "simple-git-hooks",
4848
"test": "node --run test:fixtures && node --run lint && node --run golden:check && node --run schemas:check && node --run test:unit && node --run test:spelling",
4949
"test:unit": "node --test scripts/shared/__tests__/**/*.test.js && node --test scripts/check-modules/__tests__/**/*.test.js && node --test scripts/check-modules/compare/__tests__/**/*.test.js",
5050
"test:spelling": "cspell .",
5151
"leaveMenu": "echo 'Leaving menu...'"
5252
},
53+
"simple-git-hooks": {
54+
"pre-commit": "npx lint-staged"
55+
},
5356
"lint-staged": {
5457
"*": [
5558
"eslint --fix",
@@ -81,9 +84,9 @@
8184
"eslint-plugin-import-x": "^4.16.1",
8285
"eslint-plugin-package-json": "^0.88.2",
8386
"globals": "^17.3.0",
84-
"husky": "^9.1.7",
8587
"lint-staged": "^16.2.7",
8688
"prettier": "^3.8.1",
89+
"simple-git-hooks": "^2.13.1",
8790
"typescript-eslint": "^8.54.0"
8891
},
8992
"ntl": {

0 commit comments

Comments
 (0)