Skip to content

Commit 42cc596

Browse files
committed
eslint 6 cleanup
1 parent 9ffeca0 commit 42cc596

File tree

9 files changed

+8
-25
lines changed

9 files changed

+8
-25
lines changed

lib/app-context.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const genSub = (obj) => (key, cb) => {
44
if (!obj[key]) {
55
obj[key] = [];
66
}
7-
obj[key].push(cb);
7+
obj[key].push(cb);
88
};
99

1010
const genUnSub = (obj) => (key, cb) => {
@@ -37,7 +37,7 @@ const appContext = () => {
3737
}
3838
};
3939

40-
const state = new Proxy(stateObj, handler);
40+
const state = new Proxy(stateObj, handler);
4141

4242
return {state,
4343
sub: {

lib/file-in-url.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,3 @@ const vcdInUrl = (extentions) => {
2121
};
2222

2323
module.exports = vcdInUrl;
24-
25-
/* eslint-env browser */

lib/get-full-wave-ql.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const getFullWaveQL = (wires) => {
1414
arr.push(ero.name);
1515
return;
1616
}
17-
console.error(ero);
17+
console.error(ero); // eslint-disable-line no-console
1818
throw new Error();
1919
};
2020

@@ -23,5 +23,3 @@ const getFullWaveQL = (wires) => {
2323
};
2424

2525
module.exports = getFullWaveQL;
26-
27-
/* eslint no-console: 0 */

lib/get-readers.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,3 @@ const getReaders = async (handler, vcdPath) => {
143143
};
144144

145145
module.exports = getReaders;
146-
147-
/* eslint-env browser */

lib/new-vcdrom-worker.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ const newVcdromWorker = () =>
77
new Worker(base64JsBlob(vcdromWorkerUri));
88

99
module.exports = newVcdromWorker;
10-
11-
/* eslint-env browser */

lib/plugin-local-store.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ const pluginLocalStore = (desc, pstate /* , els */) => {
1212
};
1313

1414
module.exports = pluginLocalStore;
15-
16-
/* eslint-env browser */

lib/stream-data.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,3 @@ const streamData = async ($, dataFileName) => {
4747
};
4848

4949
module.exports = streamData;
50-
51-
/* eslint-env worker */

lib/vcdrom-worker.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const streamData = require('./stream-data.js');
1616
const main = async () => {
1717
const {crossOriginIsolated} = self;
1818
if (!crossOriginIsolated) {
19-
console.error({crossOriginIsolated});
19+
console.error({crossOriginIsolated}); // eslint-disable-line no-console
2020
}
2121

2222
// const t0 = Date.now();
@@ -32,12 +32,12 @@ const main = async () => {
3232

3333
const handlers = {
3434
loadWasm: async () => {
35-
console.log('rx: loadWasm');
35+
console.log('rx: loadWasm'); // eslint-disable-line no-console
3636
await loadWasm($, vcd2wasm);
3737
postMessage({cmd: 'wasmMemory', data: $.memory});
3838
},
3939
loadVcd: async (e) => {
40-
console.log('rx: loadVcd');
40+
console.log('rx: loadVcd'); // eslint-disable-line no-console
4141
const stats = await streamData($, e.data.data);
4242
postMessage({cmd: 'loadVcdDone', data: stats});
4343
}
@@ -49,16 +49,13 @@ const main = async () => {
4949
(e.data === null) ||
5050
(e.data.constructor.name !== 'Object')
5151
) {
52-
console.log('UNKNOWN MSG', e);
52+
console.log('UNKNOWN MSG', e); // eslint-disable-line no-console
5353
}
5454
const handler = handlers[e.data.cmd] || (async () => {
55-
console.log('UNKNOWN CMD', e.data);
55+
console.log('UNKNOWN CMD', e.data); // eslint-disable-line no-console
5656
});
5757
await handler(e);
5858
};
5959
};
6060

6161
main();
62-
63-
/* eslint-env worker */
64-
/* eslint no-console: 0 */

lib/vcdrom.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,3 @@ global.VCDrom = async (divName) => {
3232
$.sub.set.after('vcdParserReady', handleVcdParserReady($));
3333
$.vcdromWorker.postMessage({cmd: 'loadWasm'});
3434
};
35-
36-
/* eslint-env browser */

0 commit comments

Comments
 (0)