How to use the htmlhint.HTMLHint.rules function in htmlhint

To help you get started, we’ve selected a few htmlhint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bezoerb / gulp-htmlhint / test / main.js View on Github external
it('should add a htmlhint rule', () => {
    const fakeRule = {
      id: 'foo',
      description: 'bar',
      init() {}
    };
    htmlhint.addRule(fakeRule);
    HTMLHint.rules[fakeRule.id].should.equal(fakeRule);
  });
});