Skip to content

Commit 654d229

Browse files
committed
chore: ignore comments when linting commits
1 parent 1c726f4 commit 654d229

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.cspell.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
"/'s\\b/", // trailing 's
2121
"<!--.*?-->" // comments
2222
]
23+
},
24+
{
25+
"languageId": "git",
26+
"ignoreRegExpList": [
27+
"/# .*/" // comments
28+
]
2329
}
2430
]
2531
}

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
cat "$1" | npx cspell stdin
4+
cat "$1" | npx cspell lint --language-id git stdin
55
npx --no-install commitlint --edit "$1"

0 commit comments

Comments
 (0)