Skip to content

Commit 2e5e4a9

Browse files
committed
build(cspell): spelling checks
1 parent f6db517 commit 2e5e4a9

File tree

5 files changed

+586
-12
lines changed

5 files changed

+586
-12
lines changed

cspell.config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"language": "en",
3+
"words": [
4+
"codecov",
5+
"cmds",
6+
"nocolor",
7+
"oneline"
8+
]
9+
}

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,17 @@
2929
"build:deps": "bash ./scripts/dependencies.sh --doctor -u --doctorInstall \"yarn\" --doctorTest \"yarn test:deps\"",
3030
"release": "node ./bin/cli.js",
3131
"start": "./bin/cli.js",
32-
"test": "run-s -l test:lint test:ci",
32+
"test": "run-s -l test:lint test:spell* test:ci",
3333
"test:ci": "export CI=true; jest --collectCoverage",
3434
"test:clearCache": "jest --clearCache",
3535
"test:deps": "run-s test",
36-
"test:dev": "eslint ./src ./bin; jest --watch",
36+
"test:dev": "eslint ./src ./bin; run-s test:spell test:local",
3737
"test:integration": "jest --roots=./tests",
3838
"test:integration-dev": "jest --roots=./tests --watchAll",
39-
"test:lint": "eslint ./src ./bin"
39+
"test:lint": "eslint ./src ./bin",
40+
"test:local": "jest --watch",
41+
"test:spell-docs": "cspell ./README.md ./CONTRIBUTING.md --config ./cspell.config.json",
42+
"test:spell": "cspell './src/**/*.js' './tests/**/*.js' --config ./cspell.config.json"
4043
},
4144
"jest": {
4245
"roots": [
@@ -65,6 +68,7 @@
6568
"yargs": "^17.6.2"
6669
},
6770
"devDependencies": {
71+
"cspell": "^6.17.0",
6872
"eslint": "^8.26.0",
6973
"eslint-config-prettier": "^8.5.0",
7074
"eslint-plugin-babel": "^5.3.1",

src/__tests__/files.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// spell-checker: disable
12
const { updateChangelog, updatePackage } = require('../files');
23
const { getComparisonCommitHashes, parseCommits } = require('../parse');
34

src/__tests__/parse.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// spell-checker: disable
12
const {
23
getCommitType,
34
formatChangelogMessage,

0 commit comments

Comments
 (0)