Skip to content

Commit

Permalink
Added husky
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblurie29 committed Jan 14, 2024
1 parent dec39fb commit 33e26e4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run prettier:check && npm run lint:check && npm run typescript:check
22 changes: 22 additions & 0 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"typescript:check": "tsc --esModuleInterop",
"lint:check": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"prettier:format": "prettier --write '**/*.{js,jsx,ts,tsx,json,css,scss,md}'",
"prettier:check": "prettier --check '**/*.{js,jsx,ts,tsx,json,css,scss,md}'"
"prettier:check": "prettier --check '**/*.{js,jsx,ts,tsx,json,css,scss,md}'",
"prepare": "husky install"
},
"author": "",
"license": "ISC",
Expand Down Expand Up @@ -43,6 +44,7 @@
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"prettier": "^3.1.0",
"supertest": "^6.3.3"
"supertest": "^6.3.3",
"husky": "^8.0.0"
}
}

0 comments on commit 33e26e4

Please sign in to comment.