Skip to content
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

Extract validation rule for deprecated fields #2601

Closed
IvanGoncharov opened this issue Jun 2, 2020 · 0 comments
Closed

Extract validation rule for deprecated fields #2601

IvanGoncharov opened this issue Jun 2, 2020 · 0 comments
Assignees
Labels
PR: feature 🚀 requires increase of "minor" version number

Comments

@IvanGoncharov
Copy link
Member

We already have a rule for detecting deprecated fields but the community constantly reimplement it because we don't expose it as rule but as a function:
https://github.com/apollographql/eslint-plugin-graphql/blob/c465fedc8fea239ee1731ad4ec3ee1183a3cdddf/src/customGraphQLValidationRules.js#L152-L153

So we need to add it under src/validation/rules/extra and deprecate findDeprecatedUsages :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature 🚀 requires increase of "minor" version number
Projects
None yet
Development

No branches or pull requests

2 participants