Skip to content

Commit 38d892e

Browse files
authored
Merge pull request #1441 from danielpeintner/issue-1430-typescript-eslint-no-empty-object-type
refactor: activate eslint @typescript-eslint/no-empty-object-type
2 parents 1b6c8df + d1e5c84 commit 38d892e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default defineConfig([
123123
"@typescript-eslint/no-unused-expressions": "off",
124124
"@typescript-eslint/no-require-imports": "off", // https://github.com/eclipse-thingweb/node-wot/issues/1430
125125
"@typescript-eslint/prefer-nullish-coalescing": "error",
126-
"@typescript-eslint/no-empty-object-type": "off", // https://github.com/eclipse-thingweb/node-wot/issues/1430
126+
"@typescript-eslint/no-empty-object-type": "error",
127127
"@typescript-eslint/no-floating-promises": "off", // https://github.com/eclipse-thingweb/node-wot/issues/1430
128128

129129
// **************** Enforce usage of `const` over `let` wherever possible, to prevent accidental reassignments

packages/core/src/protocol-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface IManagedStream {
2626
wotStream: ReadableStream;
2727
}
2828
// eslint-disable-next-line @typescript-eslint/no-explicit-any
29-
function ManagedStream<TBase extends new (...args: any[]) => {}>(Base: TBase) {
29+
function ManagedStream<TBase extends new (...args: any[]) => object>(Base: TBase) {
3030
return class extends Base implements IManagedStream {
3131
_nodeStream?: Readable;
3232
_wotStream?: ReadableStream;

0 commit comments

Comments
 (0)