ardeois / graphql-codegen-typescript-mock-data

[GraphQL Codegen Plugin](https://github.com/dotansimha/graphql-code-generator) for building mock data based on the schema.
MIT License
134 stars 46 forks source link

Add option to skip `eslint-disable` comments #67

Closed AsazuTaiga closed 2 years ago

AsazuTaiga commented 2 years ago

Hi,

I don't use @typescript-eslint/no-use-before-define and @typescript-eslint/no-unused-vars on my eslint config, so the below generated comment becomes error.

/* eslint-disable @typescript-eslint/no-use-before-define,@typescript-eslint/no-unused-vars,no-prototype-builtins */

reslut:

Definition for rule '@typescript-eslint/no-use-before-define' was not found.eslint(@typescript-eslint/no-use-before-define)
Definition for rule '@typescript-eslint/no-unused-vars' was not found.eslint(@typescript-eslint/no-unused-vars)

I want a option not to generate this comment.

ardeois commented 2 years ago

Makes sense,

We should actually not add the eslint-disable line inside this plugin The add plugin could do this for us, I'll do a fix