Skip to content

Commit

Permalink
fix(lint): exclude router.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Jan 31, 2025
1 parent bc428ea commit 22afd8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
12 changes: 6 additions & 6 deletions src/router.ts
Original file line number Diff line number Diff line change
@@ -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<Path, Params>()
export const { useModals, useNavigate, useParams } = hooks<Path, Params, ModalPath>()
Expand Down

0 comments on commit 22afd8a

Please sign in to comment.