Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gilgardosh committed Nov 5, 2024
1 parent e85fb7d commit f6e5c3e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ packages/graphql-yoga/src/landing-page-html.ts
packages/graphql-yoga/src/graphiql-html.ts
.tool-versions
**/generated/**
**/*.generated.*
examples/apollo-federation-compatibility/src/resolvers-types.ts
**/node_modules
**/dist
Expand Down
1 change: 1 addition & 0 deletions examples/tutorial/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ const config: CodegenConfig = {
},
}),
},
hooks: { afterAllFileWrite: ['prettier --write'] },
};
export default config;
2 changes: 1 addition & 1 deletion examples/tutorial/src/schema/base/resolvers/Comment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CommentResolvers } from './../../types.generated';
import type { CommentResolvers } from '../../types.generated';

export const Comment: CommentResolvers = {
link(parent, _arg, context) {
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/src/schema/base/resolvers/Link.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { LinkResolvers } from './../../types.generated';
import type { LinkResolvers } from '../../types.generated';

export const Link: LinkResolvers = {
comments: async (parent, _arg, context) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GraphQLError } from 'graphql';
import { Prisma } from '@prisma/client';
import { parseIntSafe } from '../../../../utils';
import type { MutationResolvers } from './../../../types.generated';
import type { MutationResolvers } from '../../../types.generated';

export const postCommentOnLink: NonNullable<MutationResolvers['postCommentOnLink']> = async (
_parent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MutationResolvers } from './../../../types.generated';
import type { MutationResolvers } from '../../../types.generated';

export const postLink: NonNullable<MutationResolvers['postLink']> = async (
_parent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { QueryResolvers } from './../../../types.generated';
import type { QueryResolvers } from '../../../types.generated';

export const comment: NonNullable<QueryResolvers['comment']> = async (_parent, args, context) => {
return context.prisma.comment.findUnique({
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/src/schema/base/resolvers/Query/feed.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { applySkipConstraints, applyTakeConstraints } from '../../../../utils';
import type { QueryResolvers } from './../../../types.generated';
import type { QueryResolvers } from '../../../types.generated';

export const feed: NonNullable<QueryResolvers['feed']> = async (_parent, args, context) => {
const where = args.filterNeedle
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/src/schema/base/resolvers/Query/info.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { QueryResolvers } from './../../../types.generated';
import type { QueryResolvers } from '../../../types.generated';

export const info: NonNullable<QueryResolvers['info']> = async (_parent, _arg, _ctx) => {
return `This is the API of a Hackernews Clone`;
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/src/schema/base/resolvers/Query/link.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { QueryResolvers } from './../../../types.generated';
import type { QueryResolvers } from '../../../types.generated';

export const link: NonNullable<QueryResolvers['link']> = async (_parent, args, context) => {
return context.prisma.link.findUnique({
Expand Down

0 comments on commit f6e5c3e

Please sign in to comment.