Learn how to use Prettier and other linters with GraphQL Code Generator to apply your custom code style and formatting rules.
The codegen supports lifecycle hooks, and you can use those for integration with Prettier or other
linters, to apply your custom code style and formatting rules.
Before adding a hook, consider the alternative of having codegen ignored in your linting. Codegen
files should not be edited manually and formatting them slows down your codegen considerably.
Differences can be measured in several seconds for every run on big projects.