lib/rules/func-names.js
function getConfigForNode(node) {
            if (
                node.generator &&
                context.options.length > 1 &&
                context.options[1].generators
            ) {
                return context.options[1].generators;
            }

            return context.options[0] || "always";
        }
function getConfigForNode(node) {
            if (
                node.generator &&
                context.options.length > 1 &&
                context.options[1].generators
            ) {
                return context.options[1].generators;
            }

            return context.options[0] || "always";
        }
function getConfigForNode ( node ) { if ( node . generator && context . options . length > 1 && context . options [ 1 ] . generators ) { return context . options [ 1 ] . generators ; } return context . options [ 0 ] || "always" ; }
Returns the config option for the given node.
@param {ASTNode} node - A node to get the config for.
@returns {string} The config option.
Returns the config option for the given node .