From a56293cba796c68e3c5db7ce4d567b626bc19930 Mon Sep 17 00:00:00 2001 From: HBSPS Date: Fri, 17 May 2024 17:21:27 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20eslint=20=EC=BA=90=EC=8B=9C=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EB=B0=8F=20lint-staged=20jest=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- .husky/pre-commit | 2 +- package.json | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index fbb28d2..2c313b4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules/ /dist build-storybook.log storybook-static -/coverage \ No newline at end of file +/coverage +.cache \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 557fbea..2312dc5 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -npm run test && npx lint-staged \ No newline at end of file +npx lint-staged diff --git a/package.json b/package.json index e71bc37..554e182 100644 --- a/package.json +++ b/package.json @@ -16,14 +16,15 @@ "build": "sh build.sh", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", - "lint": "eslint ./src/**/*.{ts,tsx}", + "lint": "eslint --cache --cache-location ./.cache/.eslintcache ./src/**/*.{ts,tsx}", "format": "prettier --cache --write .", "prepare": "husky install" }, "lint-staged": { "*.{ts,tsx}": [ - "eslint", - "prettier --write" + "eslint --cache --cache-location ./.cache/.eslintcache", + "prettier --cache --write", + "jest --passWithNoTests" ] }, "keywords": [