in src/rule-unused-fields.js [100:112]
function visitGetByPathCall(node) {
// The `getByPath` utility accesses nested fields in the form
// `getByPath(thing, ['field', 'nestedField'])`.
const pathArg = node.arguments[1];
if (!pathArg || pathArg.type !== 'ArrayExpression') {
return;
}
pathArg.elements.forEach(element => {
if (isStringNode(element)) {
foundMemberAccesses[element.value] = true;
}
});
}