mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-11 17:14:15 +00:00
globally handle no-unused-vars
This commit is contained in:
committed by
David Lechner
parent
292f2d83d2
commit
818e7867ee
@@ -21,6 +21,8 @@ module.exports = {
|
||||
'no-multi-spaces': 'error',
|
||||
'no-trailing-spaces': 'error',
|
||||
'no-multiple-empty-lines': 'error',
|
||||
'@typescript-eslint/no-unused-vars': ["error", { argsIgnorePattern: "^_" }],
|
||||
'no-unused-vars': ["error", { argsIgnorePattern: "^_" }],
|
||||
'sort-imports': ['error', { ignoreDeclarationSort: true }],
|
||||
'import/order': ['error', { alphabetize: { order: 'asc' } }],
|
||||
},
|
||||
|
||||
+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