mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
globally handle no-unused-vars
This commit is contained in:
committed by
David Lechner
parent
292f2d83d2
commit
818e7867ee
+1
-3
@@ -29,8 +29,7 @@ function* open(action: EditorOpenAction): Generator {
|
||||
editor.setValue(text);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
function* saveAs(action: EditorSaveAsAction): Generator {
|
||||
function* saveAs(_action: EditorSaveAsAction): Generator {
|
||||
const editor = (yield select(
|
||||
(s: RootState) => s.editor.current,
|
||||
)) as Ace.EditSession | null;
|
||||
@@ -46,7 +45,6 @@ function* saveAs(action: EditorSaveAsAction): Generator {
|
||||
FileSaver.saveAs(blob, 'main.py');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
function* reloadProgram(_action: EditorReloadProgramAction): Generator {
|
||||
const editor = (yield select(
|
||||
(s: RootState) => s.editor.current,
|
||||
|
||||
Reference in New Issue
Block a user