chore(deps): update dependency eslint-plugin-unicorn to v73 (#697)

Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
renovate[bot]
2026-08-11 12:10:18 +02:00
committed by GitHub
co-authored by Daniel Dietzler
parent 7884f7edda
commit 8082995101
11 changed files with 60 additions and 24 deletions
@@ -10,7 +10,9 @@ export type Shortcut = {
export type ShortcutOptions<T = HTMLElement> = {
shortcut: Shortcut;
/** If true, the event handler will not execute if the event comes from an input field */
/**
If true, the event handler will not execute if the event comes from an input field
*/
ignoreInputFields?: boolean;
onShortcut: (event: KeyboardEvent & { currentTarget: T }) => unknown;
preventDefault?: boolean;
@@ -58,7 +60,9 @@ export const matchesShortcut = (event: KeyboardEvent, shortcut: Shortcut) => {
);
};
/** Bind a single keyboard shortcut to node. */
/**
Bind a single keyboard shortcut to node.
*/
export const shortcut = <T extends HTMLElement>(
node: T,
option: ShortcutOptions<T>,
@@ -73,7 +77,9 @@ export const shortcut = <T extends HTMLElement>(
};
};
/** Binds multiple keyboard shortcuts to node */
/**
Binds multiple keyboard shortcuts to node
*/
export const shortcuts = <T extends HTMLElement>(
node: T,
options: ShortcutOptions<T>[],
+3 -1
View File
@@ -26,7 +26,9 @@ export type TimelineItem = {
export const capitalize = (value: string) => value.charAt(0).toUpperCase() + value.slice(1);
type Attributes = {
/** uuid-v7, which can be generated with `npx -y uuid v7` */
/**
uuid-v7, which can be generated with `npx -y uuid v7`
*/
id: string;
title: string;
description: string;