feat: add prettier and eslint with pre-commit hook
This commit is contained in:
@@ -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] ?? '';
|
||||
|
||||
Reference in New Issue
Block a user