diff --git a/.cspell.json b/.cspell.json index b72a2df..dfd6093 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,6 +1,11 @@ { - "useGitignore": true, + "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", "version": "0.2", + "ignorePaths": ["**/*.json", "**/*.css", "node_modules", "**/*.log"], + "useGitignore": true, "language": "en", - "words": [] + "words": ["dataurl", "devpool", "outdir", "servedir"], + "dictionaries": ["typescript", "node", "software-terms"], + "import": ["@cspell/dict-typescript/cspell-ext.json", "@cspell/dict-node/cspell-ext.json", "@cspell/dict-software-terms"], + "ignoreRegExpList": ["[0-9a-fA-F]{6}"] } diff --git a/.github/workflows/cspell.yml b/.github/workflows/cspell.yml index a716534..b7d749f 100644 --- a/.github/workflows/cspell.yml +++ b/.github/workflows/cspell.yml @@ -21,4 +21,4 @@ jobs: run: yarn add cspell - name: Run cspell - run: yarn cspell "src/**/*.{ts,json}" + run: yarn format:cspell" diff --git a/package.json b/package.json index 3288ab6..3b6bfd4 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,10 @@ "utils:remove-list": "tsx -e \"require('src/utils/clear-unused-labels/clear-unused-labels.ts').default();\"", "utils:colorize": "tsx -e \"require('src/utils/colorize-labels.ts').default();\"", "utils:toggle-label": "tsx src/cli/cli-entry-wrapper.ts --tool toggle-label -v ping", - "format": "run-s format:prettier format:lint", + "format": "run-s format:lint format:prettier format:cspell", "format:lint": "eslint --fix .", "format:prettier": "prettier --write .", + "format:cspell": "cspell **/*", "prepare": "husky install" }, "dependencies": { @@ -29,6 +30,9 @@ "devDependencies": { "@commitlint/cli": "^18.4.3", "@commitlint/config-conventional": "^18.4.3", + "@cspell/dict-node": "^4.0.3", + "@cspell/dict-software-terms": "^3.3.17", + "@cspell/dict-typescript": "^3.1.2", "@types/command-line-args": "^5.2.0", "@types/command-line-usage": "^5.0.2", "@types/node": "^20.10.0", diff --git a/yarn.lock b/yarn.lock index 639d73d..e8f7063 100644 --- a/yarn.lock +++ b/yarn.lock @@ -643,7 +643,7 @@ __metadata: languageName: node linkType: hard -"@cspell/dict-software-terms@npm:^3.3.15": +"@cspell/dict-software-terms@npm:^3.3.15, @cspell/dict-software-terms@npm:^3.3.17": version: 3.3.17 resolution: "@cspell/dict-software-terms@npm:3.3.17" checksum: 0e8b3cf226f2cd3dd0bccb1f28a8fac24d7223e7ba670b73aec08cb69a1285755743716e53261ae4ef4f6f43d7682a8af11f4a14ef50b1875c1809f955c71f06 @@ -5977,6 +5977,9 @@ __metadata: dependencies: "@commitlint/cli": ^18.4.3 "@commitlint/config-conventional": ^18.4.3 + "@cspell/dict-node": ^4.0.3 + "@cspell/dict-software-terms": ^3.3.17 + "@cspell/dict-typescript": ^3.1.2 "@octokit/rest": ^20.0.1 "@types/command-line-args": ^5.2.0 "@types/command-line-usage": ^5.0.2