Skip to content

Commit

Permalink
[eslint] enable semi-style
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 24, 2021
1 parent 428636c commit 5f8afc9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Expand Up @@ -26,6 +26,7 @@
"no-undef": "error",
"no-useless-escape": "error",
"operator-linebreak": ["error", "before"],
"semi-style": ["error", "last"],
"space-infix-ops": "error",
"space-unary-ops": ["error", {
"words": false,
Expand Down
6 changes: 2 additions & 4 deletions index.js
Expand Up @@ -7,11 +7,9 @@ var createResult = require('./lib/results');
var through = require('through');

var canEmitExit = typeof process !== 'undefined' && process
&& typeof process.on === 'function' && process.browser !== true
;
&& typeof process.on === 'function' && process.browser !== true;
var canExit = typeof process !== 'undefined' && process
&& typeof process.exit === 'function'
;
&& typeof process.exit === 'function';

module.exports = (function () {
var wait = false;
Expand Down
3 changes: 1 addition & 2 deletions lib/default_stream.js
Expand Up @@ -12,8 +12,7 @@ module.exports = function () {
for (var i = 0; i < buf.length; i++) {
var c = typeof buf === 'string'
? buf.charAt(i)
: String.fromCharCode(buf[i])
;
: String.fromCharCode(buf[i]);
if (c === '\n') flush();
else line += c;
}
Expand Down
4 changes: 1 addition & 3 deletions lib/results.js
Expand Up @@ -16,9 +16,7 @@ var $push = callBound('Array.prototype.push');
var yamlIndicators = /:|-|\?/;
var nextTick = typeof setImmediate !== 'undefined'
? setImmediate
: process.nextTick
;

: process.nextTick;
module.exports = Results;
inherits(Results, EventEmitter);

Expand Down

0 comments on commit 5f8afc9

Please sign in to comment.