Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 787409b

Browse files
authored
Merge pull request #236 from AtomLinter/arcanemagus/update-deps
Update dependencies
2 parents 6fdffdb + adcf67f commit 787409b

File tree

3 files changed

+1878
-1333
lines changed

3 files changed

+1878
-1333
lines changed

lib/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ const loadDeps = () => {
5656
({ dirname } = require('path'));
5757
}
5858
if (!HTMLHint) {
59-
({ HTMLHint } = require('htmlhint'));
59+
const htmlhintModule = require('htmlhint');
60+
HTMLHint = new htmlhintModule.HTMLHint();
61+
Object.keys(htmlhintModule.HTMLRules).forEach((rule) => {
62+
HTMLHint.addRule(htmlhintModule.HTMLRules[rule]);
63+
});
6064
}
6165
if (!findAsync || !generateRange) {
6266
({ findAsync, generateRange } = require('atom-linter'));

0 commit comments

Comments
 (0)