Skip to content

Commit

Permalink
Fix issue with reporting the @productboard/relay/unused-fields is unused
Browse files Browse the repository at this point in the history
  • Loading branch information
vaclavbohac committed Nov 9, 2023
1 parent b573618 commit ff21247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rule-unused-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function rule(context) {
foundMemberAccesses = {};
templateLiterals = [];
},
'Program:exit'(_node) {
'Program:exit'(node) {
const edgesAndNodesWhiteListFunctionCallArguments =
getEdgesAndNodesWhiteListFunctionCallArguments(
edgesAndNodesWhiteListFunctionCalls
Expand Down Expand Up @@ -231,7 +231,7 @@ function rule(context) {
)
) {
context.report({
node: templateLiteral,
node,
loc: getLoc(context, templateLiteral, queriedFields[field]),
message:
`This queries for the field \`${field}\` but this file does ` +
Expand Down

0 comments on commit ff21247

Please sign in to comment.