eslint-plugin-graphql
eslint-plugin-graphql copied to clipboard
New config option `withoutValidators`
I want to use all current list of validators for Relay, except NoUnusedVariables
validator.
For now, I can describe all validators explicitly but may lose some new validators in future.
Guys, what do you think about new option withoutValidators
?
i have to think more carefully about how to weigh the difference between the existing concept of an "environment" (which maps to a subset of all GraphQL validators) vs being able to control the individual validators themselves.
as you've mentioned, perhaps this looks like combining the validators set by the environment, and adding and subtracting them based on an includes/excludes validators and utilizing the result
Would find this feature useful. excludeValidators
strikes me as a somewhat more intuitive name.
I'd really love this feature too! Is there any workaround at the moment other than explicitly defining all validators except the few I want to exclude?
Would be very useful feature! Any updates?
This would be an awesome feature!
Yes. This would be a nice feature to have. However I would suggest something like this,
{
"validators": {
"NoUnusedFragments": false,
"NoUnusedVariables": { "enabled": true, ...someConfigs },
}
}