From f905a767956e5f577966855eb4301b58e95b8af9 Mon Sep 17 00:00:00 2001 From: Daniel Cousens <413395+dcousens@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:27:53 +1000 Subject: [PATCH] add nexus-types to eslint ignores, and revert changes --- docs/pages/updates/index.tsx | 1 - eslint.config.js | 3 +- .../nexus-types.ts | 176 +++++++++--------- 3 files changed, 90 insertions(+), 90 deletions(-) diff --git a/docs/pages/updates/index.tsx b/docs/pages/updates/index.tsx index 81f94a9a677..50a3ff8e55d 100644 --- a/docs/pages/updates/index.tsx +++ b/docs/pages/updates/index.tsx @@ -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 = { diff --git a/eslint.config.js b/eslint.config.js index 68370173174..0f4f6d17b92 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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, diff --git a/examples/extend-graphql-schema-nexus/nexus-types.ts b/examples/extend-graphql-schema-nexus/nexus-types.ts index 7cf5e818bfe..9cf0008b70a 100644 --- a/examples/extend-graphql-schema-nexus/nexus-types.ts +++ b/examples/extend-graphql-schema-nexus/nexus-types.ts @@ -4,7 +4,7 @@ */ -import type { Context } from './keystone-types' +import type { Context } from "./keystone-types" @@ -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 { @@ -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" } } @@ -634,4 +634,4 @@ declare global { } interface NexusGenPluginArgConfig { } -} \ No newline at end of file +}