Skip to content

Commit d7fd7a4

Browse files
authored
ci: add cspell (#31)
Closes #25
1 parent 96b3f11 commit d7fd7a4

5 files changed

Lines changed: 1038 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,15 @@ jobs:
4545
- name: Run Format
4646
run: npm run format:check
4747

48+
- name: Cache Spell Check
49+
id: cache-spell-check
50+
uses: actions/cache@v4
51+
with:
52+
path: ./.cspell
53+
key: cspell-cache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
54+
55+
- name: Run Spell Check
56+
run: npm run spell-check
57+
4858
- name: Run Test
4959
run: npm run test:coverage

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@ dist-ssr
1414
*.local
1515
playground/*
1616
!playground/.gitkeep
17+
.cspell/
1718

1819
# Editor directories and files
1920
.vscode/*
2021
!.vscode/extensions.json
2122
!.vscode/settings.json
2223
.idea
2324
.DS_Store
24-
*.suo
25-
*.ntvs*
26-
*.njsproj
27-
*.sln
28-
*.sw?

cspell.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3+
"words": [
4+
"commentblock",
5+
"commentline",
6+
"classconstant",
7+
"propertystatement",
8+
"assignref"
9+
],
10+
"enableGlobDot": true,
11+
"ignorePaths": [
12+
".git",
13+
".github",
14+
".idea",
15+
".vscode",
16+
".cspell",
17+
".turbo",
18+
".DS_Store",
19+
"coverage",
20+
"**/dist/**",
21+
"**/CHANGELOG.md",
22+
"**/node_modules/**"
23+
],
24+
"cache": {
25+
"useCache": true,
26+
"cacheLocation": "./.cspell/.cspellcache",
27+
"cacheStrategy": "content"
28+
}
29+
}

0 commit comments

Comments
 (0)