Skip to content

Commit

Permalink
Commitlint and husky (#102)
Browse files Browse the repository at this point in the history
* chore(*): changed commitlint rule and added precommit
  • Loading branch information
exoriri authored and Stepan Mikhaylyuk committed Dec 17, 2019
1 parent 26969db commit 4d3adf0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8,330 deletions.
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"vinyl": "^2.2.0"
},
"devDependencies": {
"husky": "^3.1.0",
"arui-presets-lint": "^2.0.0",
"conventional-changelog-cli": "1.3.14",
"conventional-github-releaser": "2.0.0",
Expand All @@ -45,7 +46,6 @@
"eslint-plugin-markdown": "^1.0.0-beta.6",
"eslint-plugin-react": "7.16.0",
"eslint-plugin-sort-class-members": "1.6.0",
"husky": "0.14.3",
"jest": "^24.9.0"
},
"scripts": {
Expand All @@ -54,10 +54,20 @@
"lint": "eslint ./*.js ./gulp/*.js ./typings/*.js",
"test": "jest",
"postversion": "git push origin master && git push --tags && npm publish",
"precommit": "npm run lint && npm run test",
"release-patch": "npm version patch -m 'chore(*): patch version'",
"release-minor": "npm version minor -m 'chore(*): minor version'",
"release-major": "npm version major -m 'chore(*): major version'",
"version": "git fetch --tags && npm run changelog && git add CHANGELOG.md"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"./node_modules/arui-presets-lint/commitlint"
]
}
}

0 comments on commit 4d3adf0

Please sign in to comment.