Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: canceling lint-staged via SIGINT restores state and cleans up (#881
)

When replacing listr with listr2, this was a change in default behaviour that was left unnoticed
  • Loading branch information
iiroj committed Jun 3, 2020
1 parent 21a2b41 commit b078324
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/runAll.js
Expand Up @@ -119,6 +119,7 @@ const runAll = async (
ctx,
exitOnError: false,
nonTTYRenderer: 'verbose',
registerSignalListeners: false,
...getRenderer({ debug, quiet }),
}

Expand Down
2 changes: 2 additions & 0 deletions test/index2.spec.js
Expand Up @@ -33,6 +33,7 @@ describe('lintStaged', () => {
},
"exitOnError": false,
"nonTTYRenderer": "verbose",
"registerSignalListeners": false,
"renderer": "silent",
}
`)
Expand All @@ -58,6 +59,7 @@ describe('lintStaged', () => {
},
"exitOnError": false,
"nonTTYRenderer": "verbose",
"registerSignalListeners": false,
"renderer": "verbose",
}
`)
Expand Down

0 comments on commit b078324

Please sign in to comment.