Skip to content

Commit

Permalink
chore(server): lint ignore error gen file (#7245)
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed Jun 18, 2024
1 parent 98258b0 commit 390852f
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 147 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ storybook-static
web-static
public
packages/backend/server/src/schema.gql
packages/backend/server/src/fundamentals/error/errors.gen.ts
packages/frontend/i18n/src/i18n-generated.ts
packages/frontend/graphql/src/graphql/index.ts
tests/affine-legacy/**/static
Expand Down
1 change: 1 addition & 0 deletions packages/backend/server/src/fundamentals/error/def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function generateErrorArgs(name: string, args: ErrorArgs) {

export function generateUserFriendlyErrors() {
const output = [
'/* eslint-disable */',
'// AUTO GENERATED FILE',
`import { createUnionType, Field, ObjectType, registerEnumType } from '@nestjs/graphql';`,
'',
Expand Down
Loading

0 comments on commit 390852f

Please sign in to comment.