Skip to content

Commit 127cd95

Browse files
iirojokonet
authored andcommitted
refactor: set SIGINT listener in bin instead of runAll
1 parent 0342ebf commit 127cd95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/lint-staged

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ if (process.stdout.isTTY) {
99
process.env.FORCE_COLOR = '1'
1010
}
1111

12+
// Do not terminate main Listr process on SIGINT
13+
process.on('SIGINT', () => {})
14+
1215
const pkg = require('../package.json')
1316
require('please-upgrade-node')(
1417
Object.assign({}, pkg, {

src/runAll.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ https://github.com/okonet/lint-staged#using-js-functions-to-customize-linter-com
103103
return 'No tasks to run.'
104104
}
105105

106-
// Do not terminate main Listr process on SIGINT
107-
process.on('SIGINT', () => {})
108-
109106
return new Listr(
110107
[
111108
{

0 commit comments

Comments
 (0)