Skip to content

Commit

Permalink
Merge pull request #52 from PacificYield/husky
Browse files Browse the repository at this point in the history
ci: add Husky and Commitlint
  • Loading branch information
PacificYield authored Nov 13, 2024
2 parents f1d30af + fe6116a commit 5c2509b
Show file tree
Hide file tree
Showing 5 changed files with 531 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .commitlintrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { UserConfig } from "@commitlint/types";

const Configuration: UserConfig = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [2, "always", ["ci", "chore", "docs", "ticket", "feat", "fix", "perf", "refactor", "revert", "style"]],
},
};

export default Configuration;
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm --no-install commitlint --edit
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm --no-install prettier:check
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
},
"license": "BSD-3-Clause",
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/types": "^19.5.0",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.6",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-network-helpers": "^1.0.10",
Expand Down Expand Up @@ -38,6 +41,7 @@
"hardhat-gas-reporter": "^1.0.10",
"hardhat-ignore-warnings": "^0.2.11",
"hardhat-preprocessor": "^0.1.5",
"husky": "^9.1.6",
"lodash": "^4.17.21",
"mocha": "^10.3.0",
"prettier": "^2.8.8",
Expand Down
Loading

0 comments on commit 5c2509b

Please sign in to comment.