Skip to content

Commit

Permalink
fix(@angular/cli): Fixed lint not excluding files when project folder…
Browse files Browse the repository at this point in the history
… name started with a dot
  • Loading branch information
britvik authored and Brocco committed Jan 19, 2018
1 parent 751e6ed commit 52494b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@angular/cli/tasks/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function getFilesToLint(
let programFiles = linter.getFileNames(program);

if (ignore && ignore.length > 0) {
const ignoreMatchers = ignore.map(pattern => new Minimatch(pattern));
const ignoreMatchers = ignore.map(pattern => new Minimatch(pattern, { dot: true }));

programFiles = programFiles
.filter(file => !ignoreMatchers.some(matcher => matcher.match(file)));
Expand Down

0 comments on commit 52494b4

Please sign in to comment.