diff --git a/eslint.config.mjs b/eslint.config.mjs index e57962d38..0f0e2fcae 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -123,7 +123,7 @@ export default defineConfig([ "@typescript-eslint/no-unused-expressions": "off", "@typescript-eslint/no-require-imports": "off", // https://github.com/eclipse-thingweb/node-wot/issues/1430 "@typescript-eslint/prefer-nullish-coalescing": "off", // https://github.com/eclipse-thingweb/node-wot/issues/1430 - "@typescript-eslint/no-empty-object-type": "off", // https://github.com/eclipse-thingweb/node-wot/issues/1430 + "@typescript-eslint/no-empty-object-type": "error", "@typescript-eslint/no-floating-promises": "off", // https://github.com/eclipse-thingweb/node-wot/issues/1430 // **************** Enforce usage of `const` over `let` wherever possible, to prevent accidental reassignments diff --git a/packages/core/src/protocol-helpers.ts b/packages/core/src/protocol-helpers.ts index 1b568e122..ebce60935 100644 --- a/packages/core/src/protocol-helpers.ts +++ b/packages/core/src/protocol-helpers.ts @@ -25,7 +25,7 @@ export interface IManagedStream { nodeStream: Readable; wotStream: ReadableStream; } -// eslint-disable-next-line @typescript-eslint/no-explicit-any +// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-object-type function ManagedStream {}>(Base: TBase) { return class extends Base implements IManagedStream { _nodeStream?: Readable;