function lint(node, config, { report }) {
  if (is_tag_node(node) === false || node.name !== "head") {
    return;
  }
  const titles = node.children.filter(child => child.name === "title");
  const has_title_with_children = titles.some((title) => {
    return title.children.length > 0;
  });

  if (has_title_with_children === false) {
    report({
      code: "E027",
      position: node.open.loc
    });
  }
}
// TODO: Should return an error if title does not have a text node has a child
Should return an error if title does not have a text node has a child
Should return an error if title does not have a text node has a child
function lint(node, config, { report }) {
  if (is_tag_node(node) === false || node.name !== "head") {
    return;
  }
  const titles = node.children.filter(child => child.name === "title");
  const has_title_with_children = titles.some((title) => {
    return title.children.length > 0;
  });
  if (has_title_with_children === false) {
    report({
      code: "E027",
      position: node.open.loc
    });
  }
}
function lint ( node , config , { report } ) { if ( is_tag_node ( node ) === false || node . name !== "head" ) { return ; } const titles = node . children . filter ( child => child . name === "title" ) ; const has_title_with_children = titles . some ( ( title ) => { return title . children . length > 0 ; } ) ; if ( has_title_with_children === false ) { report ( { code : "E027" , position : node . open . loc } ) ; } }
TODO: Should return an error if title does not have a text node has a child
TODO : Should return an error if title does not have a text node has a child