Skip to content

Commit 9f841ab

Browse files
committed
chore: add commitlint and husky
1 parent 3fc387f commit 9f841ab

File tree

5 files changed

+746
-25
lines changed

5 files changed

+746
-25
lines changed

.commitlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit $1

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"demo:serve": "yarn workspace demo serve"
2020
},
2121
"devDependencies": {
22+
"@commitlint/cli": "^12.0.1",
23+
"@commitlint/config-conventional": "^12.0.1",
2224
"@types/prosemirror-commands": "^1.0.3",
2325
"@types/prosemirror-dropcursor": "^1.0.1",
2426
"@types/prosemirror-gapcursor": "^1.0.3",
@@ -42,6 +44,7 @@
4244
"eslint-plugin-react": "^7.23.1",
4345
"eslint-plugin-react-hooks": "^4.2.0",
4446
"eslint-plugin-simple-import-sort": "^7.0.0",
47+
"husky": "^6.0.0",
4548
"prettier": "^2.2.1",
4649
"prosemirror-commands": "^1.1.7",
4750
"prosemirror-model": "^1.13.3",

0 commit comments

Comments
 (0)