small eslint cleanups
This commit is contained in:
parent
4e49e2d635
commit
536e0690ae
2 changed files with 10 additions and 2 deletions
|
@ -27,7 +27,9 @@ export const AuthStore: Module<AuthState, RootState> = {
|
||||||
await dispatch("setApiKey", { key: storedKey, userId: result.userId });
|
await dispatch("setApiKey", { key: storedKey, userId: result.userId });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch {} // tslint:disable-line
|
} catch {
|
||||||
|
/* empty */
|
||||||
|
}
|
||||||
|
|
||||||
console.log("Unable to validate key, removing from localStorage"); // tslint:disable-line
|
console.log("Unable to validate key, removing from localStorage"); // tslint:disable-line
|
||||||
localStorage.removeItem("apiKey");
|
localStorage.removeItem("apiKey");
|
||||||
|
|
|
@ -25,6 +25,7 @@ export default [
|
||||||
globals: {
|
globals: {
|
||||||
...globals.node,
|
...globals.node,
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
|
...globals.es2016,
|
||||||
},
|
},
|
||||||
|
|
||||||
parser: tsParser,
|
parser: tsParser,
|
||||||
|
@ -36,6 +37,11 @@ export default [
|
||||||
"@typescript-eslint/no-non-null-assertion": 0,
|
"@typescript-eslint/no-non-null-assertion": 0,
|
||||||
"no-async-promise-executor": 0,
|
"no-async-promise-executor": 0,
|
||||||
"@typescript-eslint/no-empty-interface": 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", {
|
"no-constant-condition": ["error", {
|
||||||
checkLoops: false,
|
checkLoops: false,
|
||||||
|
|
Loading…
Add table
Reference in a new issue