Skip to content

Commit bd65cba

Browse files
chore: improve tooling (#1179)
1 parent 35cf047 commit bd65cba

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ logs
22
*.log
33
npm-debug.log*
44
.eslintcache
5+
.cspellcache
56

67
/coverage
78
/dist

lint-staged.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2-
"*": ["prettier --write --ignore-unknown", "cspell --no-must-find-files"],
2+
"*": [
3+
"prettier --cache --write --ignore-unknown",
4+
"cspell --cache --no-must-find-files",
5+
],
36
"*.js": ["eslint --cache --fix"],
47
};

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
"build": "cross-env NODE_ENV=production babel src -d dist --copy-files",
2323
"commitlint": "commitlint --from=master",
2424
"security": "npm audit --production",
25-
"lint:prettier": "prettier --list-different .",
25+
"lint:prettier": "prettier --cache --list-different .",
2626
"lint:js": "eslint --cache .",
27+
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
2728
"lint": "npm-run-all -l -p \"lint:**\"",
2829
"test:only": "cross-env NODE_ENV=test jest",
2930
"fix:js": "npm run lint:js -- --fix",
3031
"fix:prettier": "npm run lint:prettier -- --write",
3132
"fix": "npm-run-all -l fix:js fix:prettier",
32-
"lint:spelling": "cspell \"**/*.*\"",
3333
"test:watch": "npm run test:only -- --watch",
3434
"test:manual": "npm run build && webpack-dev-server test/manual/src/index.js --open --config test/manual/webpack.config.js",
3535
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",

0 commit comments

Comments
 (0)