diff --git a/eslint.config.mjs b/eslint.config.mjs
index 7e126751..38750470 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -56,6 +56,15 @@ export default defineConfig([
"no-unmodified-loop-condition": "error",
"no-unreachable-loop": "error",
"arrow-body-style": ["error", "as-needed"],
+ "block-scoped-var": "error",
+ // some day...
+ // "camelcase": ["error", {
+ // properties: "never", //schemas
+ // ignoreImports: true
+ // }],
+ // "consistent-return": "error",
+ "default-case": "error",
+ "default-case-last": "error",
// unsure what the defaults are here, but we want them to error
"for-direction": "error",
"constructor-super": "error",
diff --git a/src/gateway/listener/listener.ts b/src/gateway/listener/listener.ts
index c3f85e01..70571e5f 100644
--- a/src/gateway/listener/listener.ts
+++ b/src/gateway/listener/listener.ts
@@ -231,6 +231,9 @@ async function consume(this: WebSocket, opts: EventOpts) {
});
this.close(CLOSECODES.Invalid_session); // TODO: this is deprecated?
return;
+ default:
+ // no special treatment
+ break;
}
// subscription managment
@@ -290,6 +293,9 @@ async function consume(this: WebSocket, opts: EventOpts) {
}
break;
}
+ default:
+ // no special treatment
+ break;
}
// permission checking
diff --git a/src/util/util/lambert-server/check.ts b/src/util/util/lambert-server/check.ts
index 561a584c..5ec72761 100644
--- a/src/util/util/lambert-server/check.ts
+++ b/src/util/util/lambert-server/check.ts
@@ -50,6 +50,8 @@ export function instanceOf(type: any, value: any, { path = "", optional = false
case Object:
if (typeof value === "object" && value !== null) return true;
throw `${path} must be a object`;
+ default:
+ break;
}
if (typeof type === "object") {
|