From b74bac14ca809ad6537a3b365293b8d81c8f9879 Mon Sep 17 00:00:00 2001 From: "rahul.b" Date: Wed, 30 Aug 2023 16:02:00 +0530 Subject: [PATCH] ESLint Cache Optimization for improve eslint perfomance --- .gitignore | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e516023e..f128b1ae 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ yarn-error.log # Code coverage coverage + +.eslintcache \ No newline at end of file diff --git a/package.json b/package.json index 2f4e6ac1..4d506097 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "test:watch": "jest -i --watchAll", "coverage": "jest -i --coverage", "coverage:coveralls": "jest -i --coverage --coverageReporters=text-lcov | coveralls", - "lint": "eslint .", - "lint:fix": "eslint . --fix", + "lint": "eslint --cache .", + "lint:fix": "eslint --cache . --fix", "prettier": "prettier --check **/*.js", "prettier:fix": "prettier --write **/*.js", "docker:prod": "docker-compose -f docker-compose.yml -f docker-compose.prod.yml up",