Skip to content

Commit

Permalink
Add Husky for Pre-Commit Hooks and Code Quality Checks (#54)
Browse files Browse the repository at this point in the history
* chore: test Husky setup

* chore: add lint-staged to husky

* docs: add npm install step for husky
  • Loading branch information
tristenwallace committed Jul 15, 2024
1 parent 0406179 commit 30d9f64
Show file tree
Hide file tree
Showing 6 changed files with 1,603 additions and 80 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit
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"

npx lint-staged
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ To install the Polling App, follow these steps:

2.Navigate to the project directory: `cd pollify`

3.Install Root Dependencies: npm install (Important for Husky Pre-Commit Hooks)

### Setup environment variables

2.Navigate to environment folder: `cd environment`
Expand Down
Loading

0 comments on commit 30d9f64

Please sign in to comment.