Skip to content

Commit

Permalink
feat: added husky
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Apr 3, 2024
1 parent 49d1362 commit 461170a
Show file tree
Hide file tree
Showing 4 changed files with 10 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 @@
yarn lint
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"start": "next start",
"lint": "next lint",
"format": "prettier --write ./src",
"postbuild": "next-sitemap"
"postbuild": "next-sitemap",
"prepare": "husky"
},
"dependencies": {
"@chakra-ui/icons": "^2.0.18",
Expand Down Expand Up @@ -57,6 +58,7 @@
"devDependencies": {
"@types/crypto-js": "^4.2.2",
"@types/uuid": "^9.0.1",
"husky": "^9.0.11",
"next-sitemap": "^4.0.7",
"prettier": "^2.8.7"
}
Expand Down
1 change: 1 addition & 0 deletions src/components/election/Nominate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default function Nominate() {
uid: user.uid,
updated_at: serverTimestamp(),
created_at: serverTimestamp(),
vote_count: 0,
votes: []
};

Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3333,6 +3333,11 @@ http-parser-js@>=0.5.1:
resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.5.8.tgz#af23090d9ac4e24573de6f6aecc9d84a48bf20e3"
integrity sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==

husky@^9.0.11:
version "9.0.11"
resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.11.tgz#fc91df4c756050de41b3e478b2158b87c1e79af9"
integrity sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==

idb-keyval@^6.2.0:
version "6.2.1"
resolved "https://registry.yarnpkg.com/idb-keyval/-/idb-keyval-6.2.1.tgz#94516d625346d16f56f3b33855da11bfded2db33"
Expand Down

0 comments on commit 461170a

Please sign in to comment.