Skip to content

Commit a8ade45

Browse files
committedFeb 22, 2022
feat(dev): add commit linting
1 parent 5291248 commit a8ade45

File tree

4 files changed

+1967
-4
lines changed

4 files changed

+1967
-4
lines changed
 

‎.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ""

‎commitlint.config.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ["@commitlint/config-conventional"], ignores: [(message) => message.includes("wip")] }

‎package-lock.json

+1,959-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"npm": ">=7"
4343
},
4444
"devDependencies": {
45+
"@commitlint/cli": "^16.2.1",
46+
"@commitlint/config-conventional": "^16.2.1",
4547
"@types/openui5": "^1.98.0",
4648
"@typescript-eslint/eslint-plugin": "^5.12.0",
4749
"@typescript-eslint/parser": "^5.12.0",
@@ -55,6 +57,7 @@
5557
"eslint-config-prettier": "^8.3.0",
5658
"eslint-plugin-prettier": "^4.0.0",
5759
"fs-extra": "^10.0.0",
60+
"husky": "^7.0.4",
5861
"npm-run-all": "^4.1.5",
5962
"prettier": "^2.5.1",
6063
"replace-in-file": "^6.3.2",

0 commit comments

Comments
 (0)
Please sign in to comment.