upgrade TS to v7

update readme to reflect new lint and format plugins, apply formatting rules
This commit is contained in:
2026-10-05 16:15:25 +02:00
committed by owenrees
parent feadb465eb
commit 61dcd11739
10 changed files with 137 additions and 26 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ export default async function RootLayout({
let messages;
try {
messages = (await import(`@/messages/${locale}.json`)).default;
// oxlint-disable-next-line no-unused-vars
// oxlint-disable-next-line no-unused-vars
} catch (error) {
notFound();
}
+1 -1
View File
@@ -1,4 +1,4 @@
import { type ComponentProps } from 'react'
import { type ComponentProps } from "react";
import { type VariantProps, cva } from "class-variance-authority";
import { twMerge } from "tailwind-merge";
+2 -6
View File
@@ -1,4 +1,4 @@
import type { ReactNode } from 'react'
import type { ReactNode } from "react";
import { Switch, SwitchProps } from "@headlessui/react";
import { twMerge } from "tailwind-merge";
@@ -9,11 +9,7 @@ export const InlineSwitch = (
tooltipId?: string;
} & SwitchProps<"button">,
) => {
const {
label,
disabled,
...rest
} = props;
const { label, disabled, ...rest } = props;
return (
<Switch.Group>
+1 -1
View File
@@ -1,4 +1,4 @@
import type { ComponentProps, ReactNode } from 'react'
import type { ComponentProps, ReactNode } from "react";
import { VariantProps, cva } from "class-variance-authority";
import { twMerge } from "tailwind-merge";
+1 -3
View File
@@ -76,6 +76,4 @@ function create(screens: object | undefined) {
} as CreatorReturnType;
}
export const { useBreakpoint } = create(
config.theme!.screens,
);
export const { useBreakpoint } = create(config.theme!.screens);