Skip to content

Commit

Permalink
feat: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
staylor committed Sep 13, 2020
1 parent 7205b28 commit 3054564
Show file tree
Hide file tree
Showing 3 changed files with 586 additions and 36 deletions.
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"devDependencies": {
"@babel/cli": "7.11.6",
"@babel/core": "7.11.6",
"@commitlint/cli": "11.0.0",
"@commitlint/config-conventional": "11.0.0",
"babel-eslint": "10.1.0",
"babel-preset-kyt-react": "1.0.5",
"enzyme": "3.11.0",
Expand All @@ -42,6 +44,7 @@
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.20.6",
"eslint-plugin-react-hooks": "4.1.2",
"husky": "4.3.0",
"jest": "26.4.2",
"jsdom": "16.4.0",
"microbundle": "0.12.3",
Expand All @@ -64,5 +67,10 @@
"test-update": "yarn test -u",
"compile": "yarn run clean && KYT_ENV_TYPE=client NODE_ENV=production microbundle --jsx React.createElement",
"prepare": "yarn compile"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
Loading

0 comments on commit 3054564

Please sign in to comment.