Update linting

This commit is contained in:
Zaid Humaimidi committed 2023-12-16 19:08:13 -08:00
1 parent 4f2dfb4f48
commit 0c9c027a77
112 files changed
+3781 -4125

No files matched your search

+18 -18
View File
@@ -61,7 +61,7 @@ const unpackSmartQuery = memoize((query) => {
});
export function init(
args: Record<string, unknown>
args: Record<string, unknown>,
): Promise<Record<string, unknown>> {
return new Promise((resolve, reject) => {
if (!window.authorizer.hasAccess("devices", 2))
@@ -97,8 +97,8 @@ function renderActions(selected: Set<string>): Children {
queueTask(...tasks);
},
},
"Reboot"
)
"Reboot",
),
);
buttons.push(
@@ -115,8 +115,8 @@ function renderActions(selected: Set<string>): Children {
queueTask(...tasks);
},
},
"Reset"
)
"Reset",
),
);
buttons.push(
@@ -132,8 +132,8 @@ function renderActions(selected: Set<string>): Children {
});
},
},
"Push file"
)
"Push file",
),
);
buttons.push(
@@ -163,8 +163,8 @@ function renderActions(selected: Set<string>): Children {
if (--counter === 0) store.setTimestamp(Date.now());
},
},
"Delete"
)
"Delete",
),
);
buttons.push(
@@ -195,8 +195,8 @@ function renderActions(selected: Set<string>): Children {
if (--counter === 0) store.setTimestamp(Date.now());
},
},
"Tag"
)
"Tag",
),
);
buttons.push(
@@ -208,7 +208,7 @@ function renderActions(selected: Set<string>): Children {
onclick: () => {
const ids = Array.from(selected);
const tag = prompt(
`Enter tag to unassign from ${ids.length} devices:`
`Enter tag to unassign from ${ids.length} devices:`,
);
if (!tag) return;
@@ -229,8 +229,8 @@ function renderActions(selected: Set<string>): Children {
if (--counter === 0) store.setTimestamp(Date.now());
},
},
"Untag"
)
"Untag",
),
);
return buttons;
@@ -270,7 +270,7 @@ export const component: ClosureComponent = (): Component => {
const _sort = {};
for (const index of sortedAttrs) {
const param = memoizedGetSortable(
attributes[Math.abs(index) - 1].parameter
attributes[Math.abs(index) - 1].parameter,
);
_sort[param] = Math.sign(index);
}
@@ -296,7 +296,7 @@ export const component: ClosureComponent = (): Component => {
return m.context(
{ device: device, parameter: attr.parameter },
attr.type || "parameter",
attr
attr,
);
};
@@ -314,10 +314,10 @@ export const component: ClosureComponent = (): Component => {
"a",
{
href: `#!/devices/${encodeURIComponent(
device["DeviceID.ID"].value[0]
device["DeviceID.ID"].value[0],
)}`,
},
"Show"
"Show",
);
};