Skip to content

Commit 0cfe588

Browse files
committed
build(javascript): linting
1 parent b74885f commit 0cfe588

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

docs/javascripts/fill.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ function normalize(s) {
2222
.replaceAll(/\x2d+/g, "-");
2323
}
2424

25-
// biome-ignore lint/correctness/noUnusedVariables: init() is used in HTML // eslint-disable-next-line no-unused-vars
25+
// biome-ignore-start lint/correctness/noUnusedVariables: init() is used in HTML
26+
// eslint-disable-next-line no-unused-vars
2627
async function init(path) {
28+
// biome-ignore-end lint/correctness/noUnusedVariables: init() is used in HTML
2729
document.getElementById("mininame").oninput = () => {
2830
document.getElementById("minified").textContent =
2931
document.getElementById("mininame").value;
@@ -121,13 +123,13 @@ async function init(path) {
121123
edit.textContent = "Edit it!";
122124
edit.href = "#editor";
123125
edit.onclick = ((a1, a2) => () => {
124-
const e1 = document.getElementById("plaintext");
125-
e1.value = a1;
126-
e1.dispatchEvent(new Event("input"));
127-
const e2 = document.getElementById("mininame");
128-
e2.value = a2;
129-
e2.dispatchEvent(new Event("input"));
130-
})(js, index[j].name);
126+
const e1 = document.getElementById("plaintext");
127+
e1.value = a1;
128+
e1.dispatchEvent(new Event("input"));
129+
const e2 = document.getElementById("mininame");
130+
e2.value = a2;
131+
e2.dispatchEvent(new Event("input"));
132+
})(js, index[j].name);
131133
}
132134
content.push(document.createElement("hr"));
133135
document.getElementById("bookmarklets-list").replaceChildren(...content);

0 commit comments

Comments
 (0)