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:
@@ -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}": [
|
||||||
|
|||||||
Reference in New Issue
Block a user