Skip to content

Commit

Permalink
initialization of npm package: added commitlint and husky (#29)
Browse files Browse the repository at this point in the history
* chore: init npm, configured commitlint

* chore: configured husky
  • Loading branch information
Rizaaal authored Dec 30, 2023
1 parent 23d960e commit 60f9a6c
Show file tree
Hide file tree
Showing 4 changed files with 2,183 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"header-max-length": [2, "always", 100],
"type-enum": [2, "always", ["chore", "docs", "feat", "fix", "refactor"]],
"scope-enum": [2, "always", ["html", "css", "business-logic", "info", "personal"]
]
}
}
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 commitlint --edit
Loading

0 comments on commit 60f9a6c

Please sign in to comment.