Skip to content

Commit 081adce

Browse files
committed
chore: fix husky configuration
1 parent 0b6dc2b commit 081adce

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

package-lock.json

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

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"stop_arangodb": "arangodb --starter.mode=single --starter.local --starter.port=8528 --starter.data-dir=./db stop",
2020
"compile-json-schema": "ajv --all-errors true compile -s src/schema/preparation/source-validation-modules/schema/schema.json -o src/schema/preparation/source-validation-modules/schema/validate-schema.js",
2121
"mrproper": "rimraf dist db node_modules package-lock.json",
22-
"prepare": "husky install",
22+
"prepare": "husky",
2323
"dev": "node cruddl-dev.js",
2424
"knip": "knip",
2525
"knip:prod": "knip --production"
@@ -60,7 +60,7 @@
6060
"deep-equal-in-any-order": "^1.1.20",
6161
"express": "^4.19.2",
6262
"graphql": "^16.6.0",
63-
"husky": "^8.0.1",
63+
"husky": "^9.1.7",
6464
"knip": "^5.27.0",
6565
"lint-staged": "^15.2.10",
6666
"log4js": "^6.6.0",
@@ -111,11 +111,6 @@
111111
],
112112
"all": true
113113
},
114-
"husky": {
115-
"hooks": {
116-
"pre-commit": "npx lint-staged"
117-
}
118-
},
119114
"lint-staged": {
120115
"*": "prettier --ignore-unknown --write"
121116
}

0 commit comments

Comments
 (0)