From d581737f784d144a961d61248d42f59440159571 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 11 Jan 2022 11:17:12 +0200 Subject: [PATCH] Update cspell config (#35647) * specify the files to scan in the config * enable `useGitignore` option * remove a few unneeded suppressions --- .cspell.json | 18 +++++++----------- package.json | 2 +- site/content/docs/5.1/components/modal.md | 2 +- site/content/docs/5.1/customize/sass.md | 2 +- site/content/docs/5.1/getting-started/rtl.md | 2 +- site/content/docs/5.1/migration.md | 2 +- 6 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.cspell.json b/.cspell.json index 5f65533d8d..35d0d293e1 100644 --- a/.cspell.json +++ b/.cspell.json @@ -19,7 +19,6 @@ "callouts", "clearfix", "Codesniffer", - "colorspace", "combinator", "Contentful", "Cpath", @@ -43,9 +42,7 @@ "fieldsets", "flexbox", "fullscreen", - "fusv", "getbootstrap", - "globby", "Grayscale", "Hoverable", "hreflang", @@ -86,12 +83,10 @@ "scrollbars", "scrollspy", "Segoe", - "sirv", "srcset", "stickied", "Stylelint", "subnav", - "svgo", "tabbable", "textareas", "toggleable", @@ -99,7 +94,6 @@ "touchend", "twbs", "unitless", - "Unported", "unstylable", "unstyled", "Uppercased", @@ -109,15 +103,17 @@ "vstack", "walkthroughs", "WCAG", - "webfont", - "Woohoo", "zindex", "بالعالم", "مرحبًا" ], - "language": "en,en-US", + "language": "en, en-US", + "files": [ + "site/**/*.md" + ], "ignorePaths": [ ".cspell.json", - ".min." - ] + "*.min.*" + ], + "useGitignore": true } diff --git a/package.json b/package.json index f4c5ca8e91..39d8137285 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "docs-build": "hugo --cleanDestinationDir", "docs-compile": "npm run docs-build", "docs-linkinator": "linkinator _site --recurse --skip \"^(?!http://localhost)\" --verbosity error", - "docs-spellcheck": "cspell \"site/**/*.md\" --no-progress", + "docs-spellcheck": "cspell --no-progress", "docs-vnu": "node build/vnu-jar.js", "docs-lint": "npm-run-all --aggregate-output --parallel docs-vnu docs-linkinator docs-spellcheck", "docs-serve": "hugo server --port 9001 --disableFastRender", diff --git a/site/content/docs/5.1/components/modal.md b/site/content/docs/5.1/components/modal.md index 8255a73644..7f05deb5d2 100644 --- a/site/content/docs/5.1/components/modal.md +++ b/site/content/docs/5.1/components/modal.md @@ -90,7 +90,7 @@ Toggle a working modal demo by clicking the button below. It will slide down and