From d4c02a94085ab31032760f773ebfefb03d2ae621 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Sun, 4 Feb 2024 23:03:05 +0100 Subject: [PATCH 1/2] Fix linting --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 76bdd622..37d34fc1 100644 --- a/package.json +++ b/package.json @@ -32,14 +32,14 @@ "scripts": { "check": "npm install && npm outdated", "update": "ncu -u && npm update && npm install", - "lint": "eslint src/**.ts", + "lint": "eslint src/**/*.ts", "watch": "npm run build && npm run plugin-ui && npm link && nodemon", "plugin-ui": "rsync ./src/homebridge-ui/public/index.html ./dist/homebridge-ui/public/", "build": "rimraf ./dist && tsc", "prepublishOnly": "npm run lint && npm run build && npm run plugin-ui ", "postpublish": "npm run clean", "clean": "rimraf ./dist", - "test": "eslint src/**.ts" + "test": "npm run lint" }, "funding": [ { From 2f23d5b6204886ce61c364b3060c43c5c410b57b Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Sun, 4 Feb 2024 23:29:34 +0100 Subject: [PATCH 2/2] Fix lint warning --- src/device/curtain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/curtain.ts b/src/device/curtain.ts index 5dcf6494..e80e60e4 100644 --- a/src/device/curtain.ts +++ b/src/device/curtain.ts @@ -666,7 +666,7 @@ export class Curtain { .toLowerCase(); this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} BLE Address: ${this.device.bleMac}`); this.SilentPerformance(); - const adjustedMode = this.setPositionMode == '1' ? 0x01 : 0xff; + const adjustedMode = this.setPositionMode === '1' ? 0x01 : 0xff; this.debugLog(`${this.accessory.displayName} Mode: ${this.Mode}`); if (switchbot !== false) { try {