Skip to content

Commit b309c48

Browse files
committed
fix: lint
1 parent 9988d4d commit b309c48

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/configs/prisma.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ const pglite = `/**
7575
*
7676
* To make use of the shadow-database add \`/prisma-shadow\` to the DSN you provide. This script will then spin up a second, in-memory-only database and connect you to it.
7777
*/
78-
import net from 'node:net'
7978
import { unlinkSync, writeFileSync } from 'node:fs'
79+
import net from 'node:net'
8080
import { PGlite } from '@electric-sql/pglite'
81-
import { fromNodeSocket } from 'pg-gateway/node'
8281
import { join } from 'pathe'
82+
import { fromNodeSocket } from 'pg-gateway/node'
8383
8484
// If env var is set, we write a file to disk once the server is done starting up. This file can then be used by other processes to check whether the database is ready
8585
const doWriteHealthFile = process.env.WRITE_HEALTH_FILE === 'true'

src/configs/sidebase-auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { generateModuleHTMLComponent, generateModuleHTMLSnippet } from '../gener
22
import type { ModuleConfig } from '../types'
33

44
const nuxtAuthServerFile = `import CredentialsProvider from 'next-auth/providers/credentials'
5-
import GithubProvider from 'next-auth/providers/github'
65
import { NuxtAuthHandler } from '#auth'
6+
import GithubProvider from 'next-auth/providers/github'
77
88
export default NuxtAuthHandler({
99
// TODO: SET A STRONG SECRET, SEE https://sidebase.io/nuxt-auth/configuration/nuxt-auth-handler#secret

src/configs/trpc.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const nuxtTrpcRootConfig = `/**
1111
* @see https://trpc.io/docs/v10/procedures
1212
*/
1313
import { initTRPC } from '@trpc/server'
14-
import superjson from 'superjson'
1514
import type { Context } from '~/server/trpc/context'
15+
import superjson from 'superjson'
1616
1717
const t = initTRPC.context<Context>().create({
1818
transformer: superjson
@@ -69,8 +69,8 @@ export type Context = inferAsyncReturnType<typeof createContext>
6969
`
7070

7171
const nuxtTrpcApiHandler = `import { createNuxtApiHandler } from 'trpc-nuxt'
72-
import { appRouter } from '~/server/trpc/routers'
7372
import { createContext } from '~/server/trpc/context'
73+
import { appRouter } from '~/server/trpc/routers'
7474
7575
// export API handler
7676
export default createNuxtApiHandler({
@@ -79,9 +79,9 @@ export default createNuxtApiHandler({
7979
})
8080
`
8181

82-
const nuxtTrpcPlugin = `import { createTRPCNuxtClient, httpBatchLink } from 'trpc-nuxt/client'
82+
const nuxtTrpcPlugin = `import type { AppRouter } from '~/server/trpc/routers'
8383
import superjson from 'superjson'
84-
import type { AppRouter } from '~/server/trpc/routers'
84+
import { createTRPCNuxtClient, httpBatchLink } from 'trpc-nuxt/client'
8585
8686
export default defineNuxtPlugin(() => {
8787
/**

0 commit comments

Comments
 (0)