1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Tools: Add prefer-arrow-callbacks to ESlint rules (#7810)

This commit is contained in:
pedr
2023-02-20 12:02:29 -03:00
committed by GitHub
parent ca575162f7
commit f2995dd196
206 changed files with 511 additions and 510 deletions

View File

@ -75,12 +75,12 @@ if (process.platform === 'win32') {
output: process.stdout,
});
rl.on('SIGINT', function() {
rl.on('SIGINT', () => {
process.emit('SIGINT');
});
}
process.stdout.on('error', function(error) {
process.stdout.on('error', (error) => {
// https://stackoverflow.com/questions/12329816/error-write-epipe-when-piping-node-output-to-head#15884508
if (error.code === 'EPIPE') {
process.exit(0);