-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathcspell.json
More file actions
59 lines (47 loc) · 1.63 KB
/
cspell.json
File metadata and controls
59 lines (47 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
// Enable your dictionary by adding it to the list of `dictionaries`
"dictionaries": ["ipfs"],
// Tell CSpell about your dictionary
"dictionaryDefinitions": [{
// The name of the dictionary is used to look it up.
"name": "ipfs",
// Path to the custom word file. Relative to this `cspell.json` file.
"path": "./dictionaries/ipfs.txt"
}],
"files": [
"**/*.{ts,js,md}",
"!**/dist/**",
"!**/node_modules/**",
"!**/CHANGELOG.md"
],
"ignoreRegExpList": [
// ignore import names (e.g. `import foo from 'module-name-with-typo'`)
"/from\\s+(['\"]).*\\1/",
// ignore dynamic imports
"/import(.*)/",
// ignore anything in backticks
"/`.*`/",
// multiaddrs are not spell checked
"/multiaddr(.*)/",
// string encoded binary is not spell checked
"/uint8ArrayFromString(.*)/",
// CIDs are not spell checked
"/CID(.*)/",
// string CIDs are not spell checked
"baf[a-zA-Z1-9\/]+", // base32 encoded libp2p-key
"bae[a-zA-Z1-9\/]+", // base32 encoded identity
"Qm[a-zA-Z1-9\/]+", // base58btc encoded (no multibase)
// string PeerIds are not spell checked
"12D3Koo[a-zA-Z1-9\/]+", // Ed25519
"16Uiu[a-zA-Z1-9\/]+", // secp256k1
"k51[a-zA-Z1-9\/]+", // base36 ed PeerId as CID
"kzw[a-zA-Z1-9\/]+", // base36 secp PeerId as CID
"k2k[a-zA-Z1-9\/]+", // base36 rsa PeerId as CID
"/ipfs/[a-zA-Z1-9\/]+", // IPFS paths
"ipfs://[a-zA-Z1-9\/]+", // IPFS URLs
"/ipns/[a-zA-Z1-9\/\\.]+", // IPNS names
"ipns://[a-zA-Z1-9\/\\.]+", // IPNS URLs
"AAE[a-zA-Z1-9\/]+", // base64 data
"%[a-fA-F0-9]{2}" // URL encoded characters
]
}