Skip to content

Commit

Permalink
chore: improve tooling (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jan 16, 2024
1 parent 2f59741 commit cae0948
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,6 +2,7 @@ logs
*.log
npm-debug.log*
.eslintcache
.cspellcache

/coverage
/dist
Expand Down
5 changes: 4 additions & 1 deletion lint-staged.config.js
@@ -1,4 +1,7 @@
module.exports = {
"*": ["prettier --write --ignore-unknown", "cspell --no-must-find-files"],
"*": [
"prettier --cache --write --ignore-unknown",
"cspell --cache --no-must-find-files",
],
"*.js": ["eslint --cache --fix"],
};
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -22,9 +22,9 @@
"build": "cross-env NODE_ENV=production babel src -d dist --copy-files",
"commitlint": "commitlint --from=master",
"security": "npm audit --production",
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
"lint:prettier": "prettier --cache --list-different .",
"lint:js": "eslint --cache .",
"lint:spelling": "cspell \"**/*.*\"",
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
"lint": "npm-run-all -l -p \"lint:**\"",
"fix:js": "npm run lint:js -- --fix",
"fix:prettier": "npm run lint:prettier -- --write",
Expand Down

0 comments on commit cae0948

Please sign in to comment.