-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypos.toml
23 lines (21 loc) · 990 Bytes
/
typos.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# ignore text that looks like a bitcoin address or a lightning invoice or a jwt token
# as they are likely to be false positives
[default]
extend-ignore-identifiers-re = [
"^bc1[a-zA-Z0-9]{39,59}$", # Enhanced to specify length for Bitcoin bech32 addresses
"^lnbc1[a-zA-Z0-9]{71,}$", # Start for Lightning invoices; adjusted for potential longer starts
"\"eyJ[a-zA-Z0-9_\\-\\.]+\"" # JWT token pattern
]
extend-ignore-re = [
"\\/\\/[^\n]*" # Ignore double slash comments in code
]
[files]
extend-exclude = [
"**/node_modules/**", # Exclude all node_modules directories
"**/dist/**", # Exclude all dist directories
"**/*.json", # Exclude all JSON files
"scripts/**", # Exclude the scriptsOut directory
"**/*.min.js", # Exclude minified JS files
"**/*.bundle.js", # Exclude bundled JS files
"**/*.d.ts" # Exclude TypeScript definition files if not needed
]