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);