Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
build(git): enable commitlint
Browse files Browse the repository at this point in the history
Add a configuration for `commitlint` that enforces Angular-like commit
messages in preparation for adding of `semantic-release`.
  • Loading branch information
Arcanemagus committed Jan 3, 2018
1 parent 2d9798a commit 9122172
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### Project specific config ###
language: generic
language: node_js
node_js:
- "8"

env:
matrix:
Expand All @@ -9,6 +11,9 @@ env:
os:
- linux

before_script:
- commitlint-travis

### Generic setup follows ###
dist: trusty

Expand Down
5 changes: 5 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extends: [
'@commitlint/config-conventional',
],
};
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,18 @@
"resolve": "^1.5.0"
},
"devDependencies": {
"@commitlint/config-conventional": "^5.2.3",
"@commitlint/travis-cli": "^5.2.8",
"commitlint": "^5.2.8",
"eslint": "^4.14.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.8.0",
"husky": "^0.14.3",
"jasmine-fix": "^1.3.1"
},
"scripts": {
"commitmsg": "commitlint -e $GIT_PARAMS"
},
"eslintConfig": {
"rules": {
"global-require": "off",
Expand Down

0 comments on commit 9122172

Please sign in to comment.