Skip to content

Commit

Permalink
add nexus-types to eslint ignores, and revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Jun 24, 2024
1 parent ab2948b commit f905a76
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 90 deletions.
1 change: 0 additions & 1 deletion docs/pages/updates/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { Type } from '../../components/primitives/Type'
import { DocsPage } from '../../components/Page'
import { ArrowR } from '../../components/icons/ArrowR'
import { Emoji } from '../../components/primitives/Emoji'
// import { Stack } from '../../components/primitives/Stack';
import { useMediaQuery } from '../../lib/media'

type TimelineProps = {
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module.exports = tseslint.config(
'**/dist/',
'**/node_modules/',
'**/syntax-error.js',
'**/public/'
'**/public/',
'examples/extend-graphql-schema-nexus/nexus-types.ts'
],
},
eslint.configs.recommended,
Expand Down
176 changes: 88 additions & 88 deletions examples/extend-graphql-schema-nexus/nexus-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/


import type { Context } from './keystone-types'
import type { Context } from "./keystone-types"



Expand Down Expand Up @@ -164,15 +164,15 @@ export interface NexusGenInputs {
}

export interface NexusGenEnums {
KeystoneAdminUIFieldMetaCreateViewFieldMode: 'edit' | 'hidden'
KeystoneAdminUIFieldMetaIsNonNull: 'create' | 'read' | 'update'
KeystoneAdminUIFieldMetaItemViewFieldMode: 'edit' | 'hidden' | 'read'
KeystoneAdminUIFieldMetaItemViewFieldPosition: 'form' | 'sidebar'
KeystoneAdminUIFieldMetaListViewFieldMode: 'hidden' | 'read'
KeystoneAdminUISortDirection: 'ASC' | 'DESC'
OrderDirection: 'asc' | 'desc'
PostStatusType: 'draft' | 'published'
QueryMode: 'default' | 'insensitive'
KeystoneAdminUIFieldMetaCreateViewFieldMode: "edit" | "hidden"
KeystoneAdminUIFieldMetaIsNonNull: "create" | "read" | "update"
KeystoneAdminUIFieldMetaItemViewFieldMode: "edit" | "hidden" | "read"
KeystoneAdminUIFieldMetaItemViewFieldPosition: "form" | "sidebar"
KeystoneAdminUIFieldMetaListViewFieldMode: "hidden" | "read"
KeystoneAdminUISortDirection: "ASC" | "DESC"
OrderDirection: "asc" | "desc"
PostStatusType: "draft" | "published"
QueryMode: "default" | "insensitive"
}

export interface NexusGenScalars {
Expand Down Expand Up @@ -361,109 +361,109 @@ export interface NexusGenFieldTypes {

export interface NexusGenFieldTypeNames {
Author: { // field return type name
email: 'String'
id: 'ID'
name: 'String'
posts: 'Post'
postsCount: 'Int'
email: "String"
id: "ID"
name: "String"
posts: "Post"
postsCount: "Int"
}
KeystoneAdminMeta: { // field return type name
list: 'KeystoneAdminUIListMeta'
lists: 'KeystoneAdminUIListMeta'
list: "KeystoneAdminUIListMeta"
lists: "KeystoneAdminUIListMeta"
}
KeystoneAdminUIFieldGroupMeta: { // field return type name
description: 'String'
fields: 'KeystoneAdminUIFieldMeta'
label: 'String'
description: "String"
fields: "KeystoneAdminUIFieldMeta"
label: "String"
}
KeystoneAdminUIFieldMeta: { // field return type name
createView: 'KeystoneAdminUIFieldMetaCreateView'
customViewsIndex: 'Int'
description: 'String'
fieldMeta: 'JSON'
isFilterable: 'Boolean'
isNonNull: 'KeystoneAdminUIFieldMetaIsNonNull'
isOrderable: 'Boolean'
itemView: 'KeystoneAdminUIFieldMetaItemView'
label: 'String'
listView: 'KeystoneAdminUIFieldMetaListView'
path: 'String'
search: 'QueryMode'
viewsIndex: 'Int'
createView: "KeystoneAdminUIFieldMetaCreateView"
customViewsIndex: "Int"
description: "String"
fieldMeta: "JSON"
isFilterable: "Boolean"
isNonNull: "KeystoneAdminUIFieldMetaIsNonNull"
isOrderable: "Boolean"
itemView: "KeystoneAdminUIFieldMetaItemView"
label: "String"
listView: "KeystoneAdminUIFieldMetaListView"
path: "String"
search: "QueryMode"
viewsIndex: "Int"
}
KeystoneAdminUIFieldMetaCreateView: { // field return type name
fieldMode: 'KeystoneAdminUIFieldMetaCreateViewFieldMode'
fieldMode: "KeystoneAdminUIFieldMetaCreateViewFieldMode"
}
KeystoneAdminUIFieldMetaItemView: { // field return type name
fieldMode: 'KeystoneAdminUIFieldMetaItemViewFieldMode'
fieldPosition: 'KeystoneAdminUIFieldMetaItemViewFieldPosition'
fieldMode: "KeystoneAdminUIFieldMetaItemViewFieldMode"
fieldPosition: "KeystoneAdminUIFieldMetaItemViewFieldPosition"
}
KeystoneAdminUIFieldMetaListView: { // field return type name
fieldMode: 'KeystoneAdminUIFieldMetaListViewFieldMode'
fieldMode: "KeystoneAdminUIFieldMetaListViewFieldMode"
}
KeystoneAdminUIListMeta: { // field return type name
description: 'String'
fields: 'KeystoneAdminUIFieldMeta'
groups: 'KeystoneAdminUIFieldGroupMeta'
hideCreate: 'Boolean'
hideDelete: 'Boolean'
initialColumns: 'String'
initialSort: 'KeystoneAdminUISort'
isHidden: 'Boolean'
isSingleton: 'Boolean'
itemQueryName: 'String'
key: 'String'
label: 'String'
labelField: 'String'
listQueryName: 'String'
pageSize: 'Int'
path: 'String'
plural: 'String'
singular: 'String'
description: "String"
fields: "KeystoneAdminUIFieldMeta"
groups: "KeystoneAdminUIFieldGroupMeta"
hideCreate: "Boolean"
hideDelete: "Boolean"
initialColumns: "String"
initialSort: "KeystoneAdminUISort"
isHidden: "Boolean"
isSingleton: "Boolean"
itemQueryName: "String"
key: "String"
label: "String"
labelField: "String"
listQueryName: "String"
pageSize: "Int"
path: "String"
plural: "String"
singular: "String"
}
KeystoneAdminUISort: { // field return type name
direction: 'KeystoneAdminUISortDirection'
field: 'String'
direction: "KeystoneAdminUISortDirection"
field: "String"
}
KeystoneMeta: { // field return type name
adminMeta: 'KeystoneAdminMeta'
adminMeta: "KeystoneAdminMeta"
}
Mutation: { // field return type name
createAuthor: 'Author'
createAuthors: 'Author'
createPost: 'Post'
createPosts: 'Post'
deleteAuthor: 'Author'
deleteAuthors: 'Author'
deletePost: 'Post'
deletePosts: 'Post'
updateAuthor: 'Author'
updateAuthors: 'Author'
updatePost: 'Post'
updatePosts: 'Post'
createAuthor: "Author"
createAuthors: "Author"
createPost: "Post"
createPosts: "Post"
deleteAuthor: "Author"
deleteAuthors: "Author"
deletePost: "Post"
deletePosts: "Post"
updateAuthor: "Author"
updateAuthors: "Author"
updatePost: "Post"
updatePosts: "Post"
}
NexusThing: { // field return type name
id: 'Int'
title: 'String'
id: "Int"
title: "String"
}
Post: { // field return type name
author: 'Author'
content: 'String'
id: 'ID'
publishDate: 'DateTime'
status: 'PostStatusType'
title: 'String'
author: "Author"
content: "String"
id: "ID"
publishDate: "DateTime"
status: "PostStatusType"
title: "String"
}
Query: { // field return type name
author: 'Author'
authors: 'Author'
authorsCount: 'Int'
keystone: 'KeystoneMeta'
nexusPosts: 'Post'
post: 'Post'
posts: 'Post'
postsCount: 'Int'
things: 'NexusThing'
author: "Author"
authors: "Author"
authorsCount: "Int"
keystone: "KeystoneMeta"
nexusPosts: "Post"
post: "Post"
posts: "Post"
postsCount: "Int"
things: "NexusThing"
}
}

Expand Down Expand Up @@ -634,4 +634,4 @@ declare global {
}
interface NexusGenPluginArgConfig {
}
}
}

0 comments on commit f905a76

Please sign in to comment.