Skip to content

Commit

Permalink
chore: replace deprecated ghooks with husky
Browse files Browse the repository at this point in the history
  • Loading branch information
giodamelio committed Jan 19, 2017
1 parent 79e42ad commit 0f19d41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Details for this project:

## Contributing

This project uses [`standard-version`](https://github.com/conventional-changelog/standard-version) to release new versions, automatically updating the version number and [changelog](https://github.com/scottnonnenberg/eslint-config-thehelp/blob/master/CHANGELOG.md) based on commit messages in [standard format](https://github.com/bcoe/conventional-changelog-standard/blob/master/convention.md). [`ghooks`](https://github.com/gtramontina/ghooks) and [`validate-commit-msg`](https://github.com/kentcdodds/validate-commit-msg) are used to ensure all commit messages match the expected format (see [package.json](https://github.com/scottnonnenberg/eslint-config-thehelp/blob/master/package.json) for the configuration details).
This project uses [`standard-version`](https://github.com/conventional-changelog/standard-version) to release new versions, automatically updating the version number and [changelog](https://github.com/scottnonnenberg/eslint-config-thehelp/blob/master/CHANGELOG.md) based on commit messages in [standard format](https://github.com/bcoe/conventional-changelog-standard/blob/master/convention.md). [`husky`](https://github.com/typicode/husky) and [`validate-commit-msg`](https://github.com/kentcdodds/validate-commit-msg) are used to ensure all commit messages match the expected format (see [package.json](https://github.com/scottnonnenberg/eslint-config-thehelp/blob/master/package.json) for the configuration details).

It takes some getting used to, but this configuration is absolutely worthwhile. A changelog is way easier to understand than the chaos of a raw commit stream, especially with `standard-version` providing direct links to bugs, commits and [commit ranges](https://github.com/scottnonnenberg/eslint-config-thehelp/compare/v0.6.0...v0.6.1).

Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"find-missing-default": "npm run find-rules -- -u test/index_combined.js",
"find-missing-react": "npm run find-rules -- -u test/react_combined.js",
"find-missing-test": "npm run find-rules -- -u test/test_combined.js",
"validate": "node scripts/validate.js"
"validate": "node scripts/validate.js",
"commitmsg": "validate-commit-msg"
},
"dependencies": {
"eslint": "2.11.1",
Expand All @@ -29,15 +30,12 @@
},
"devDependencies": {
"eslint-find-rules": "1.10.0",
"ghooks": "1.2.3",
"husky": "^0.12.0",
"lodash": "4.13.1",
"standard-version": "2.3.0",
"validate-commit-msg": "2.6.1"
},
"config": {
"ghooks": {
"commit-msg": "validate-commit-msg"
},
"validate-commit-msg": {
"maxSubjectLength": 72
}
Expand Down

0 comments on commit 0f19d41

Please sign in to comment.