From dd398aa4d0f6ab227619803e4bef4d5156d58dd1 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Tue, 16 Jan 2024 19:52:45 +0300 Subject: [PATCH] chore: improve tooling (#535) --- .gitignore | 1 + lint-staged.config.js | 7 +++++-- package.json | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index c83f4498..858216ed 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ npm-debug.log npm-debug.log* yarn-debug.log* .eslintcache +.cspellcache /coverage /dist /local diff --git a/lint-staged.config.js b/lint-staged.config.js index 9b355d00..30108433 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"], - "*.{js}": ["eslint --cache --fix"], + "*": [ + "prettier --cache --write --ignore-unknown", + "cspell --cache --no-must-find-files", + ], + "*.js": ["eslint --cache --fix"], }; diff --git a/package.json b/package.json index 4a106330..55b80603 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 --list-different .", + "lint:prettier": "prettier --cache --list-different .", "lint:js": "eslint --cache .", - "lint:spelling": "cspell --quiet \"**/*.*\"", + "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",