Skip to content

Commit

Permalink
fix: add eslint ignore to generated trpc helper source (zenstackhq#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 authored Oct 14, 2023
1 parent 787a244 commit f7e8a08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugins/trpc/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}';`);

Expand Down

0 comments on commit f7e8a08

Please sign in to comment.