Explorar el Código

chore: disable react-refresh rule in some routes (#265)

Sat Naing hace 6 meses
padre
commit
42db42c233

+ 1 - 0
src/routes/_authenticated/errors/$error.tsx

@@ -14,6 +14,7 @@ export const Route = createFileRoute('/_authenticated/errors/$error')({
   component: RouteComponent,
 })
 
+// eslint-disable-next-line react-refresh/only-export-components
 function RouteComponent() {
   const { error } = Route.useParams()
 

+ 1 - 0
src/routes/clerk/(auth)/route.tsx

@@ -7,6 +7,7 @@ export const Route = createFileRoute('/clerk/(auth)')({
   component: ClerkAuthLayout,
 })
 
+// eslint-disable-next-line react-refresh/only-export-components
 function ClerkAuthLayout() {
   return (
     <div className='relative container grid h-svh flex-col items-center justify-center lg:max-w-none lg:grid-cols-2 lg:px-0'>

+ 1 - 0
src/routes/clerk/_authenticated/user-management.tsx

@@ -1,3 +1,4 @@
+/* eslint-disable react-refresh/only-export-components */
 import { useEffect, useState } from 'react'
 import {
   createFileRoute,

+ 1 - 0
src/routes/clerk/route.tsx

@@ -1,3 +1,4 @@
+/* eslint-disable react-refresh/only-export-components */
 import { createFileRoute, Outlet } from '@tanstack/react-router'
 import { ClerkProvider } from '@clerk/clerk-react'
 import { ExternalLink, Key } from 'lucide-react'