-
-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📎 All caps ENUM in GraphQL #4033
Comments
as a noob, i'd like to try my hand at that :) i did created #4031 |
After doing quick search for enum graphql there are a lot of different casing examples, so this rule is likely too restrictive. |
It is a good point. |
Configuring multiple rules shouldn't be difficult. Here's what I thought:
|
Description
it's well a convention (not a requirement) in GQL to have ALL CAPS enums,
a few eslint based linter have it like
https://github.com/joshuaNathaniel/eslint-plugin-graphql-schema/blob/master/docs/rules/enum-values-all-caps.md
or
https://github.com/cjoudrey/graphql-schema-linter
it might be a good new lint for biome :)
The text was updated successfully, but these errors were encountered: