Skip to content

Commit

Permalink
chore: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Apr 22, 2020
1 parent 5cdc5b4 commit d3af1b6
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"private": true,
"scripts": {
"dev": "cross-env BROWSER=none node ./packages/dumi/bin/dumi.js dev",
"watch": "father-build build --watch",
Expand All @@ -24,6 +23,8 @@
},
"devDependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@types/jest": "^24.0.13",
"@umijs/fabric": "^2.0.0-beta.4",
"@umijs/test": "^3.0.3",
Expand All @@ -32,9 +33,34 @@
"cross-env": "^6.0.3",
"eslint": "^6.7.2",
"father-build": "^1.14.2",
"husky": "^4.2.5",
"lerna": "^3.6.0",
"lerna-changelog": "^0.8.2",
"prettier": "^1.19.1",
"puppeteer": "^2.1.1"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"scope-enum": [
2,
"always",
[
"scaffold",
"theme",
"bin",
"preset",
"routes",
"transformer"
]
]
}
}
}

0 comments on commit d3af1b6

Please sign in to comment.