style: apply Biome formatting and auto-fixes

- Format 78 files, fixed 42 files total
- Apply safe lint fixes (non-null assertions converted to optional chaining)
- Remaining lint warnings are non-blocking (test code, a11y suggestions)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ajax Davis 2025-11-26 18:59:49 +10:00
parent 65be671143
commit e904e8d319
34 changed files with 167 additions and 525 deletions

View file

@ -119,9 +119,7 @@ describe("Button", () => {
});
it("applies icon size classes", () => {
render(
<Button size="icon" data-testid="button" aria-label="Icon button" />,
);
render(<Button size="icon" data-testid="button" aria-label="Icon button" />);
const button = screen.getByTestId("button");
expect(button.className).toContain("h-10");
expect(button.className).toContain("w-10");
@ -241,19 +239,14 @@ describe("Button", () => {
</Button>,
);
expect(ref).toBeInstanceOf(HTMLButtonElement);
expect(ref!.tagName).toBe("BUTTON");
expect(ref?.tagName).toBe("BUTTON");
});
});
describe("HTML Attributes", () => {
it("passes through HTML button attributes", () => {
render(
<Button
type="submit"
name="test-button"
value="test-value"
data-testid="button"
>
<Button type="submit" name="test-button" value="test-value" data-testid="button">
Submit
</Button>,
);

View file

@ -65,11 +65,9 @@ export const buttonVariants = createVariants({
"active:bg-accent/80",
].join(" "),
link: [
"text-primary underline-offset-4",
"hover:underline",
"active:text-primary/80",
].join(" "),
link: ["text-primary underline-offset-4", "hover:underline", "active:text-primary/80"].join(
" ",
),
},
size: {