From cae09486c351041a225035eac7686d9866827371 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Tue, 16 Jan 2024 19:52:39 +0300 Subject: [PATCH] chore: improve tooling (#406) --- .gitignore | 1 + lint-staged.config.js | 5 ++++- package.json | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 252f98c..88d49b0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ logs *.log npm-debug.log* .eslintcache +.cspellcache /coverage /dist diff --git a/lint-staged.config.js b/lint-staged.config.js index 372e7ff..3010843 100644 --- a/lint-staged.config.js +++ b/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"], }; diff --git a/package.json b/package.json index 5532883..cb6e242 100644 --- a/package.json +++ b/package.json @@ -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",