Skip to content

Commit

Permalink
Apply biome lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousme committed Jun 25, 2024
1 parent 9ea92c4 commit ebf771d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions client/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ import Forecast from "./Forecast.svelte";
import { topics, controls } from "./config.js";
import MqttClient from "./mqttclient.js";
const settingsPage = () => (page = "settings");
const controlsPage = () => (page = "controls");
function settingsPage() {
page = "settings";
}
function controlsPage() {
page = "controls";
}
const listItemClass =
"list-group-item d-flex justify-content-between align-items-center";
Expand All @@ -19,7 +25,7 @@ const mqttClient = new MqttClient(topics, (topic, value) => {
function handleMsg(event) {
const m = event.detail;
mqttClient.publish(m.topic + "/set", m.msg);
mqttClient.publish(`${m.topic}/set`, m.msg);
}
// start the show
Expand Down
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readFile } from "fs/promises";
import { readFile } from "node:fs/promises";
export const ConfigJson = JSON.parse(
await readFile(new URL("../.config.json", import.meta.url)),
);
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createServer as netCreateServer } from "net";
import { createServer as httpCreateServer } from "http";
import { createServer as netCreateServer } from "node:net";
import { createServer as httpCreateServer } from "node:http";
import Express from "express";
import Aedes from "aedes";
import { Level } from "level";
Expand Down

0 comments on commit ebf771d

Please sign in to comment.