Skip to content

Commit

Permalink
chore: solve linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmunillas authored and glenjamin committed Aug 11, 2022
1 parent 6703d4e commit 240cd16
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ var options = {
ansiColors: {},
};
if (__resourceQuery) {
var overrides = Object.fromEntries(new URLSearchParams(__resourceQuery.slice(1)));
var overrides = Object.fromEntries(
new URLSearchParams(__resourceQuery.slice(1))
);
setOverrides(overrides);
}

Expand All @@ -24,8 +26,8 @@ if (typeof window === 'undefined') {
} else if (typeof window.EventSource === 'undefined') {
console.warn(
"webpack-hot-middleware's client requires EventSource to work. " +
'You should include a polyfill if you want to support this browser: ' +
'https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events#Tools'
'You should include a polyfill if you want to support this browser: ' +
'https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events#Tools'
);
} else {
if (options.autoConnect) {
Expand Down Expand Up @@ -239,19 +241,19 @@ function processMessage(obj) {
if (options.log) {
console.log(
'[HMR] bundle ' +
(obj.name ? "'" + obj.name + "' " : '') +
'rebuilding'
(obj.name ? "'" + obj.name + "' " : '') +
'rebuilding'
);
}
break;
case 'built':
if (options.log) {
console.log(
'[HMR] bundle ' +
(obj.name ? "'" + obj.name + "' " : '') +
'rebuilt in ' +
obj.time +
'ms'
(obj.name ? "'" + obj.name + "' " : '') +
'rebuilt in ' +
obj.time +
'ms'
);
}
// fall through
Expand Down

0 comments on commit 240cd16

Please sign in to comment.