function lint(node, format, { report, global_config }) {
  if (is_tag_node(node) === false || has_non_empty_attribute(node, "class") === false) {
    return [];
  }
  // const format = options[this.name] || options["id-class-style"];
  if (format === "none") {
    return [];
  }
  const class_attribute = attribute_value(node, "class");
  const classes = filterClasses(get_classes(class_attribute), global_config);

  classes.filter(_class => !match_format(format, _class))
    .forEach(_class => report({
      code: "E011",
      position: class_attribute.loc, // should be the location of the class and not the class_attribute
      meta: {
        data: {
          attribute: "class",
          format: format,
          value: _class
        }
      }
    }));
}
// Deal with class attribute with no value (<div class>)
Deal with class attribute with no value ()
Deal with class attribute with no value ()
function lint(node, format, { report, global_config }) {
  if (is_tag_node(node) === false || has_non_empty_attribute(node, "class") === false) {
    return [];
  }
  if (format === "none") {
    return [];
  }
  const class_attribute = attribute_value(node, "class");
  const classes = filterClasses(get_classes(class_attribute), global_config);
  classes.filter(_class => !match_format(format, _class))
    .forEach(_class => report({
      code: "E011",
      position: class_attribute.loc, 
      meta: {
        data: {
          attribute: "class",
          format: format,
          value: _class
        }
      }
    }));
}
function lint ( node , format , { report , global_config } ) { if ( is_tag_node ( node ) === false || has_non_empty_attribute ( node , "class" ) === false ) { return [ ] ; } if ( format === "none" ) { return [ ] ; } const class_attribute = attribute_value ( node , "class" ) ; const classes = filterClasses ( get_classes ( class_attribute ) , global_config ) ; classes . filter ( _class => ! match_format ( format , _class ) ) . forEach ( _class => report ( { code : "E011" , position : class_attribute . loc , meta : { data : { attribute : "class" , format : format , value : _class } } } ) ) ; }
Deal with class attribute with no value (<div class>)
Deal with class attribute with no value ( <div class > )
// const format = options[this.name] || options["id-class-style"]; // should be the location of the class and not the class_attribute