fix: resolve ESLint and formatting issues for CI compliance

This commit is contained in:
saberzero1 2026-03-09 03:46:58 +01:00
parent f5462c7af7
commit 3374c99008
No known key found for this signature in database
3 changed files with 6 additions and 3 deletions

View file

@ -18,7 +18,7 @@ document.addEventListener("nav", () => {
button.type = "button";
button.innerHTML = svgCopy;
button.ariaLabel = "Copy source";
function onClick() {
const onClick = () => {
navigator.clipboard.writeText(source).then(
() => {
button.blur();
@ -30,7 +30,7 @@ document.addEventListener("nav", () => {
},
(error) => console.error(error),
);
}
};
button.addEventListener("click", onClick);
window.addCleanup(() => button.removeEventListener("click", onClick));
el.prepend(button);

View file

@ -1,7 +1,7 @@
import rehypePrettyCode from "rehype-pretty-code";
import type { Options as CodeOptions, Theme as CodeTheme } from "rehype-pretty-code";
import type { QuartzTransformerPlugin, JSResource, CSSResource } from "@quartz-community/types";
// @ts-ignore
// @ts-expect-error - inline script import handled by Quartz bundler
import clipboardScript from "./scripts/clipboard.inline";
import clipboardStyle from "./styles/clipboard.scss";

3
types/globals.d.ts vendored Normal file
View file

@ -0,0 +1,3 @@
interface Window {
addCleanup(fn: (...args: unknown[]) => void): void;
}