diff --git a/dashboard/src/store/auth.ts b/dashboard/src/store/auth.ts index ff2de198..2a3c183d 100644 --- a/dashboard/src/store/auth.ts +++ b/dashboard/src/store/auth.ts @@ -27,7 +27,9 @@ export const AuthStore: Module = { await dispatch("setApiKey", { key: storedKey, userId: result.userId }); return; } - } catch {} // tslint:disable-line + } catch { + /* empty */ + } console.log("Unable to validate key, removing from localStorage"); // tslint:disable-line localStorage.removeItem("apiKey"); diff --git a/eslint.config.mjs b/eslint.config.mjs index 9c3574c7..1ac2c9ca 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -25,6 +25,7 @@ export default [ globals: { ...globals.node, ...globals.browser, + ...globals.es2016, }, parser: tsParser, @@ -36,6 +37,11 @@ export default [ "@typescript-eslint/no-non-null-assertion": 0, "no-async-promise-executor": 0, "@typescript-eslint/no-empty-interface": 0, + "@typescript-eslint/no-unused-vars": 0, + "@typescript-eslint/no-empty-object-type": 0, + "@typescript-eslint/no-unsafe-declaration-merging": 0, + "no-self-assign": 0, + "@typescript-eslint/no-require-imports": 0, "no-constant-condition": ["error", { checkLoops: false, @@ -51,4 +57,4 @@ export default [ }], }, }, -]; \ No newline at end of file +];