add prefer-const to eslint rules,
remove empty block in dialog
This commit is contained in:
1 parent
545061b2eb
commit
eb201de26b
2 files changed
+3
-3
No files matched your search
@@ -23,6 +23,7 @@ export default defineConfig([js.configs.recommended,{
|
||||
"argsIgnorePattern": "^_",
|
||||
"varsIgnorePattern": "^_",
|
||||
"caughtErrorsIgnorePattern": "^_"
|
||||
}]
|
||||
}],
|
||||
"prefer-const": ["error"]
|
||||
},
|
||||
}]);
|
||||
@@ -113,8 +113,7 @@ class ErrorDialog extends HTMLElement {
|
||||
}
|
||||
|
||||
this.dialog.addEventListener("close", () => {
|
||||
if (this.dialog.returnValue === "ok") {}
|
||||
else if (this.dialog.returnValue === "copy") {
|
||||
if (this.dialog.returnValue === "copy") {
|
||||
let errors = "";
|
||||
for (const error of this.errors.childNodes) {
|
||||
errors += `${error.innerText}\n`;
|
||||
|
||||
Reference in new issue
Block a user