Adding lint rules for GraphQL #3303
vohoanglong0107
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
What do you think about adding support for linting GraphQL string constants inside of Typescript files? Basically a port of @captbaritone was there any plan ever to make this part of Relay monorepo? AFAIK there's a plugin system coming in Biome v2 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As GraphQL parser has been completed and the analyzer infrastructure has been initialized, we can now start adding lint rules for GraphQL. This discussion serves as a central place to gather ideas for lint rules, discuss whether it makes sense to introduce a specific lint rule to Biome, and track the progress of lint rule development.
graphql-eslint
Lint rules from graphql-eslint
__typename
....Fragment
spreads refer to fragments defined in the same document.query
short-hand) is only valid if it contains only that one operation definition."""
or"
for adding a GraphQL description instead of#
.mutation
and/orsubscription
.PageInfo
.input
ortype
fields to be non-nullable with@oneOf
directive.@oneOf
directive haveerror
andok
fields.If you have any suggestion for a lint rule, feels free to comment your ideas in this discussion.
Beta Was this translation helpful? Give feedback.
All reactions