Skip to content

Commit

Permalink
Add husky pre commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
NingW101 committed Oct 9, 2024
1 parent ef66674 commit 8731f89
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"prod": "npm run build && node build_scripts.js",
"startup": "cd ./dist && http-server -S -C ../cert.pem -K ../key.pem -o",
"lint": "eslint .",
"lint-fix": "eslint . --fix"
"lint-fix": "eslint . --fix",
"prepare": "husky"
},
"type": "module",
"devDependencies": {
Expand All @@ -24,6 +25,7 @@
"fs-extra": "^11.2.0",
"globals": "^15.8.0",
"http-server": "^14.1.1",
"husky": "^9.1.6",
"mkdirp": "^3.0.1",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.1",
Expand Down

0 comments on commit 8731f89

Please sign in to comment.