Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linting #917

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/device/curtain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading