Fix ESLint errors

This commit is contained in:
adilallo
2026-01-28 11:38:38 -07:00
parent 2e027f5bb2
commit 6b8d646f8a
82 changed files with 217 additions and 193 deletions
+16 -16
View File
@@ -54,25 +54,25 @@ export const Variants = {
children: "Button",
size: "large",
},
render: (args) => (
render: (_args) => (
<div className="space-y-4">
<div className="space-x-4">
<Button {...args} variant="default">
<Button {..._args} variant="default">
Default
</Button>
<Button {...args} variant="secondary">
<Button {..._args} variant="secondary">
Secondary
</Button>
<Button {...args} variant="primary">
<Button {..._args} variant="primary">
Primary
</Button>
<Button {...args} variant="outlined">
<Button {..._args} variant="outlined">
Outlined
</Button>
<Button {...args} variant="dark">
<Button {..._args} variant="dark">
Dark
</Button>
<Button {...args} variant="inverse">
<Button {..._args} variant="inverse">
Inverse
</Button>
</div>
@@ -92,22 +92,22 @@ export const Sizes = {
children: "Button",
variant: "default",
},
render: (args) => (
render: (_args) => (
<div className="space-y-4">
<div className="space-x-4">
<Button {...args} size="xsmall">
<Button {..._args} size="xsmall">
XSmall
</Button>
<Button {...args} size="small">
<Button {..._args} size="small">
Small
</Button>
<Button {...args} size="medium">
<Button {..._args} size="medium">
Medium
</Button>
<Button {...args} size="large">
<Button {..._args} size="large">
Large
</Button>
<Button {...args} size="xlarge">
<Button {..._args} size="xlarge">
XLarge
</Button>
</div>
@@ -128,11 +128,11 @@ export const States = {
size: "large",
variant: "default",
},
render: (args) => (
render: (_args) => (
<div className="space-y-4">
<div className="space-x-4">
<Button {...args}>Normal</Button>
<Button {...args} disabled>
<Button {..._args}>Normal</Button>
<Button {..._args} disabled>
Disabled
</Button>
</div>
-3
View File
@@ -5,9 +5,6 @@ import {
CheckedInteraction,
StandardInteraction,
InverseInteraction,
KeyboardInteraction,
AccessibilityInteraction,
FormIntegration,
} from "../tests/storybook/Checkbox.interactions.test";
export default {
+19
View File
@@ -19,3 +19,22 @@ export default {
},
},
};
export const Default = {
args: {
children: <div>Normal content</div>,
},
};
export const WithError = {
render: () => {
const ThrowError = () => {
throw new Error("Test error for ErrorBoundary");
};
return (
<ErrorBoundary>
<ThrowError />
</ErrorBoundary>
);
},
};
-3
View File
@@ -5,9 +5,6 @@ import {
CheckedInteraction,
StandardInteraction,
InverseInteraction,
KeyboardInteraction,
AccessibilityInteraction,
FormIntegration,
} from "../tests/storybook/RadioButton.interactions.test";
const meta = {
-4
View File
@@ -5,10 +5,6 @@ import {
StandardInteraction,
InverseInteraction,
InteractiveInteraction,
KeyboardInteraction,
AccessibilityInteraction,
SingleSelectionInteraction,
FormIntegration,
} from "../tests/storybook/RadioGroup.interactions.test";
const meta = {
+2 -1
View File
@@ -57,7 +57,8 @@ export const Default = {
};
export const AllVariants = {
render: (args) => (
// eslint-disable-next-line no-unused-vars
render: (_args) => (
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 max-w-4xl">
<RuleCard
title="Consensus clusters"