Skip to content

Commit 6b10f2e

Browse files
sindresorhusnovemberborn
authored andcommitted
Bump XO and fix some lint issues
1 parent 72e0762 commit 6b10f2e

File tree

17 files changed

+635
-259
lines changed

17 files changed

+635
-259
lines changed

lib/beautify-stack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function extractFrames(stack) {
2626
.join('\n');
2727
}
2828

29-
/**
29+
/*
3030
* Given a string value of the format generated for the `stack` property of a
3131
* V8 error object, return a string that contains only stack frame information
3232
* for frames that have relevance to the consumer.

lib/context-ref.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ContextRef {
1515
}
1616

1717
copy() {
18-
return new LateBinding(this); // eslint-disable-line no-use-before-define
18+
return new LateBinding(this);
1919
}
2020
}
2121
module.exports = ContextRef;

lib/reporters/verbose.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ class VerboseReporter {
131131
this.lineWriter.writeLine(` ${this.prefixTitle(evt.testFile, evt.title)}`);
132132
this.writeLogs(evt);
133133
}
134+
134135
break;
135136
case 'selected-test':
136137
if (evt.skip) {

lib/worker/dependency-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
'use strict';
21
/* eslint-disable node/no-deprecated-api */
2+
'use strict';
33
const ipc = require('./ipc');
44

55
const seenDependencies = new Set();

lib/worker/subprocess.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict';
22
const currentlyUnhandled = require('currently-unhandled')();
33

4-
/* eslint-disable unicorn/no-process-exit */
54
/* eslint-disable import/no-unassigned-import */
65
require('./ensure-forked');
76
require('./load-chalk');
87
require('./consume-argv');
98
require('./fake-tty');
9+
/* eslint-enable import/no-unassigned-import */
1010

1111
const nowAndTimers = require('../now-and-timers');
1212
const Runner = require('../runner');
@@ -22,7 +22,7 @@ function exit(code) {
2222
}
2323

2424
dependencyTracking.flush();
25-
return ipc.flush().then(() => process.exit());
25+
return ipc.flush().then(() => process.exit()); // eslint-disable-line unicorn/no-process-exit
2626
}
2727

2828
const runner = new Runner({

0 commit comments

Comments
 (0)