Skip to content

Commit

Permalink
chore: setup commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Aysnine committed Apr 28, 2020
1 parent 7d98cf2 commit 6e38472
Show file tree
Hide file tree
Showing 2 changed files with 417 additions and 198 deletions.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"vuex-map-fields": "^1.4.0"
},
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@d2-projects/vue-filename-injector": "^1.1.1",
"@vue/cli-plugin-babel": "^4.3.1",
"@vue/cli-plugin-eslint": "^4.3.1",
Expand Down Expand Up @@ -127,12 +129,18 @@
"css": "https://cdn.jsdelivr.net/npm/[email protected]/lib/theme-chalk/index.css"
}
],
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"gitHooks": {
"commit-msg": "commitlint -E GIT_PARAMS",
"pre-push": "yarn lint:strict --cache && yarn test:unit --onlyChanged"
},
"license": "MIT",
Expand Down
Loading

0 comments on commit 6e38472

Please sign in to comment.