in src/rule-must-colocate-fragment-spreads.js [69:101]
FragmentSpread(node, key, parent, path, ancestors) {
for (const ancestorNode of ancestors) {
if (ancestorNode.kind === 'OperationDefinition') {
if (
ancestorNode.operation === 'mutation' ||
ancestorNode.operation === 'subscription'
) {
return;
}
}
}
for (const directiveNode of node.directives) {
if (directiveNode.name.value === 'module') {
return;
}
if (directiveNode.name.value === 'relay') {
for (const argumentNode of directiveNode.arguments) {
if (
argumentNode.name.value === 'mask' &&
argumentNode.value.value === false
) {
return;
}
}
}
}
if (
utils.hasPrecedingEslintDisableComment(node, ESLINT_DISABLE_COMMENT)
) {
return;
}
fragmentSpreads[node.name.value] = node;
}