Skip to content

Commit c577c8e

Browse files
committed
chore: lint issueBot
1 parent 459b695 commit c577c8e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

scripts/issueBot.mjs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { execSync } from "node:child_process";
1+
import {execSync} from "node:child_process";
22

33
export async function newDeviceSupport(github, _core, context, zhcDir) {
44
const issue = context.payload.issue;
@@ -29,7 +29,7 @@ export async function newDeviceSupport(github, _core, context, zhcDir) {
2929
for (const [fullName, partialName] of tuyaManufacturerNames) {
3030
const fullMatch = (() => {
3131
try {
32-
return execSync(`grep -r --include="*.ts" "${fullName}" "${zhcDir}"`, { encoding: "utf8" });
32+
return execSync(`grep -r --include="*.ts" "${fullName}" "${zhcDir}"`, {encoding: "utf8"});
3333
} catch {
3434
return undefined;
3535
}
@@ -60,7 +60,7 @@ If you need help with the process, feel free to ask here and we'll be happy to a
6060

6161
const partialMatch = (() => {
6262
try {
63-
return execSync(`grep -r --include="*.ts" "${partialName}" "${zhcDir}"`, { encoding: "utf8" });
63+
return execSync(`grep -r --include="*.ts" "${partialName}" "${zhcDir}"`, {encoding: "utf8"});
6464
} catch {
6565
return undefined;
6666
}
@@ -95,7 +95,7 @@ Let us know if it works so we can support this device out-of-the-box!`,
9595
for (const zigbeeModel of zigbeeModels) {
9696
const fullMatch = (() => {
9797
try {
98-
return execSync(`grep -r --include="*.ts" '"${zigbeeModel}"' "${zhcDir}"`, { encoding: "utf8" });
98+
return execSync(`grep -r --include="*.ts" '"${zigbeeModel}"' "${zhcDir}"`, {encoding: "utf8"});
9999
} catch {
100100
return undefined;
101101
}
@@ -138,10 +138,11 @@ In case all features work, please submit a pull request on this repository so th
138138
For instructions on how to create a pull request see the [docs](https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html#_4-create-a-pull-request).
139139
140140
If **NOT** all features work, please follow the [How To Support new devices](https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html).
141-
${tuyaManufacturerNames.length > 0
142-
? "Since this is a Tuya also consider [How To Support new Tuya devices](https://www.zigbee2mqtt.io/advanced/support-new-devices/02_support_new_tuya_devices.html)."
143-
: ""
144-
}
141+
${
142+
tuyaManufacturerNames.length > 0
143+
? "Since this is a Tuya also consider [How To Support new Tuya devices](https://www.zigbee2mqtt.io/advanced/support-new-devices/02_support_new_tuya_devices.html)."
144+
: ""
145+
}
145146
146147
If you need help with the process, feel free to ask here and we'll be happy to assist.`,
147148
});

0 commit comments

Comments
 (0)