lint(html) {
    let issues = [];
    html = rawIgnoreRegex(html, this.config.config);

    const dom = this.parse_fn(html);
    const activated_rules = Object.keys(this.config.activatedRules)
      .map(name => this.config.getRule(name));
    const domIssues = flatten(this.lintDom(activated_rules, dom));
    issues = issues.concat(domIssues, this.resetRules());

    if (this.config.config.maxerr) {
      issues = issues.slice(0, this.config.config.maxerr); // REMOVE: After v1.
    }

    return Promise.all(issues).then(function(resolved) {
      return flatten(resolved);
    });
  }
/**
   * Lints the HTML with the options supplied in the environments setup.
   * @param {String} html - the html as a string to lint.
   */
Lints the HTML with the options supplied in the environments setup.
@param {String} html - the html as a string to lint.
Lints the HTML with the options supplied in the environments setup . @param { String } html - the html as a string to lint .
lint(html) {
    let issues = [];
    html = rawIgnoreRegex(html, this.config.config);
    const dom = this.parse_fn(html);
    const activated_rules = Object.keys(this.config.activatedRules)
      .map(name => this.config.getRule(name));
    const domIssues = flatten(this.lintDom(activated_rules, dom));
    issues = issues.concat(domIssues, this.resetRules());
    if (this.config.config.maxerr) {
      issues = issues.slice(0, this.config.config.maxerr); 
    }
    return Promise.all(issues).then(function(resolved) {
      return flatten(resolved);
    });
  }
lint ( html ) { let issues = [ ] ; html = rawIgnoreRegex ( html , this . config . config ) ; const dom = this . parse_fn ( html ) ; const activated_rules = Object . keys ( this . config . activatedRules ) . map ( name => this . config . getRule ( name ) ) ; const domIssues = flatten ( this . lintDom ( activated_rules , dom ) ) ; issues = issues . concat ( domIssues , this . resetRules ( ) ) ; if ( this . config . config . maxerr ) { issues = issues . slice ( 0 , this . config . config . maxerr ) ; } return Promise . all ( issues ) . then ( function ( resolved ) { return flatten ( resolved ) ; } ) ; }
Lints the HTML with the options supplied in the environments setup.
Lints the HTML with the options supplied in the environments setup .
// REMOVE: After v1.