graphql-code-generator
graphql-code-generator copied to clipboard
Unexpected YAML linter error on codegen.yml in VS code
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
- Create a simple codegen.yml file
- Open it in VS code
- Install the YAML plugin
- 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:

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