mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
feat: add commitlint and husky
This commit is contained in:
6
commitlint.config.js
Normal file
6
commitlint.config.js
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
'@commitlint/config-conventional',
|
||||
'@commitlint/config-lerna-scopes',
|
||||
],
|
||||
};
|
||||
6
husky.config.js
Normal file
6
husky.config.js
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
hooks: {
|
||||
'pre-commit': 'npm run lint',
|
||||
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
|
||||
},
|
||||
};
|
||||
@@ -8,6 +8,10 @@
|
||||
"lint:eslint": "eslint --ext .js,.html ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^7.1.2",
|
||||
"@commitlint/config-conventional": "^7.1.2",
|
||||
"@commitlint/config-lerna-scopes": "^7.1.2",
|
||||
"husky": "^1.0.1",
|
||||
"lerna": "^3.2.1",
|
||||
"npm-run-all": "^4.1.3"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user