Skip to content

Commit 5b084e9

Browse files
authored
docs: add spellcheck to gh actions (#2994)
Adds cspell to ci
1 parent 61345f5 commit 5b084e9

File tree

141 files changed

+818
-667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+818
-667
lines changed

.github/cspell.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
// Enable your dictionary by adding it to the list of `dictionaries`
3+
"dictionaries": ["custom-words"],
4+
5+
// Tell CSpell about your dictionary
6+
"dictionaryDefinitions": [{
7+
// The name of the dictionary is used to look it up.
8+
"name": "custom-words",
9+
// Path to the custom word file. Relative to this `cspell.json` file.
10+
"path": "./wordlist.txt",
11+
// Some editor extensions will use `addWords` for adding words to your
12+
// personal dictionary.
13+
"addWords": true
14+
}],
15+
16+
"files": [
17+
"**/*.{ts,js,md}",
18+
"!**/dist/**",
19+
"!**/node_modules/**",
20+
"!**/CHANGELOG.md"
21+
],
22+
23+
"ignoreRegExpList": [
24+
// ignore import names (e.g. `import foo from 'module-name-with-typo'`)
25+
"/from\\s+(['\"]).*\\1/",
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+
}

.github/wordlist.txt

Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
1+
achingbrain
2+
additionals
3+
addr
4+
addrs
5+
aegir
6+
alanshaw
7+
autodial
8+
autodialer
9+
autonat
10+
bafyfoo
11+
bafzaa
12+
bavail
13+
bfree
14+
bitswap
15+
BLPOP
16+
bootstrapper
17+
bufs
18+
buildx
19+
casttree
20+
cborg
21+
cd
22+
certhash
23+
certhashes
24+
chainsafe
25+
ci
26+
ciphertext
27+
cjs
28+
cms
29+
codecov
30+
comms
31+
composable
32+
config
33+
const
34+
createLibp
35+
crypto
36+
cryptographically
37+
datagrams
38+
datastore
39+
dcutr
40+
dedupe
41+
dek
42+
deps
43+
DER
44+
dev
45+
devcon
46+
devs
47+
devtools
48+
dht
49+
dhts
50+
dialability
51+
dialable
52+
dialer
53+
discv
54+
dnsaddr
55+
dnsaddrs
56+
Dout
57+
dumbsub
58+
encrypter
59+
Encrypters
60+
esm
61+
ethereum
62+
EventEmitter
63+
eventloop
64+
FIL
65+
firewalled
66+
floodsub
67+
fs
68+
gater
69+
getbit
70+
getValue
71+
github
72+
GOLOG
73+
gossipsub
74+
graphana
75+
hacky
76+
helia
77+
hopr
78+
hopstr
79+
ihave
80+
implementers
81+
incrby
82+
io
83+
ipcidr
84+
ipfs
85+
ipns
86+
ipshipyard
87+
IPv
88+
iterable
89+
iterables
90+
iwant
91+
kad
92+
kadDHT
93+
kademlia
94+
KBUCKET
95+
keychain
96+
keypair
97+
keypairs
98+
keystore
99+
kubo
100+
ldelim
101+
libjuice
102+
libp
103+
maconn
104+
mafmt
105+
marshaled
106+
matcher
107+
mdns
108+
mDNS
109+
millis
110+
misconfigurations
111+
monorepo
112+
mplex
113+
multiaddr
114+
multiaddrs
115+
multibase
116+
multicodec
117+
multicodecs
118+
multidim
119+
multiformats
120+
multihash
121+
multihashes
122+
multistream
123+
muxed
124+
muxer
125+
muxerfactory
126+
muxers
127+
muxing
128+
namespace
129+
nat
130+
NATed
131+
nim
132+
nist
133+
nodejs
134+
nothrow
135+
npm
136+
onboarding
137+
opensource
138+
osi
139+
p's
140+
pbes
141+
pbkdf
142+
pbstr
143+
peerbit
144+
pem
145+
perf
146+
pkcs
147+
pkix
148+
plaintext
149+
pmp
150+
pnet
151+
pc
152+
polyfill
153+
pre
154+
priv
155+
productionization
156+
programmatically
157+
protobuf
158+
protos
159+
protoschool
160+
provs
161+
PRs
162+
PSK
163+
pubsub
164+
pushable
165+
Qmfoo
166+
quic
167+
QUICV
168+
removeObservedAddr
169+
Reprovide
170+
Reprovider
171+
RequireJS
172+
responder
173+
retimeable
174+
rlflx
175+
roadmap
176+
routable
177+
rpc
178+
rpush
179+
rsa
180+
runtimes
181+
sdp
182+
secio
183+
secp
184+
semver
185+
seqno
186+
setbit
187+
sha
188+
SSDP
189+
SSL
190+
stablelib
191+
startable
192+
startables
193+
statfs
194+
stopstr
195+
stringified
196+
stringifies
197+
stringifying
198+
subarray
199+
sublist
200+
subnet
201+
supercop
202+
tdigest
203+
testdata
204+
toc
205+
TODO
206+
topologies
207+
tsconfig
208+
tutorialkit
209+
ufrag
210+
uint
211+
unconfirm
212+
undialable
213+
undialables
214+
unhandle
215+
unmarshal
216+
unmarshaled
217+
unmarshaling
218+
unmarshals
219+
upgradability
220+
upgrader
221+
upnp
222+
upnpnat
223+
urlpad
224+
useragent
225+
varint
226+
vyzo
227+
Waku
228+
weakcb
229+
weald
230+
webapp
231+
webrtc
232+
webrtcdirect
233+
webtransport
234+
XSalsa
235+
xxbloom
236+
yamux

.github/workflows/main.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,34 @@ jobs:
1818
build:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v4
22-
- uses: actions/setup-node@v4
23-
with:
24-
node-version: lts/*
25-
- uses: ipfs/aegir/actions/cache-node-modules@main
26-
with:
27-
directories: ${{ env.CACHE_DIRS }}
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: lts/*
25+
- uses: ipfs/aegir/actions/cache-node-modules@main
26+
with:
27+
directories: ${{ env.CACHE_DIRS }}
2828

2929
check:
3030
needs: build
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@v4
34-
- uses: actions/setup-node@v4
35-
with:
36-
node-version: lts/*
37-
- uses: ipfs/aegir/actions/cache-node-modules@main
38-
with:
39-
directories: ${{ env.CACHE_DIRS }}
40-
- run: npm run --if-present lint
41-
- run: npm run --if-present dep-check
42-
- run: npm run --if-present docs:no-publish
43-
- run: npm run --if-present doc-check
33+
- uses: actions/checkout@v4
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: lts/*
37+
- uses: ipfs/aegir/actions/cache-node-modules@main
38+
with:
39+
directories: ${{ env.CACHE_DIRS }}
40+
- run: npm run --if-present lint
41+
- run: npm run --if-present dep-check
42+
- run: npm run --if-present docs:no-publish
43+
- run: npm run --if-present doc-check
44+
- uses: streetsidesoftware/cspell-action@ef95dc49d631fc2a9e9ea089ae2b2127b7c4588e # v6.10.0
45+
with:
46+
config: .github/cspell.json
47+
use_cspell_files: true
48+
4449
test-node:
4550
needs: build
4651
runs-on: ${{ matrix.os }}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
👉 Please see the [IPFS JavaScript Community contributing guidelines](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for how to collaborate and contribute to js-libp2p.
66

7-
💪 The [core maintainers](https://github.com/libp2p/js-libp2p/blob/main/CODEOWNERS) hang out in #libp2p-implementers in ipfs.io Matrix, FIL Slack, and IPFS Discord. They perform weekly triage of issues and PRs per https://lu.ma/libp2p
7+
💪 The [core maintainers](https://github.com/libp2p/js-libp2p/blob/main/CODEOWNERS) hang out in #libp2p-implementers in ipfs.io Matrix, FIL Slack, and IPFS Discord. They perform weekly triage of issues and PRs on the Open Maintainers Call - see the [Libp2p Events Calendar](https://lu.ma/libp2p) to find out when the next one is.
88

99
🤲 Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed in [README.md](https://github.com/libp2p/js-libp2p/blob/main/README.md), without any additional terms or conditions.
1010

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amain)
1414

1515
> [!NOTE]
16-
> Are you tring to upgrade libp2p to the latest version? Check out the [migration guides](https://github.com/libp2p/js-libp2p/tree/main/doc/migrations) for any changes you need to make.
16+
> Are you trying to upgrade libp2p to the latest version? Check out the [migration guides](https://github.com/libp2p/js-libp2p/tree/main/doc/migrations) for any changes you need to make.
1717
1818
### Project status
1919

@@ -24,7 +24,7 @@ The documentation in the main branch may contain changes from a pre-release.
2424
If you are looking for the documentation of the latest release, you can view the latest release on [npm](https://www.npmjs.com/package/libp2p), or select the tag in github that matches the version you are looking for.
2525

2626
> [!TIP]
27-
> Just tring to figure out what this is all about? Check our [GETTING\_STARTED.md](https://github.com/libp2p/js-libp2p/blob/main/doc/GETTING_STARTED.md) guide and [examples](https://github.com/libp2p/js-libp2p-examples).
27+
> Just trying to figure out what this is all about? Check our [GETTING\_STARTED.md](https://github.com/libp2p/js-libp2p/blob/main/doc/GETTING_STARTED.md) guide and [examples](https://github.com/libp2p/js-libp2p-examples).
2828
2929
## Background
3030

@@ -41,7 +41,7 @@ We are in the process of writing better documentation, blog posts, tutorials and
4141
- Articles
4242
- [The overview of libp2p](https://github.com/libp2p/libp2p#description)
4343

44-
To sum up, libp2p is a "network stack" -- a protocol suite -- that cleanly separates concerns, and enables sophisticated applications to only use the protocols they absolutely need, without giving up interoperability and upgradeability. libp2p grew out of IPFS, but it is built so that lots of people can use it, for lots of different projects.
44+
To sum up, libp2p is a "network stack" -- a protocol suite -- that cleanly separates concerns, and enables sophisticated applications to only use the protocols they absolutely need, without giving up interoperability and upgradability. libp2p grew out of IPFS, but it is built so that lots of people can use it, for lots of different projects.
4545

4646
## Roadmap
4747

@@ -76,7 +76,7 @@ You can find multiple examples on the [examples repo](https://github.com/libp2p/
7676
## Structure
7777

7878
- [`/doc`](https://github.com/libp2p/js-libp2p/blob/main/doc) Docs for libp2p
79-
- [`/interop`](https://github.com/libp2p/js-libp2p/tree/main/interop) Multidimension Interop Test
79+
- [`/interop`](https://github.com/libp2p/js-libp2p/tree/main/interop) Multidimensional Interop Test
8080
- [`/packages/crypto`](https://github.com/libp2p/js-libp2p/tree/main/packages/crypto) Crypto primitives for libp2p
8181
- [`/packages/interface`](https://github.com/libp2p/js-libp2p/tree/main/packages/interface) The interface implemented by a libp2p node
8282
- [`/packages/interface-compliance-tests`](https://github.com/libp2p/js-libp2p/tree/main/packages/interface-compliance-tests) Compliance tests for JS libp2p interfaces
@@ -121,7 +121,7 @@ You can find multiple examples on the [examples repo](https://github.com/libp2p/
121121
#### Run unit tests
122122

123123
```sh
124-
# run all the unit tsts
124+
# run all the unit tests
125125
> npm test
126126

127127
# run just Node.js tests

0 commit comments

Comments
 (0)