Skip to content

Commit eca87e0

Browse files
authored
add spellcheck (#221)
## Description Adds spell check. ## Motivation and Context Check errors earlier. I know the PR checks are red but those are unrelated -> my changes are passing: ## Documentation impact - [ ] Documentation update required - [ ] Documentation updated [in another PR](_) - [x] No documentation update required ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
1 parent f79b8c1 commit eca87e0

6 files changed

Lines changed: 1033 additions & 5 deletions

File tree

.cspell.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"version": "0.2",
3+
"language": "en",
4+
"dictionaries": ["custom-dictionary"],
5+
"dictionaryDefinitions": [
6+
{
7+
"name": "custom-dictionary",
8+
"path": "./spelling.txt",
9+
"addWords": true
10+
}
11+
],
12+
"ignorePaths": [
13+
"**/node_modules/**",
14+
"packages/**",
15+
"docs/api/**",
16+
".git/**",
17+
"*.lock",
18+
"yarn.lock",
19+
"package-lock.json",
20+
"api/**"
21+
],
22+
"ignoreRegExpList": ["JSXComment", "/^\\s*```[\\s\\S]*?^\\s*```/gm"],
23+
24+
"patterns": [
25+
{
26+
"name": "JSXComment",
27+
"pattern": "\\{/\\*[\\s\\S]*?\\*/\\}"
28+
}
29+
],
30+
"enableFiletypes": ["mdx"],
31+
"allowCompoundWords": true,
32+
"ignoreWords": ["MZWSHSWM"]
33+
}

.github/workflows/static.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,7 @@ jobs:
5151
fi
5252
5353
- name: Check TypeDoc generation
54-
run: yarn docs --emit none
54+
run: yarn docs
55+
56+
- name: Spellcheck
57+
run: yarn spellcheck

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"packageManager": "yarn@4.4.0",
99
"devDependencies": {
1010
"@eslint/js": "^9.23.0",
11+
"cspell": "^9.4.0",
1112
"eslint": "^9.23.0",
1213
"globals": "^16.0.0",
1314
"prettier": "^3.5.3",
@@ -23,6 +24,8 @@
2324
"typecheck": "yarn workspaces foreach -A -p run typecheck",
2425
"format:check": "yarn workspaces foreach -A -p run format:check",
2526
"format": "yarn workspaces foreach -A -p run format",
26-
"docs": "typedoc"
27+
"docs": "typedoc",
28+
"spellcheck": "cspell '**/*.md' '**/*.mdx' '**/*.html' --exclude '**/api/**' --show-suggestions",
29+
"spellcheck:report": "yarn spellcheck --no-show-suggestions"
2730
}
2831
}

packages/js-server-sdk/src/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class FishjamAgent extends (EventEmitter as new () => TypedEmitter<AgentE
9393
}
9494

9595
/**
96-
* Interrupt track indentified by `trackId`.
96+
* Interrupt track identified by `trackId`.
9797
*
9898
* Any audio that has been sent by the agent, but not played
9999
* by Fishjam will be cleared and be prevented from playing.

spelling.txt

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# markdown-spellcheck spelling configuration file
2+
3+
# Format - lines beginning # are comments
4+
5+
# global dictionary is at the start, file overrides afterwards
6+
7+
# one word per line, to define a file override use ' - filename'
8+
9+
# where filename is relative to this configuration file
10+
11+
stateful
12+
webhooks
13+
webhook
14+
websocket
15+
metadata
16+
Fishjam
17+
backend
18+
SDK
19+
SDKs
20+
url
21+
params
22+
NodeJS
23+
e.g.
24+
js-server-sdk
25+
Docusaurus
26+
pre-configured
27+
TabItem
28+
AndroidManifest.xml
29+
iOS
30+
Xcode
31+
UI
32+
dev
33+
Podfile
34+
TLDR
35+
frontend
36+
quicknavigation
37+
src
38+
carditems
39+
webrtc
40+
item.title.tolowercase
41+
videoroom
42+
fishjam.io
43+
room.fishjam.io
44+
unmuting
45+
programmatically
46+
unmute
47+
middleware
48+
encodings
49+
apis
50+
unmuted
51+
FastAPI
52+
Fastify
53+
fishjamclient
54+
codebase
55+
protobuf
56+
websockets
57+
deduplication
58+
se
59+
InstallPackage
60+
ConfigurePermissions
61+
mdx
62+
_components
63+
fastify
64+
JSON
65+
props.children
66+
_common
67+
header.mdx
68+
MetadataHeader
69+
joining_room.mdx
70+
JoiningRoom
71+
updating.mdx
72+
UpdatingMetadata
73+
reading.mdx
74+
ReadingMetadata
75+
codecs
76+
H.264
77+
VP8
78+
codec
79+
bitrates
80+
preprocess
81+
customsource
82+
js
83+
visioncamera
84+
frameprocessorplugin
85+
Javascript
86+
WebGL
87+
WebGPU
88+
Three.js
89+
PixiJS
90+
MediaStream
91+
WHEP
92+
livestream
93+
livestreaming
94+
broadcasted
95+
livestreamer
96+
livestreams
97+
async
98+
boolean
99+
asyncio
100+
mrousavy
101+
xcworkspace
102+
Pixi
103+
pydantic
104+
uvicorn
105+
QVGA
106+
Memberof
107+
unmutes
108+
websocat

0 commit comments

Comments
 (0)