useDeprecatedReason
Diagnostic Category: lint/nursery/useDeprecatedReason
Since: v1.9.0
Sources:
- Same as: 
graphql/require-deprecation-reason 
Description
Section titled DescriptionRequire 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 Invalidquery {  member @deprecated}Valid
Section titled Validquery {  member @deprecated(reason: "Why?")}How to configure
Section titled How to configure{  "linter": {    "rules": {      "nursery": {        "useDeprecatedReason": "error"      }    }  }}