From 749aa54ae7e4366f682cb62fcbcb9c068af09f3e Mon Sep 17 00:00:00 2001 From: Franklin Strube Date: Sat, 19 Mar 2016 23:31:50 -0400 Subject: [PATCH] Fix broken htmlhintrc option * fixed the check for htmlhintrc option being a string --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c43d41a..6b6f3f0 100644 --- a/index.js +++ b/index.js @@ -86,7 +86,7 @@ var hint = function(file, options) { if(options.patterns) { patterns = options.patterns || []; } - if (options.htmlhintrc && options.htmlhintrc === typeof String) { + if (options.htmlhintrc && typeof options.htmlhintrc === 'string') { try { var htmlhintrc = fs.readFileSync(options.htmlhintrc); htmlhintrcRuleset = JSON.parse(htmlhintrc);