You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time I run dev my VSCode sidebar looks like this, even if I haven't changed anything about my schema:
This happens because I use prettier, which formats files differently than the codegen.
Proposed Solution
If there is a prettier config file in the folder or a parent folder, run prettier over the generated code with the actual config to avoid unnecessary git diffs.
The text was updated successfully, but these errors were encountered:
This should be implemented in GraphQL Code Generator, we basically have to detect whether the user has either got prettier installed (no config) or has a prettier config and then add the following to the GraphQL Code Generator process.
Summary
Every time I run
dev
my VSCode sidebar looks like this, even if I haven't changed anything about my schema:This happens because I use prettier, which formats files differently than the codegen.
Proposed Solution
If there is a prettier config file in the folder or a parent folder, run prettier over the generated code with the actual config to avoid unnecessary git diffs.
The text was updated successfully, but these errors were encountered: