From c65114888c473ebe5afad06c6b6c651a0b81cb93 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Thu, 25 Jun 2026 23:40:27 +0200 Subject: [PATCH] Add cspell --- .forgejo/workflows/deploy.yml | 1 + cspell.json | 110 ++++++++++++++++++++++++++++++++++ package.json | 4 +- 3 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 cspell.json diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 94867b3..a2796f4 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -34,6 +34,7 @@ jobs: npm run lint npm run typecheck npm run qa:no-em-dashes + npm run qa:spelling - name: Build run: npm run build diff --git a/cspell.json b/cspell.json new file mode 100644 index 0000000..77ca04e --- /dev/null +++ b/cspell.json @@ -0,0 +1,110 @@ +{ + "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", + "version": "0.2", + "language": "en,en-GB", + "ignorePaths": [ + "node_modules/**", + "dist/**", + ".astro/**", + "package-lock.json", + "*.svg", + "public/**", + "todo.md" + ], + "words": [ + "acked", + "acks", + "adblocker", + "apos", + "backpressure", + "backtest", + "bgsave", + "binaryen", + "bindgen", + "bitpacking", + "blockedbyclient", + "borgmann", + "btrfs", + "cheatable", + "collab", + "conveyal", + "crewmates", + "datasheet", + "datasheets", + "decla", + "dequant", + "desync", + "domcontentloaded", + "emelt", + "érettségi", + "extensionless", + "extrapolators", + "fizika", + "forex", + "fouc", + "funimation", + "gameboy", + "glsl", + "greatai", + "hanning", + "healthcheck", + "immich", + "immich's", + "importmap", + "janky", + "jemalloc", + "keepalives", + "laion", + "loggable", + "malloc", + "metas", + "mixolydian", + "mlockall", + "mosfets", + "nixplay's", + "ntfy", + "numba", + "numpy", + "nums", + "permacomputing", + "physarum", + "pocketbase", + "powerups", + "proptest", + "refetches", + "reimplementable", + "requantised", + "rgba", + "scalex", + "scaley", + "schmelczer", + "scrollables", + "serde", + "setpoints", + "shiki", + "slugifies", + "speculationrules", + "sqlx", + "stdlib", + "stft", + "strobing", + "stucki", + "subvolume", + "syncer", + "szintű", + "tamagotchis", + "tarjan's", + "tidepool", + "tmpfs", + "tweakpane", + "unsets", + "vaultlink", + "waveshare", + "waveshare's", + "webform", + "webgpu", + "wgsl", + "writeups", + "zstd" + ] +} diff --git a/package.json b/package.json index 34fea5e..f0e268e 100644 --- a/package.json +++ b/package.json @@ -17,11 +17,12 @@ "audit:astro": "npm run build && node scripts/install-playwright-deps.mjs && node scripts/export-astro-audit.mjs", "qa:astro-audit": "node scripts/install-playwright-deps.mjs && node scripts/export-astro-audit.mjs --fail-on-issues", "qa:no-em-dashes": "node scripts/check-no-em-dashes.mjs", + "qa:spelling": "cspell --no-progress \"astro.config.mjs\" \"src/**/*.{astro,ts,md,css}\" \"scripts/**/*.mjs\" \"*.md\"", "qa:links": "node scripts/check-links.mjs", "qa:no-js": "node scripts/check-no-js.mjs", "qa:overflow": "node scripts/install-playwright-deps.mjs && node scripts/check-overflow.mjs", "qa:preview-cropping": "node scripts/install-playwright-deps.mjs && node scripts/check-preview-cropping.mjs", - "qa": "npm run typecheck && npm run lint && npm run qa:no-em-dashes && npm run build && npm run qa:astro-audit && npm run qa:links && npm run qa:no-js && npm run qa:overflow && npm run qa:preview-cropping" + "qa": "npm run typecheck && npm run lint && npm run qa:no-em-dashes && npm run qa:spelling && npm run build && npm run qa:astro-audit && npm run qa:links && npm run qa:no-js && npm run qa:overflow && npm run qa:preview-cropping" }, "repository": { "type": "git", @@ -45,6 +46,7 @@ "@astrojs/sitemap": "^3.7.2", "@types/node": "^22.13.0", "astro": "^6.3.1", + "cspell": "^10.0.1", "playwright": "^1.59.1", "prettier": "^3.8.3", "prettier-plugin-astro": "^0.14.1",