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
This commit is contained in:
defiQUG
2025-11-13 09:34:10 -08:00
parent 6a8582e54d
commit 4a3e992509

View File

@@ -16,7 +16,7 @@
}, },
"lint-staged": { "lint-staged": {
"*.{ts,tsx}": [ "*.{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" "prettier --write"
], ],
"*.{json,md,yaml,yml}": [ "*.{json,md,yaml,yml}": [