From f76e03cb45f166dcf6f73fea40e8e83e7b1035a2 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Mon, 13 Oct 2025 11:20:43 +0800 Subject: [PATCH] feat: add `cache` option --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e2ce44b..4696f06 100644 --- a/index.js +++ b/index.js @@ -53,10 +53,10 @@ export default function createConfig({ ], }) pkg.scripts['lint:oxlint'] = 'oxlint . --fix -D correctness --ignore-path .gitignore' - pkg.scripts['lint:eslint'] = 'eslint . --fix' + pkg.scripts['lint:eslint'] = 'eslint . --fix --cache' pkg.scripts.lint = 'run-s lint:*' } else { - pkg.scripts.lint = 'eslint . --fix' + pkg.scripts.lint = 'eslint . --fix --cache' } if (needsPrettier) {