aboutsummaryrefslogtreecommitdiff
path: root/demo/src/index.ts
diff options
context:
space:
mode:
authorUri Shaked2019-12-07 22:18:00 +0200
committerUri Shaked2019-12-07 22:18:00 +0200
commit07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244 (patch)
tree12a64bfbc4ea18997923f14b44725cb0e118c949 /demo/src/index.ts
parentfeat: publish both CJS and ESM to npm (diff)
downloadavr8js-07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244.tar.gz
avr8js-07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244.tar.bz2
avr8js-07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244.zip
refactor: tslint → eslint
Diffstat (limited to '')
-rw-r--r--demo/src/index.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/demo/src/index.ts b/demo/src/index.ts
index 4b25626..c886bba 100644
--- a/demo/src/index.ts
+++ b/demo/src/index.ts
@@ -6,7 +6,7 @@ import './index.css';
import { CPUPerformance } from './cpu-performance';
import { LEDElement } from '@wokwi/elements';
-let editor: any;
+let editor: any; // eslint-disable-line @typescript-eslint/no-explicit-any
const BLINK_CODE = `
// Green LED connected to LED_BUILTIN,
// Red LED connected to pin 12. Enjoy!
@@ -25,8 +25,8 @@ void loop() {
}`.trim();
// Load Editor
-declare var window: any;
-declare var monaco: any;
+declare const window: any; // eslint-disable-line @typescript-eslint/no-explicit-any
+declare const monaco: any; // eslint-disable-line @typescript-eslint/no-explicit-any
window.require.config({
paths: { vs: 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.18.0/min/vs' }
});
@@ -45,6 +45,7 @@ const led12 = document.querySelector<LEDElement>('wokwi-led[color=red]');
// Set up toolbar
let runner: AVRRunner;
+/* eslint-disable @typescript-eslint/no-use-before-define */
const runButton = document.querySelector('#run-button');
runButton.addEventListener('click', compileAndRun);
const stopButton = document.querySelector('#stop-button');