mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-11-18 07:22:06 +00:00
upgrade TS to v7
update readme to reflect new lint and format plugins, apply formatting rules
This commit is contained in:
@@ -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,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";
|
||||
|
||||
|
||||
@@ -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,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";
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user