Skip to content

Commit 0594db4

Browse files
riderxclaude
andcommitted
chore: add typos configuration to prevent false positives
Add .typos.toml to prevent typos CLI from incorrectly modifying git commit hashes in CHANGELOG files while still checking for legitimate typos. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 96e1c88 commit 0594db4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.typos.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[default]
2+
# Ignore patterns that match commit hashes and Git-related identifiers
3+
extend-ignore-re = [
4+
# Git commit hashes in parentheses: (7553ede), (88d0ded), etc.
5+
"\\([a-f0-9]{7,40}\\)",
6+
# Git commit hashes in square brackets: [7553ede], [88d0ded], etc.
7+
"\\[[a-f0-9]{7,40}\\]",
8+
# Full GitHub commit URLs
9+
"github\\.com/[^/]+/[^/]+/commit/[a-f0-9]{7,40}",
10+
# Commit hash at end of markdown links: ...commit/abcd123)
11+
"commit/[a-f0-9]{7,40}\\)",
12+
]
13+
14+
[files]
15+
extend-exclude = [
16+
# Exclude lock files
17+
"package-lock.json",
18+
"yarn.lock",
19+
"pnpm-lock.yaml",
20+
# Exclude build artifacts
21+
"dist/",
22+
"build/",
23+
"*.min.js",
24+
# Exclude node_modules
25+
"node_modules/",
26+
]
27+
28+
[default.extend-words]
29+
# Add any custom words that should not be corrected
30+
# Format: incorrectword = "incorrectword"

0 commit comments

Comments
 (0)