Comments are lost when formatting
- Dominant language
- JavaScript
- Stars
- 73
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
We use `format-graphql` along side the `graphql-schema-linter` package (via https://pre-commit.com/)
`graphql-schema-linter` provides the means to disable some of it's lint checks (unused types, camel casing) https://github.com/cjoudrey/graphql-schema-linter#inline-rule-overrides
However, when using it with `format-grahpql` the comments all disappear.
I would have guessed that because comments aren't necessarily part of the GraphQL spec, that any parser from GraphQL might just eat them, and not provide them as AST nodes, but in fact the spec does define comments:
- https://spec.graphql.org/June2018/#sec-Comments
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.