Skip to content

Commit 07bdce3

Browse files
authored
chore: add cSpell to check spelling issues (#192)
1 parent b4ec9bd commit 07bdce3

7 files changed

+1681
-60
lines changed

Diff for: .cspell.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "0.2",
3+
"language": "en,en-gb",
4+
"words": [
5+
"arrify",
6+
"notjs",
7+
"nonfixable",
8+
"dasdas",
9+
"badeslintrc",
10+
"autofix",
11+
"autofixing",
12+
"checkstyle",
13+
"commitlint",
14+
"indentifiers"
15+
],
16+
17+
"ignorePaths": [
18+
"CHANGELOG.md",
19+
"package.json",
20+
"coverage",
21+
"/test/output",
22+
"dist/**",
23+
"**/__snapshots__/**",
24+
"package-lock.json"
25+
]
26+
}

Diff for: lint-staged.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
'*.js': ['eslint --fix', 'prettier --write'],
2+
'*.js': ['eslint --fix', 'prettier --write', 'cspell'],
33
'*.{json,md,yml,css,ts}': ['prettier --write'],
44
};

Diff for: package-lock.json

+1,649-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"security": "npm audit",
2828
"lint:prettier": "prettier -w --list-different .",
2929
"lint:js": "eslint --cache .",
30+
"lint:spelling": "cspell \"**/*.*\"",
3031
"lint:types": "tsc --pretty --noEmit",
3132
"lint": "npm-run-all -l -p \"lint:**\"",
3233
"test:only": "cross-env NODE_ENV=test jest --testTimeout=60000",
@@ -67,6 +68,7 @@
6768
"babel-jest": "^29.2.2",
6869
"chokidar": "^3.5.3",
6970
"cross-env": "^7.0.3",
71+
"cspell": "^6.14.3",
7072
"del": "^6.1.1",
7173
"del-cli": "^4.0.1",
7274
"eslint": "^8.26.0",

Diff for: src/options.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "boolean"
1616
},
1717
"eslintPath": {
18-
"description": "Path to `eslint` instance that will be used for linting. If the `eslintPath` is a folder like a official eslint, or specify a `formatter` option. now you dont have to install `eslint`.",
18+
"description": "Path to `eslint` instance that will be used for linting. If the `eslintPath` is a folder like a official eslint, or specify a `formatter` option. now you don't have to install `eslint`.",
1919
"type": "string"
2020
},
2121
"exclude": {

Diff for: test/fail-on-error.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('fail on error', () => {
2222
});
2323
});
2424

25-
it('should correctly indentifies a success', (done) => {
25+
it('should correctly identifies a success', (done) => {
2626
const compiler = pack('good', { failOnError: true });
2727

2828
compiler.run((err) => {

Diff for: test/fail-on-warning.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('fail on warning', () => {
1111
});
1212
});
1313

14-
it('should correctly indentifies a success', (done) => {
14+
it('should correctly identifies a success', (done) => {
1515
const compiler = pack('good', { failOnWarning: true });
1616

1717
compiler.run((err) => {

0 commit comments

Comments
 (0)