lib/rules/require-super-in-init.js
function checkForSuper(nodes) {
  if (nodes.length === 0) return false;

  return nodes.some((n) => {
    if (utils.isCallExpression(n.expression)) {
      const fnCallee = n.expression.callee;
      return utils.isMemberExpression(fnCallee) &&
        utils.isThisExpression(fnCallee.object) &&
        utils.isIdentifier(fnCallee.property) &&
        fnCallee.property.name === '_super';
    } else if (utils.isReturnStatement(n)) {
      if (!n.argument || !utils.isCallExpression(n.argument)) return false;

      const fnCallee = n.argument.callee;
      return fnCallee.property.name === '_super';
    }

    return false;
  });
}
function checkForSuper(nodes) {
  if (nodes.length === 0) return false;

  return nodes.some((n) => {
    if (utils.isCallExpression(n.expression)) {
      const fnCallee = n.expression.callee;
      return utils.isMemberExpression(fnCallee) &&
        utils.isThisExpression(fnCallee.object) &&
        utils.isIdentifier(fnCallee.property) &&
        fnCallee.property.name === '_super';
    } else if (utils.isReturnStatement(n)) {
      if (!n.argument || !utils.isCallExpression(n.argument)) return false;

      const fnCallee = n.argument.callee;
      return fnCallee.property.name === '_super';
    }

    return false;
  });
}
function checkForSuper ( nodes ) { if ( nodes . length === 0 ) return false ; return nodes . some ( ( n ) => { if ( utils . isCallExpression ( n . expression ) ) { const fnCallee = n . expression . callee ; return utils . isMemberExpression ( fnCallee ) && utils . isThisExpression ( fnCallee . object ) && utils . isIdentifier ( fnCallee . property ) && fnCallee . property . name === '_super' ; } else if ( utils . isReturnStatement ( n ) ) { if ( ! n . argument || ! utils . isCallExpression ( n . argument ) ) return false ; const fnCallee = n . argument . callee ; return fnCallee . property . name === '_super' ; } return false ; } ) ; }
Checks whether a node has the '_super' property.
@param {Node[]} nodes An array of nodes.
@returns {Boolean}
Checks whether a node has the _super property .