rules/helper.js
function disallowNodeType(type) {

  return function() {

    function check(node, reporter) {

      if (is(node, type)) {
        reporter.report(node.id, 'Element has disallowed type <' + type + '>');
      }
    }

    return {
      check
    };

  };

}
function disallowNodeType(type) {

  return function() {

    function check(node, reporter) {

      if (is(node, type)) {
        reporter.report(node.id, 'Element has disallowed type <' + type + '>');
      }
    }

    return {
      check
    };

  };

}
function disallowNodeType ( type ) { return function ( ) { function check ( node , reporter ) { if ( is ( node , type ) ) { reporter . report ( node . id , 'Element has disallowed type <' + type + '>' ) ; } } return { check } ; } ; }
Create a checker that disallows the given element type.

@param {String} type

@return {Function} ruleImpl
Create a checker that disallows the given element type .