Open eMerzh opened 1 week ago
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. I think this functionality would be better served by useNamingConvention for graphql. https://github.com/biomejs/biome/pull/4031#issuecomment-2366252558
I think this functionality would be better served by useNamingConvention for graphql.
It is a good point. However, I think that our current infra and way of configuring rules doesn't allow a rule on several languages with a config shape different for every language. @ematipico any input regarding this aspect?
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 :)