Is there a reason why the client
preset doesn't add /* eslint-disable */
in the generated index.ts
file?
#9771
Unanswered
tschortsch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I generate GraphQL types with the
client
preset there are multiple files generated with anindex.ts
file which re-exports all other file exports. In this file there isn't the/* eslint-disable */
rule so our linting is failing because we use single-quotes instead of double-quotes. All the other files have the eslint rule. The index file gets generated here: https://github.com/dotansimha/graphql-code-generator/blob/master/packages/presets/client/src/index.ts#L274C10-L274C10. Is there a reason for this behavior?Beta Was this translation helpful? Give feedback.
All reactions