Pretty GraphQL is a configurable GraphQL formatter.
We've provided dprint integration.
Run the command below to add plugin:
dprint config add g-plane/pretty_graphql
After adding the dprint plugin, update your dprint.json
and add configuration:
{
// ...
"graphql": { // <-- the key name here is "graphql", not "pretty_graphql"
// Pretty GraphQL config comes here
},
"plugins": [
"https://plugins.dprint.dev/g-plane/pretty_graphql-v0.2.0.wasm"
]
}
You can also read dprint CLI documentation for using dprint to format files.
Please read configuration documentation.
To use Pretty GraphQL in Rust, please read the documentation.
Tests come from Prettier.
MIT License
Copyright (c) 2024-present Pig Fang