Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit b7651f2

Browse files
committed
feat: add cspell
1 parent b879ca3 commit b7651f2

File tree

5 files changed

+780
-0
lines changed

5 files changed

+780
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,26 @@ jobs:
7777
- name: Validate PR commits with commitlint
7878
if: github.event_name == 'pull_request'
7979
run: pnpm commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose # editorconfig-checker-disable-line
80+
81+
cspell:
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Checkout
85+
uses: actions/checkout@v4
86+
with:
87+
fetch-depth: 0
88+
89+
- name: Install pnpm
90+
uses: pnpm/action-setup@v4
91+
92+
- name: Install Node.js
93+
uses: actions/setup-node@v4
94+
with:
95+
node-version: 22.14.0
96+
cache: "pnpm"
97+
98+
- name: Install dependencies
99+
run: pnpm install
100+
101+
- name: Run cspell
102+
run: pnpm cspell .

cspell.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
ignorePaths: ["node_modules/**", "package.json", "pnpm-lock.yaml"],
3+
words: ["cspell", "commitlint", "syncpack"],
4+
};

lefthook.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,15 @@ pre-commit:
1818
run: pnpm editorconfig-checker
1919
glob: "*"
2020

21+
- name: cspell
22+
run: pnpm cspell .
23+
glob: "*"
24+
2125
commit-msg:
2226
parallel: true
2327
commands:
2428
commitlint:
2529
run: pnpm commitlint --edit {1}
30+
31+
spell-check:
32+
run: pnpm cspell --no-summary {1}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"devDependencies": {
33
"@commitlint/cli": "19.8.0",
44
"@commitlint/config-conventional": "19.8.0",
5+
"cspell": "8.17.5",
56
"editorconfig-checker": "6.0.1",
67
"lefthook": "1.11.3",
78
"syncpack": "13.0.2"

0 commit comments

Comments
 (0)