From 1419b6ad530a5c7fe4d223f6de7c3292404c1214 Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Mon, 14 Jun 2021 00:11:01 -0400 Subject: [PATCH] revert --- .eslintrc.yml | 4 ++-- src/language/parser.ts | 15 ++------------- src/type/definition.ts | 2 +- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index a1148cc65d2..ef499d6cdd9 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -603,8 +603,8 @@ overrides: '@typescript-eslint/no-use-before-define': off '@typescript-eslint/no-duplicate-imports': off # Superseded by `import/no-duplicates` - # Below rules are disabled because they conflict with Prettier, see: - # https://github.com/prettier/eslint-config-prettier/blob/aeb4d52de54960ff48a8c627e6c25db9873d7719/index.js#L97-L110 + # Bellow rules are disabled because coflicts with Prettier, see: + # https://github.com/prettier/eslint-config-prettier/blob/master/%40typescript-eslint.js '@typescript-eslint/object-curly-spacing': off '@typescript-eslint/quotes': off '@typescript-eslint/brace-style': off diff --git a/src/language/parser.ts b/src/language/parser.ts index f97f093aa28..7095cad1d11 100644 --- a/src/language/parser.ts +++ b/src/language/parser.ts @@ -88,7 +88,8 @@ export interface ParseOptions { * contained in a fragment definition. They'll be represented in the * `variableDefinitions` field of the FragmentDefinitionNode. * - * The syntax is identical to normal, query-defined variables. + * The syntax is identical to normal, query-defined variables. For example: + * * ```graphql * fragment A($var: Boolean = false) on T { * ... @@ -203,9 +204,7 @@ export class Parser { // Implements the parsing rules in the Document section. /** - * ``` * Document : Definition+ - * ``` */ parseDocument(): DocumentNode { return this.node(this._lexer.token, { @@ -219,7 +218,6 @@ export class Parser { } /** - * ``` * Definition : * - ExecutableDefinition * - TypeSystemDefinition @@ -228,7 +226,6 @@ export class Parser { * ExecutableDefinition : * - OperationDefinition * - FragmentDefinition - * ``` */ parseDefinition(): DefinitionNode { if (this.peek(TokenKind.NAME)) { @@ -263,11 +260,9 @@ export class Parser { // Implements the parsing rules in the Operations section. /** - * ``` * OperationDefinition : * - SelectionSet * - OperationType Name? VariableDefinitions? Directives? SelectionSet - * ``` */ parseOperationDefinition(): OperationDefinitionNode { const start = this._lexer.token; @@ -297,9 +292,7 @@ export class Parser { } /** - * ``` * OperationType : one of query mutation subscription - * ``` */ parseOperationType(): OperationTypeNode { const operationToken = this.expectToken(TokenKind.NAME); @@ -316,9 +309,7 @@ export class Parser { } /** - * ``` * VariableDefinitions : ( VariableDefinition+ ) - * ``` */ parseVariableDefinitions(): Array { return this.optionalMany( @@ -329,9 +320,7 @@ export class Parser { } /** - * ``` * VariableDefinition : Variable : Type DefaultValue? Directives[Const]? - * ``` */ parseVariableDefinition(): VariableDefinitionNode { return this.node(this._lexer.token, { diff --git a/src/type/definition.ts b/src/type/definition.ts index 099b069e4be..5714f2c7a56 100644 --- a/src/type/definition.ts +++ b/src/type/definition.ts @@ -1093,7 +1093,7 @@ export interface GraphQLInterfaceTypeExtensions { * all types, as well as a function to determine which type is actually used * when the field is resolved. * - * example + * Example * ```ts * const EntityType = new GraphQLInterfaceType({ * name: 'Entity',