From c4d39e1faff25c631a70d0537816b807ed895344 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Tue, 7 Oct 2025 18:17:44 +0200 Subject: [PATCH] refactor: activate eslint @typescript-eslint/no-empty-object-type disable also one line check --- eslint.config.mjs | 2 +- packages/core/src/protocol-helpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;