Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /* eslint-disable */ to all generated TS/JS files #8807

Closed
ffxsam opened this issue Jan 9, 2023 · 2 comments
Closed

Add /* eslint-disable */ to all generated TS/JS files #8807

ffxsam opened this issue Jan 9, 2023 · 2 comments

Comments

@ffxsam
Copy link

ffxsam commented Jan 9, 2023

Is your feature request related to a problem? Please describe.

Our project contains eslint warnings because of max-len violations.

Describe the solution you'd like

Every generated file should start with /* eslint-disable */.

Describe alternatives you've considered

No response

Is your feature request related to a problem? Please describe.

No response

@saihaj
Copy link
Collaborator

saihaj commented Jan 9, 2023

usually you would want to avoid linting generated files. But if you are running then codegen plugin system allows you to simply add yourself without codegen being opinionated on what to disable and what not to.

You can use @graphql-codegen/add.

@saihaj saihaj closed this as completed Jan 9, 2023
@ffxsam
Copy link
Author

ffxsam commented Jan 9, 2023

Thanks, didn't know about the add plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants