跳转到内容

useDeprecatedReason

Diagnostic Category: lint/nursery/useDeprecatedReason

Since: v1.9.0

Sources:

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.

query {
member @deprecated
}
query {
member @deprecated(reason: "Why?")
}