Skip to content

Instantly share code, notes, and snippets.

@bsmth
Last active January 2, 2023 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsmth/dbac540fafb85b61a50ae381e9dd29c0 to your computer and use it in GitHub Desktop.
Save bsmth/dbac540fafb85b61a50ae381e9dd29c0 to your computer and use it in GitHub Desktop.
Testing .vscode/cspell.json
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"language": "en",
"languageId": "*",
"dictionaries": [
"bash",
"css",
"cpp",
"django",
"filetypes",
"fonts",
"fullstack",
"html",
"latex",
"lorem-ipsum",
"markdown",
"node",
"npm",
"python",
"softwareTerms",
"svelte",
"typescript"
],
"ignorePaths": [".vscode/cspell.json"],
"words": [
"Bézier",
"Brotli",
"browserslistrc",
"caniuse",
"Codecademy",
"Coursera",
"devs",
"Disqus",
"duckduckgo",
"expressjs",
"Filezilla",
"FLAC",
"gzipped",
"htmlattrxref",
"ICANN",
"jsfiddle",
"jsxref",
"mathml",
"Modernizr",
"mozillians",
"nolint",
"npmjs",
"psycopg",
"Quora",
"Snyk",
"sveltejs",
"threejs",
"tinypng",
"Todos",
"Unopinionated",
"Vorbis",
"WCAG",
"webm",
"webp",
"WEBVTT",
"WHATWG",
"whois"
],
"allowCompoundWords": true,
"overrides": [
{
"filename": "./files/en-us/learn/html/**/*.md",
"words": ["Howto"]
},
{
"filename": "files/en-us/learn/css/**/*.md",
"words": ["Howto"]
},
{
"filename": "files/en-us/learn/server-side/django/deployment/**/*.md",
"words": ["Gunicorn"]
},
{
"filename": "files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/**/*.md",
"words": ["Componentizing", "componentization", "componentize"]
},
{
"filename": "files/en-us/learn/server-side/express_nodejs/**/*.md",
"words": ["Luxon"]
},
{
"filename": "files/en-us/learn/javascript/**/*.md",
"words": ["OOJS"]
}
]
}
@bsmth
Copy link
Author

bsmth commented Jan 2, 2023

Testing on content using:

cspell lint --unique --config .vscode/cspell.json files/en-us/learn/**/*.md

@OnkarRuikar
Copy link

We could use a separate file with all the allowed words to keep the config file size small:

  "dictionaryDefinitions": [
    {
      "name": "project-words",
      "path": "./project-words.txt",
      "addWords": true
    }
  ],
  "dictionaries": [
    "bash",
    "css",
    ...
    "project-words"],
  "ignorePaths": ["node_modules/**"],

@bsmth
Copy link
Author

bsmth commented Jan 2, 2023

"addWords": true

Good idea 👍 -> https://cspell.org/docs/dictionaries-custom/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment