From 07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Sat, 7 Dec 2019 22:18:00 +0200 Subject: refactor: tslint → eslint --- demo/src/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'demo/src/index.ts') 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('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'); -- cgit v1.2.3