We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77a8473 commit 52704e8Copy full SHA for 52704e8
packages/plugin/src/rules/deprecation-must-have-reason.ts
@@ -8,7 +8,7 @@ const rule: GraphQLESLintRule = {
8
if (node && node.name && node.name.value === 'deprecated') {
9
const args = node.arguments || [];
10
const reasonArg = args.find(arg => arg.name && arg.name.value === 'reason');
11
- const value = reasonArg ? valueFromNode(reasonArg.value, {}) : null;
+ const value = reasonArg ? String(valueFromNode(reasonArg.value, {}) || '').trim() : null;
12
13
if (!value) {
14
context.report({
0 commit comments