From 326bba75bf44a614436edc15e5807db55eeadc76 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Thu, 12 Dec 2024 17:06:32 -0500 Subject: [PATCH] Flag and suggest alternatives for common mispellings --- cspell.json | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cspell.json b/cspell.json index e5b706f4..68070b9b 100644 --- a/cspell.json +++ b/cspell.json @@ -57,6 +57,14 @@ "FICAM", "FPKI" ], + "flagWords": [ + "Github->GitHub", + "Gitlab->GitLab", + "pki->PKI", + "Idp->IdP", + "idp->IdP", + "IDP->IdP" + ], "patterns": [ { "name": "Markdown links", diff --git a/package.json b/package.json index cfaa7eb5..0526e9db 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "scripts": { "clean:js": "rm -rf _site/assets/js", - "cspell": "cspell --config cspell.json --no-progress '**/*.md' --exclude 'vendor/**' --exclude 'node_modules/**'", + "cspell": "cspell --config cspell.json --show-suggestions --no-progress '**/*.md' --exclude 'vendor/**' --exclude 'node_modules/**'", "prebuild:js:common": "npm run clean:js", "build:js:common": "esbuild `find assets/js -type f -not -name '*.min.*'` --outdir=_site/assets/js --bundle --format=esm --splitting", "build:js:dev": "npm run build:js:common -- --sourcemap=inline",