diff options
| author | Uri Shaked | 2019-12-07 22:18:00 +0200 |
|---|---|---|
| committer | Uri Shaked | 2019-12-07 22:18:00 +0200 |
| commit | 07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244 (patch) | |
| tree | 12a64bfbc4ea18997923f14b44725cb0e118c949 /demo/src | |
| parent | feat: publish both CJS and ESM to npm (diff) | |
| download | avr8js-07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244.tar.gz avr8js-07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244.tar.bz2 avr8js-07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244.zip | |
refactor: tslint → eslint
Diffstat (limited to 'demo/src')
| -rw-r--r-- | demo/src/compile.ts | 4 | ||||
| -rw-r--r-- | demo/src/index.ts | 7 |
2 files changed, 6 insertions, 5 deletions
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<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'); |
