From 79045cfaa0928c682c0c6da7702ba25bbe7ec8b0 Mon Sep 17 00:00:00 2001 From: Dennis Twardowsky Date: Sun, 8 Feb 2026 16:37:02 +0100 Subject: [PATCH] Fix code according to ESlint --- package.json | 1 + src/settings.ts | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6c47d14..570bbad 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "typescript": "^5.9.3", "typescript-eslint": "^8.46.4" }, + "type": "module", "homepage": "https://github.com/dtwardow/homebridge-multi-tap-switch#readme", "author": "Dennis Twardowsky " } diff --git a/src/settings.ts b/src/settings.ts index cbc79e3..c9eb624 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1,5 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const package_config = require('../package.json'); +import package_config from '../package.json'; /** * This is the name of the platform that users will use to register the plugin in the Homebridge config.json