Skip to content

Commit

Permalink
build: add git hooks and conventionalcommit
Browse files Browse the repository at this point in the history
  • Loading branch information
apowers313 committed Nov 12, 2020
1 parent 74962c8 commit 4e83e1d
Show file tree
Hide file tree
Showing 4 changed files with 3,309 additions and 190 deletions.
9 changes: 9 additions & 0 deletions .versionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"types": [
{"type":"feat","section":"Features"},
{"type":"fix","section":"Bug Fixes"},
{"type":"test","section":"Tests"},
{"type":"build","section":"Build System"},
{"type":"ci","hidden":true}
]
}
37 changes: 37 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
parserPreset: "conventional-changelog-conventionalcommits",
rules: {
"body-leading-blank": [1, "always"],
"body-max-line-length": [2, "always", 100],
"footer-leading-blank": [1, "always"],
"footer-max-line-length": [2, "always", 100],
"header-max-length": [2, "always", 100],
"scope-case": [2, "always", "lower-case"],
"subject-case": [
2,
"never",
["sentence-case", "start-case", "pascal-case", "upper-case"],
],
"subject-empty": [2, "never"],
"subject-full-stop": [2, "never", "."],
"type-case": [2, "always", "lower-case"],
"type-empty": [2, "never"],
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
],
],
},
};
Loading

0 comments on commit 4e83e1d

Please sign in to comment.