graphql-code-generator icon indicating copy to clipboard operation
graphql-code-generator copied to clipboard

Unexpected YAML linter error on codegen.yml in VS code

Open wkf opened this issue 2 years ago • 0 comments

Describe the bug

Using a minimal (working) codegen.yml, I get a linter error complaining about a missing configuration option for the type-graphql plugin, which I am not using.

Your Example Website or App

https://github.com/dotansimha/graphql-code-generator

Steps to Reproduce the Bug or Issue

  1. Create a simple codegen.yml file
  2. Open it in VS code
  3. Install the YAML plugin
  4. Witness the unexpected linter error

Expected behavior

I expect there to be no linter error, unless there is actually a problem

Screenshots or Videos

Here is the error I get:

Screen Shot 2022-08-09 at 2 05 36 PM

Platform

  • OS: macOS
  • NodeJS: 16.15.1
  • graphql version: 16.5.0
  • @graphql-codegen/* version(s): 2.11.5

Codegen Config File

schema: 'graphql/schema.graphql' documents: 'graphql/operations.graphql' overwrite: true generates: src/.generated/graphql/server.ts: plugins: - 'typescript' - 'typescript-resolvers' src/.generated/graphql/client.ts: plugins: - 'typescript' - 'typescript-operations' - 'typed-document-node'

Additional context

No response

wkf avatar Aug 10 '22 18:08 wkf