Skip to content

Commit dd398aa

Browse files
chore: improve tooling (#535)
1 parent b7ad838 commit dd398aa

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ npm-debug.log
1717
npm-debug.log*
1818
yarn-debug.log*
1919
.eslintcache
20+
.cspellcache
2021
/coverage
2122
/dist
2223
/local

lint-staged.config.js

Lines changed: 5 additions & 2 deletions
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"],
3-
"*.{js}": ["eslint --cache --fix"],
2+
"*": [
3+
"prettier --cache --write --ignore-unknown",
4+
"cspell --cache --no-must-find-files",
5+
],
6+
"*.js": ["eslint --cache --fix"],
47
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
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 --quiet \"**/*.*\"",
27+
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
2828
"lint": "npm-run-all -l -p \"lint:**\"",
2929
"fix:js": "npm run lint:js -- --fix",
3030
"fix:prettier": "npm run lint:prettier -- --write",

0 commit comments

Comments
 (0)