From f7e8a08987da4f6af3ad5058209cdc22720dce8f Mon Sep 17 00:00:00 2001 From: Yiming Date: Fri, 13 Oct 2023 17:42:49 -0700 Subject: [PATCH] fix: add eslint ignore to generated trpc helper source (#759) --- packages/plugins/trpc/src/generator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugins/trpc/src/generator.ts b/packages/plugins/trpc/src/generator.ts index 683944998..3bfe5a8af 100644 --- a/packages/plugins/trpc/src/generator.ts +++ b/packages/plugins/trpc/src/generator.ts @@ -382,6 +382,7 @@ function createHelper(outDir: string) { overwrite: true, }); + sf.addStatements('/* eslint-disable */'); sf.addStatements(`import { TRPCError } from '@trpc/server';`); sf.addStatements(`import { isPrismaClientKnownRequestError } from '${RUNTIME_PACKAGE}';`);