feat: add prettier and eslint with pre-commit hook

This commit is contained in:
2026-05-10 19:23:53 +02:00
parent be9fbe0f64
commit 3703bbfcfe
33 changed files with 1643 additions and 1245 deletions

View File

@@ -1,8 +1,7 @@
export const q = <T extends Element>(container: HTMLElement, selector: string): T | null =>
container.querySelector(selector) as T | null
container.querySelector(selector) as T | null;
export const qs = <T extends Element>(selector: string): T | null =>
document.querySelector(selector) as T | null
document.querySelector(selector) as T | null;
export const dataset = (el: HTMLElement, key: string): string =>
el.dataset[key] ?? ''
export const dataset = (el: HTMLElement, key: string): string => el.dataset[key] ?? '';