Skip to content

Commit

Permalink
feat: add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Nov 21, 2024
1 parent 0229380 commit 8e860d0
Show file tree
Hide file tree
Showing 3 changed files with 21 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
17 changes: 17 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 @@ -9,7 +9,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "prettier -l \"functions/src/**/*\" \"public/src/**/*\" && eslint functions/src && eslint public/src",
"lint-fix": "prettier --write \"functions/src/**/*\" \"public/src/**/*\" && eslint functions/src --fix . && eslint public/src --fix ."
"lint-fix": "prettier --write \"functions/src/**/*\" \"public/src/**/*\" && eslint functions/src --fix . && eslint public/src --fix .",
"prepare": "husky"
},
"keywords": [],
"author": "",
Expand All @@ -21,6 +22,7 @@
"@types/jest": "^29.5.8",
"eslint": "^9.15.0",
"globals": "^15.12.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"ts-jest": "^29.1.1",
Expand Down

0 comments on commit 8e860d0

Please sign in to comment.