From 028de6addb57571841e62f2f16f7a970d2e27b79 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Sat, 24 Aug 2024 13:03:08 +0700 Subject: [PATCH] [core] cached eslint --- .gitignore | 1 + .pre-commit-config.yaml | 2 +- package.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1fadc12e..c1b7dc37 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ src/test.js test.js .wwebjs_cache src/dashboard +.eslintcache # compiled output /dist diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c6868b73..555fff5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: stages: [pre-commit] name: lint language: system - entry: bash -c '$HOME/.nvm/nvm-exec npm run lint' + entry: bash -c '$HOME/.nvm/nvm-exec npm run lint-cache' pass_filenames: false files: | (?x)^( diff --git a/package.json b/package.json index 29428bca..e1c19357 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "start:prod": "node dist/main", "start:prod-exit": "node dist/main", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix --max-warnings=0", + "lint-cache": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix --cache --max-warnings=0", "test": "jest", "test:watch": "jest --watch", "test:cov": "jest --coverage",