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/compile.ts | 4 ++-- demo/src/index.ts | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'demo/src') diff --git a/demo/src/compile.ts b/demo/src/compile.ts index 4fca6c6..31dda0a 100644 --- a/demo/src/compile.ts +++ b/demo/src/compile.ts @@ -1,6 +1,6 @@ const url = 'https://wokwi-hexi-73miufol2q-uc.a.run.app'; -export interface IHexiResult { +export interface HexiResult { stdout: string; stderr: string; hex: string; @@ -16,5 +16,5 @@ export async function buildHex(source: string) { }, body: JSON.stringify({ sketch: source }) }); - return (await resp.json()) as IHexiResult; + return (await resp.json()) as HexiResult; } 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