Skip to content

Commit b54774f

Browse files
committed
chore: lint fixes
1 parent c2a4666 commit b54774f

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

src/components/A.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function A(
88

99
if (isInternalLink) {
1010
return (
11-
<Link href={href as string} passHref>
11+
<Link href={href} passHref>
1212
<a {...rest}>{children}</a>
1313
</Link>
1414
)

src/pages/_app.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { SEO } from '@/constants/seo-constants'
21
import ProgressBar from '@badrap/bar-of-progress'
32
import { Provider } from 'next-auth/client'
43
import { DefaultSeo } from 'next-seo'
4+
import type { AppProps } from 'next/app'
55
import Router from 'next/router'
66
import { Fragment } from 'react'
7+
import type { ReactNode } from 'react'
78
import { QueryClient, QueryClientProvider } from 'react-query'
89
import { ReactQueryDevtools } from 'react-query/devtools'
910

10-
import type { AppProps } from 'next/app'
11-
import type { ReactNode } from 'react'
11+
import { SEO } from '@/constants/seo-constants'
1212
import 'tailwindcss/tailwind.css'
1313
import '@/styles/globals.css'
1414

src/pages/_document.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Document, { Html, Head, Main, NextScript } from 'next/document'
2-
32
import type { DocumentContext } from 'next/document'
43

54
class MyDocument extends Document {

src/pages/api/auth/[...nextauth].ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import Fauna from '@/adapters'
2-
import { env } from '@/constants/env'
3-
import { getFaunaClient } from '@/utils'
41
import NextAuth from 'next-auth'
52
import Providers from 'next-auth/providers'
63
import slugify from 'slugify'
74

5+
import Fauna from '@/adapters'
6+
import { env } from '@/constants/env'
7+
import { getFaunaClient } from '@/utils'
8+
89
type GitHubEmailResponse = {
910
email: string
1011
primary: boolean

src/pages/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { A } from '@/components'
21
import { signIn, signOut, useSession } from 'next-auth/client'
32
import { NextSeo } from 'next-seo'
43

4+
import { A } from '@/components'
5+
56
export default function Home(): JSX.Element {
67
const [session, loading] = useSession()
78
const transition = 'color 0.15s ease, border-color 0.15s ease'

src/utils/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { env } from '@/constants/env'
21
import faunadb from 'faunadb'
32

3+
import { env } from '@/constants/env'
4+
45
export function getFaunaClient(): faunadb.Client {
56
const useFaunaDocker = env.USE_FAUNA_DOCKER === 'true'
67
return new faunadb.Client({

0 commit comments

Comments
 (0)