diff --git a/eslint.config.js b/eslint.config.js index bcb4973..36db066 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,6 +6,8 @@ import reactCompiler from 'eslint-plugin-react-compiler' export default antfu({ react: true, typescript: { tsconfigPath: './tsconfig.json' }, +}, { + ignores: ['src/router.ts'], }) .append(ii()) .append({ diff --git a/src/router.ts b/src/router.ts index e515c54..03c799a 100644 --- a/src/router.ts +++ b/src/router.ts @@ -1,17 +1,17 @@ // Generouted, changes to this file will be overridden +/* eslint-disable */ import { components, hooks, utils } from '@generouted/react-router/client' -// eslint-disable-next-line sonarjs/redundant-type-aliases -export type ModalPath = never +export type Path = + | `/` + | `/room/:uuid` -export interface Params { +export type Params = { '/room/:uuid': { uuid: string } } -export type Path = - | '/' - | '/room/:uuid' +export type ModalPath = never export const { Link, Navigate } = components() export const { useModals, useNavigate, useParams } = hooks()