dotansimha / dotansimha/graphql-code-generator

Unexpected YAML linter error on codegen.yml in VS code

Open
#8,215 0 comments 2 reactions 0 assignees View on GitHub
core
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

### 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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.