diff --git a/cspell.json b/cspell.json index 74bb8f328..d578a035c 100644 --- a/cspell.json +++ b/cspell.json @@ -370,8 +370,6 @@ ], "files": [ "*", - ".*", - ".github/**/*", "bin/**/*", "changelog_unreleased/**/*", "docs/**/*", @@ -381,14 +379,12 @@ "website/**/*", "tests/config/**/*", "tests/integration/**/*", - "tests/**/jsfmt.spec.js" + "tests/format/**/jsfmt.spec.js" ], "ignorePaths": [ + ".git", "cspell.json", - "**/node_modules/**", - "**/yarn.lock", "*.{log,svg,snap,png}", - "test*.*", "website/data/users.yml", "website/build/**", "website/playground/codeSamples.js", diff --git a/package.json b/package.json index 98b486418..be4a5ec0d 100644 --- a/package.json +++ b/package.json @@ -151,7 +151,7 @@ "lint:changelog": "node ./scripts/lint-changelog.mjs", "lint:prettier": "prettier . \"!test*\" --check", "lint:dist": "eslint --no-eslintrc --no-ignore --no-inline-config --config=./scripts/bundle-eslint-config.js \"dist/!(bin-prettier|index|third-party).js\"", - "lint:spellcheck": "cspell --no-progress --relative", + "lint:spellcheck": "cspell --no-progress --relative --dot --gitignore", "lint:deps": "node ./scripts/check-deps.mjs", "lint:actionlint": "node-actionlint", "fix": "run-s fix:eslint fix:prettier", diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/test.js b/scripts/tools/eslint-plugin-prettier-internal-rules/test.js index f89175aac..861dd804d 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/test.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/test.js @@ -272,8 +272,8 @@ test("no-identifier-n", { valid: ["const a = {n: 1}", "const m = 1", "a.n = 1"], invalid: [ { - code: "const n = 1; alet(n)", - output: "const node = 1; alet(node)", + code: "const n = 1; alert(n)", + output: "const node = 1; alert(node)", errors: 1, }, {