lib/rules/valid-locator-type.js
function isArgumentLiteral (node) {
  return node.arguments && node.arguments.length && node.arguments[0].type === 'Literal'
}
function isArgumentLiteral (node) {
  return node.arguments && node.arguments.length && node.arguments[0].type === 'Literal'
}
function isArgumentLiteral ( node ) { return node . arguments && node . arguments . length && node . arguments [ 0 ] . type === 'Literal' }
Checks if a given CallExpression node has the first literal argument

@param {ASTNode} node - A node to check.
@returns {boolean}
Checks if a given CallExpression node has the first literal argument