Skip to content

Commit

Permalink
Fixed jshint#779: Add support for !pattern in the .jshintignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
valueof authored and jugglinmike committed Oct 21, 2014
1 parent 79727c0 commit c8731b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ function loadIgnores(exclude) {
return !!line.trim();
})
.map(function (line) {
if (line[0] === "!")
return "!" + path.resolve(path.dirname(file), line.substr(1).trim());

return path.resolve(path.dirname(file), line.trim());
});
}
Expand Down

0 comments on commit c8731b6

Please sign in to comment.