lint-staged
Advanced tools
Comparing version 15.2.8 to 15.2.9
@@ -164,2 +164,10 @@ /** @typedef {import('./index').Logger} Logger */ | ||
/** | ||
* This is used to set max event listener count to the total number | ||
* of generated tasks. The event listener is used to keep track of | ||
* the interrupt signal and kill all tasks when it happens. See the | ||
* `interruptExecutionOnError` in `resolveTaskFn`. | ||
*/ | ||
let listrTaskCount = 0 | ||
const listrTasks = [] | ||
@@ -235,2 +243,4 @@ | ||
listrTaskCount += chunkListrTasks.length | ||
listrTasks.push({ | ||
@@ -326,2 +336,5 @@ title: | ||
debugLog('Set max event listeners to the number of tasks: %i', listrTaskCount) | ||
ctx.events.setMaxListeners(listrTaskCount) | ||
await runner.run() | ||
@@ -328,0 +341,0 @@ |
{ | ||
"name": "lint-staged", | ||
"version": "15.2.8", | ||
"version": "15.2.9", | ||
"description": "Lint files staged by git", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121138
2095