useDeprecatedReason
Ce contenu n’est pas encore disponible dans votre langue.
Diagnostic Category: lint/nursery/useDeprecatedReason
Since: v1.9.0
Sources:
- Same as:
graphql/require-deprecation-reason
Require specifying the reason argument when using @deprecated
directive
This rule checks the parameter of @deprecated
directive for the use of reason argument,
suggesting user to add it in case the argument is missing.
Examples
Section titled ExamplesInvalid
Section titled Invalid