diff --git a/.lintstagedrc.js b/.lintstagedrc.js deleted file mode 100644 index b6c82ce..0000000 --- a/.lintstagedrc.js +++ /dev/null @@ -1,20 +0,0 @@ -// Lint-staged configuration -// Handles large batches of files with proper memory management - -module.exports = { - '*.{ts,tsx}': (filenames) => { - // Process files in smaller batches to avoid memory issues - const batchSize = 20; - const batches = []; - - for (let i = 0; i < filenames.length; i += batchSize) { - batches.push(filenames.slice(i, i + batchSize)); - } - - return batches.map((batch) => { - return `NODE_OPTIONS='--max-old-space-size=4096' eslint --fix --config eslint.config.js ${batch.join(' ')}`; - }); - }, - '*.{json,md,yaml,yml}': 'prettier --write', -}; - diff --git a/package.json b/package.json index 3cc5667..59ab89d 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "lint-staged": { "*.{ts,tsx}": [ - "bash -c '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}": [