Skip to content

Commit 9696e26

Browse files
authored
feat: add spell check command (#1738)
Adds cspell for checking project spelling.
1 parent 2d704b6 commit 9696e26

37 files changed

+1508
-120
lines changed

.aegir.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export default {
2323
'typedoc-plugin-missing-exports',
2424
'electron',
2525
'bytes',
26-
'pascalcase'
26+
'pascalcase',
27+
'cspell'
2728
]
2829
}
2930
}

README.md

-51
Original file line numberDiff line numberDiff line change
@@ -43,57 +43,6 @@ It bundles config for standard tools such as eslint, mocha, etc and lets you con
4343

4444
Run `aegir --help`
4545

46-
```bash
47-
Usage: aegir <command> [options]
48-
49-
Commands:
50-
aegir completion generate completion script
51-
aegir build Builds a browser bundle and TS type declara
52-
tions from the `src` folder.
53-
aegir check-project Ensure your project has the correct config.
54-
aegir check Check project
55-
aegir clean [files..] Remove created build artifacts.
56-
aegir dependency-check [input...] Run `dependency-check` cli with aegir defau
57-
lts. [aliases: dep-check, dep]
58-
aegir docs Generate documentation from TS type declara
59-
tions.
60-
aegir document-check [input...] Run `document-check` cli with aegir default
61-
s. [aliases: doc-check]
62-
aegir lint-package-json Lint package.json with aegir defaults.
63-
[aliases: lint-package, lpj]
64-
aegir lint Lint all project files
65-
aegir release Release using semantic-release
66-
aegir release-rc Release an RC version of the current module
67-
or monorepo
68-
aegir test-dependant [repo] Run the tests of an module that depends on
69-
this module to see if the current changes h
70-
ave caused a regression
71-
aegir test Test your code in different environments
72-
aegir exec <command> Run a command in each project of a monorepo
73-
aegir run <scripts..> Run one or more npm scripts in each project
74-
of a monorepo
75-
76-
Global Options:
77-
-h, --help Show help [boolean]
78-
-v, --version Show version number [boolean]
79-
-d, --debug Show debug output. [boolean] [default: false]
80-
81-
Examples:
82-
aegir build Runs the build command to bundle JS
83-
code for the browser.
84-
npx aegir build Can be used with `npx` to use a loca
85-
l version
86-
aegir test -t webworker -- --browser fir If the command supports `--` can be
87-
efox used to forward options to the under
88-
lying tool.
89-
npm test -- -- --browser firefox If `npm test` translates to `aegir t
90-
est -t browser` and you want to forw
91-
ard options you need to use `-- --`
92-
instead.
93-
94-
Use `aegir <command> --help` to learn more about each command.
95-
```
96-
9746
## Configuration
9847

9948
Aegir can be fully configured using a config file named `.aegir.js` or the package.json using the property `aegir`.

cspell.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// Enable your dictionary by adding it to the list of `dictionaries`
3+
"dictionaries": ["ipfs"],
4+
5+
// Tell CSpell about your dictionary
6+
"dictionaryDefinitions": [{
7+
// The name of the dictionary is used to look it up.
8+
"name": "ipfs",
9+
// Path to the custom word file. Relative to this `cspell.json` file.
10+
"path": "./dictionaries/ipfs.txt"
11+
}],
12+
13+
"files": [
14+
"**/*.{ts,js,md}",
15+
"!**/dist/**",
16+
"!**/node_modules/**",
17+
"!**/CHANGELOG.md"
18+
],
19+
20+
"ignoreRegExpList": [
21+
// ignore import names (e.g. `import foo from 'module-name-with-typo'`)
22+
"/from\\s+(['\"]).*\\1/",
23+
24+
// ignore dynamic imports
25+
"/import(.*)/",
26+
27+
// ignore anything in backticks
28+
"/`.*`/",
29+
30+
// multiaddrs are not spell checked
31+
"/multiaddr(.*)/",
32+
33+
// peer ids are not spell checked
34+
"/peerIdFromString(.*)/",
35+
36+
// string encoded binary is not spell checked
37+
"/uint8ArrayFromString(.*)/",
38+
39+
// CIDs are not spell checked
40+
"/CID(.*)/"
41+
]
42+
}

dictionaries/ipfs.txt

+275
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,275 @@
1+
achingbrain
2+
addr
3+
addrs
4+
aegir
5+
alanshaw
6+
autodial
7+
autodialer
8+
autonat
9+
bafyfoo
10+
bafzaa
11+
bavail
12+
bfree
13+
bitfield
14+
bitswap
15+
blockstore
16+
bootstrapper
17+
bootstrappers
18+
bufs
19+
bundlesize
20+
cbor
21+
cborg
22+
cd
23+
certhash
24+
certhashes
25+
chainsafe
26+
chunker
27+
ci
28+
cid
29+
cids
30+
cidv
31+
ciphertext
32+
cjs
33+
cms
34+
cnames
35+
codecov
36+
comms
37+
composable
38+
const
39+
createLibp
40+
crypto
41+
cryptographically
42+
dagcbor
43+
dagjson
44+
datagrams
45+
datastore
46+
dcutr
47+
dedupe
48+
dek
49+
deps
50+
DER
51+
derp
52+
dev
53+
devcon
54+
devs
55+
devtools
56+
dht
57+
dhts
58+
dialability
59+
dialable
60+
dialer
61+
dignifiedquire
62+
disambiguator
63+
discv
64+
dnsaddr
65+
dnsaddrs
66+
dnslink
67+
dumbsub
68+
encrypter
69+
Encrypters
70+
esm
71+
ethereum
72+
eventloop
73+
fanout
74+
fgrep
75+
fil
76+
filecoin
77+
filecoinv
78+
firewalled
79+
floodsub
80+
fs
81+
garply
82+
gater
83+
ghrelease
84+
ghtoken
85+
github
86+
golog
87+
gossipsub
88+
graphana
89+
graphsync
90+
hacky
91+
hamt
92+
hashers
93+
helia
94+
herp
95+
hopstr
96+
ihave
97+
implementers
98+
impls
99+
io
100+
ipcidr
101+
ipdxco
102+
ipfs
103+
ipfsd
104+
ipjs
105+
ipld
106+
ipni
107+
ipns
108+
ipshipyard
109+
ipv
110+
iterable
111+
iterables
112+
iwant
113+
kad
114+
kaddht
115+
kademlia
116+
kbucket
117+
keychain
118+
keypair
119+
keypairs
120+
keystore
121+
kubo
122+
libjuice
123+
libp
124+
maconn
125+
mafmt
126+
marshaled
127+
matcher
128+
mdns
129+
mDNS
130+
meshsub
131+
millis
132+
monorepo
133+
mplex
134+
multiaddr
135+
multiaddrs
136+
multibase
137+
multicodec
138+
multicodecs
139+
multidim
140+
multiformats
141+
multihash
142+
multihashes
143+
multistream
144+
muxed
145+
muxer
146+
muxerfactory
147+
muxers
148+
muxing
149+
namespace
150+
namesys
151+
nat
152+
nated
153+
nim
154+
nist
155+
nodejs
156+
npm
157+
nsecs
158+
onboarding
159+
opensource
160+
osi
161+
p's
162+
pbes
163+
pbkdf
164+
pblink
165+
pbstr
166+
pc
167+
peerbit
168+
pem
169+
perf
170+
pico
171+
pinset
172+
pkcs
173+
pkix
174+
plaintext
175+
pmp
176+
pnet
177+
polyfill
178+
pre
179+
premajor
180+
preminor
181+
prepatch
182+
priv
183+
productionization
184+
programmatically
185+
protobuf
186+
protos
187+
protoschool
188+
provs
189+
PRs
190+
PSK
191+
pubsub
192+
pushable
193+
qmfoo
194+
quic
195+
quicv
196+
reprovide
197+
reprovider
198+
requirejs
199+
responder
200+
retimeable
201+
roadmap
202+
routable
203+
rpc
204+
rsa
205+
runtimes
206+
sdp
207+
secio
208+
secp
209+
semver
210+
seqno
211+
sha
212+
sparsearray
213+
ssdp
214+
ssl
215+
stablelib
216+
startable
217+
startables
218+
statfs
219+
stringified
220+
stringifies
221+
stringifying
222+
subarray
223+
sublist
224+
subnet
225+
tdigest
226+
testdata
227+
timespec
228+
toc
229+
todo
230+
topologies
231+
tsconfig
232+
tutorialkit
233+
ufrag
234+
uint
235+
unconfirm
236+
undialable
237+
undialables
238+
unhandle
239+
unixfs
240+
unmarshal
241+
unmarshaled
242+
unmarshaling
243+
unmarshals
244+
untake
245+
unwant
246+
upgradability
247+
upgrader
248+
upnp
249+
upnpnat
250+
urlpad
251+
useragent
252+
varint
253+
vyzo
254+
waku
255+
wantlist
256+
weakcb
257+
weald
258+
webapp
259+
webrtc
260+
webrtcdirect
261+
webtransport
262+
webworker
263+
wherearewe
264+
wnfs
265+
xSalsa
266+
xxbloom
267+
yamux
268+
adoptopenjdk
269+
cmdline
270+
sdkmanager
271+
avdmanager
272+
avds
273+
askpass
274+
mdast
275+
conventionalcommits

0 commit comments

Comments
 (0)