Skip to content

Commit

Permalink
ci: add commitlint config
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioramos committed Nov 13, 2020
1 parent edc916d commit 7180369
Show file tree
Hide file tree
Showing 2 changed files with 756 additions and 48 deletions.
15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"unist-util-map": "^2.0.1"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"ava": "^3.13.0",
"c8": "^7.3.4",
"eslint": "^7.11.0",
Expand All @@ -50,7 +52,8 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
Expand Down Expand Up @@ -85,5 +88,15 @@
"camelcase": 0,
"capitalized-comments": 0
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"body-max-line-length": [
0
]
}
}
}
Loading

0 comments on commit 7180369

Please sign in to comment.