Skip to content

Commit 749aa54

Browse files
committed
Fix broken htmlhintrc option
* fixed the check for htmlhintrc option being a string
1 parent 7f40c02 commit 749aa54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var hint = function(file, options) {
8686

8787
if(options.patterns) { patterns = options.patterns || []; }
8888

89-
if (options.htmlhintrc && options.htmlhintrc === typeof String) {
89+
if (options.htmlhintrc && typeof options.htmlhintrc === 'string') {
9090
try {
9191
var htmlhintrc = fs.readFileSync(options.htmlhintrc);
9292
htmlhintrcRuleset = JSON.parse(htmlhintrc);

0 commit comments

Comments
 (0)