From 14bbf2ef6fbf3fc292aaf603890280f660a6272f Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Tue, 3 Dec 2024 16:29:53 -0500 Subject: [PATCH] AHA: expand npm, node dictionaries for all --- cspell.json | 3 +-- src/steps/writing/creation/createCSpellConfig.test.ts | 4 ++-- src/steps/writing/creation/createCSpellConfig.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cspell.json b/cspell.json index 04d56ef5..31fd370c 100644 --- a/cspell.json +++ b/cspell.json @@ -1,5 +1,5 @@ { - "dictionaries": ["typescript"], + "dictionaries": ["npm", "node", "typescript"], "ignorePaths": [ "./coverage*", "./script/__snapshots__", @@ -16,7 +16,6 @@ "arethetypeswrong", "automerge", "codespace", - "contributorsrc", "execa", "infile", "joshuakgoldberg", diff --git a/src/steps/writing/creation/createCSpellConfig.test.ts b/src/steps/writing/creation/createCSpellConfig.test.ts index 4074636c..d60efbb9 100644 --- a/src/steps/writing/creation/createCSpellConfig.test.ts +++ b/src/steps/writing/creation/createCSpellConfig.test.ts @@ -8,7 +8,7 @@ describe("createCSpellConfig", () => { expect(actual).toMatchInlineSnapshot(` "{ - "dictionaries": ["typescript"], + "dictionaries": ["npm", "node", "typescript"], "ignorePaths": [ ".all-contributorsrc", ".github", @@ -40,7 +40,7 @@ describe("createCSpellConfig", () => { expect(actual).toMatchInlineSnapshot(` "{ - "dictionaries": ["typescript"], + "dictionaries": ["npm", "node", "typescript"], "ignorePaths": [ ".github", "CHANGELOG.md", diff --git a/src/steps/writing/creation/createCSpellConfig.ts b/src/steps/writing/creation/createCSpellConfig.ts index 412b5ff5..970c89b9 100644 --- a/src/steps/writing/creation/createCSpellConfig.ts +++ b/src/steps/writing/creation/createCSpellConfig.ts @@ -21,7 +21,7 @@ export async function createCSpellConfig( .sort(); return await formatJson({ - dictionaries: ["typescript"], + dictionaries: ["npm", "node", "typescript"], ignorePaths: [ ...(options.excludeAllContributors ? [] : [".all-contributorsrc"]), ".github",