Skip to content

Commit

Permalink
chore: force conventional commits (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbesnier authored Apr 10, 2020
1 parent 67f9959 commit 37dcf0d
Show file tree
Hide file tree
Showing 6 changed files with 682 additions and 18 deletions.
7 changes: 0 additions & 7 deletions .githooks/pre-commit/eslint

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Changed
- Technical - Untrack IDE `.idea` folder.
- Technical - Reduce the complexity of `Prompter.isRequested` method.
- Technical - Introduce conventional commits.

## RELEASE 1.1.0 - 2020-03-20
### Added
Expand Down
4 changes: 4 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: { 'header-max-length': [2, 'always', 100] },
};
6 changes: 6 additions & 0 deletions husky.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
hooks: {
'pre-commit': 'node ./.eslint-bin/pre-commit-hook.js',
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
},
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"winston": "2.2.0"
},
"devDependencies": {
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@fancy-test/nock": "0.1.1",
"@oclif/dev-cli": "1.19.4",
"@oclif/test": "1.2.2",
Expand All @@ -49,6 +51,7 @@
"eslint-plugin-sonarjs": "0.5.0",
"fs-extra": "8.1.0",
"globby": "8.0.1",
"husky": "4.2.4",
"mocha": "5.2.0",
"mock-stdin": "1.0.0",
"moment": "2.24.0",
Expand Down
Loading

0 comments on commit 37dcf0d

Please sign in to comment.