Skip to content

Commit 7d58f59

Browse files
committed
eslint cleanup
1 parent 6a2f8fc commit 7d58f59

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

lib/get-readers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ const getReaders = async (handler, vcdPath) => {
6464
});
6565
// return;
6666
} else if (typeof vcdPath === 'function') {
67-
console.log('vcdPath is function');
67+
console.log('vcdPath is function'); // eslint-disable-line no-console
6868
const context = vcdPath(handler);
69-
console.log(context);
69+
console.log(context); // eslint-disable-line no-console
7070
} else {
7171
const urlSearchParams = new URLSearchParams(window.location.search);
7272
for (const [key, value] of urlSearchParams) {

lib/handle-vcd-parser-ready.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const genStats = ($, statPanelDiv) => async (e) => {
4343
};
4444

4545
const genLoadVcdDone = ($, statPanelDiv) => async () => {
46-
console.log('rx: loadVcdDone');
46+
console.log('rx: loadVcdDone'); // eslint-disable-line no-console
4747
statPanelDiv.innerHTML = stringify(statusPanel.mlDone());
4848
// traceGlPages($);
4949
};
@@ -92,7 +92,9 @@ const handleVcdParserReady = ($) => async () => {
9292
view: [],
9393
chango: {},
9494
listing: [],
95-
render: () => { console.log('dummy render'); },
95+
render: () => {
96+
console.log('dummy render'); // eslint-disable-line no-console
97+
},
9698
updater
9799
};
98100

@@ -104,11 +106,11 @@ const handleVcdParserReady = ($) => async () => {
104106
cnt1.start(deso);
105107
deso.render();
106108
cm.view.dispatch({changes: {
107-
from: 0, to: cm.view.state.doc.length, insert: deso.waveql
109+
from: 0, to: cm.view.state.doc.length, insert: deso.waveql
108110
}});
109111
cm.view.setState(createCodeMirrorState(
110-
deso,
111-
cnt1.pstate
112+
deso,
113+
cnt1.pstate
112114
));
113115
};
114116

@@ -122,9 +124,9 @@ const handleVcdParserReady = ($) => async () => {
122124
});
123125
} else {
124126
$.sub.set.after('vcdDefinitionsParsed', async () => {
125-
// console.log('sub.set.after: vcdDefinitionsParsed');
126-
const text = getFullWaveQL($.enddefinitions.wires);
127-
deso.waveql = text;
127+
// console.log('sub.set.after: vcdDefinitionsParsed');
128+
const text = getFullWaveQL($.enddefinitions.wires);
129+
deso.waveql = text;
128130
restartCm();
129131
});
130132
}

lib/new-vcdrom-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const base64JsBlob = require('./base64-js-blob.js');
44
const vcdromWorkerUri = require('../vcdrom-worker.uri.json');
55

66
const newVcdromWorker = () =>
7-
new Worker(base64JsBlob(vcdromWorkerUri));
7+
new Worker(base64JsBlob(vcdromWorkerUri));
88

99
module.exports = newVcdromWorker;
1010

lib/stream-data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const streamData = async ($, dataFileName) => {
77

88
const contextLength = init(memmap.context);
99
if (contextLength > 0x10000) { // 64 KiB
10-
console.error('VERY LAGE CONTEXT:', contextLength);
10+
console.error('VERY LAGE CONTEXT:', contextLength); // eslint-disable-line no-console
1111
throw new Error();
1212
}
1313

@@ -27,7 +27,7 @@ const streamData = async ($, dataFileName) => {
2727
}
2828
$.memU8.set(value, memmap.input);
2929
if (value.length > 0x4000000) { // 64 MiB
30-
console.error('VERY LAGE CHUNK:', value.length);
30+
console.error('VERY LAGE CHUNK:', value.length); // eslint-disable-line no-console
3131
throw new Error();
3232
}
3333

0 commit comments

Comments
 (0)