From 4a3e992509f03c53829fe6ab7c41ce259326d3da Mon Sep 17 00:00:00 2001 From: defiQUG Date: Thu, 13 Nov 2025 09:34:10 -0800 Subject: [PATCH] fix: improve lint-staged configuration for large file batches - Use bash to properly set NODE_OPTIONS environment variable - Increase Node.js memory limit to 4GB for ESLint - Prevents out-of-memory errors when linting many files --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a2c06c2..3cc5667 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "lint-staged": { "*.{ts,tsx}": [ - "NODE_OPTIONS='--max-old-space-size=4096' eslint --fix --config eslint.config.js", + "bash -c 'NODE_OPTIONS=\"--max-old-space-size=4096\" eslint --fix --config eslint.config.js'", "prettier --write" ], "*.{json,md,yaml,yml}": [