Change ESLint rules, lint

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2023-02-15 22:26:27 +01:00
parent dec2cc69e8
commit 81de0014d3
337 changed files with 1301 additions and 1284 deletions

View File

@@ -10,27 +10,27 @@ import type { ButtonSizes, ButtonThemes } from './useButtonStyles';
interface IButton {
/** Whether this button expands the width of its container. */
block?: boolean,
block?: boolean
/** Elements inside the <button> */
children?: React.ReactNode,
children?: React.ReactNode
/** Extra class names for the button. */
className?: string,
className?: string
/** Prevent the button from being clicked. */
disabled?: boolean,
disabled?: boolean
/** URL to an SVG icon to render inside the button. */
icon?: string,
icon?: string
/** Action when the button is clicked. */
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void,
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void
/** A predefined button size. */
size?: ButtonSizes,
size?: ButtonSizes
/** Text inside the button. Takes precedence over `children`. */
text?: React.ReactNode,
text?: React.ReactNode
/** Makes the button into a navlink, if provided. */
to?: string,
to?: string
/** Styles the button visually with a predefined theme. */
theme?: ButtonThemes,
theme?: ButtonThemes
/** Whether this button should submit a form by default. */
type?: 'button' | 'submit',
type?: 'button' | 'submit'
}
/** Customizable button element with various themes. */