Skip to content

Commit c411734

Browse files
britvikBrocco
authored andcommitted
fix(@angular/cli): Fixed lint not excluding files when project folder name started with a dot
1 parent 65b97c0 commit c411734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/@angular/cli/tasks/lint.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function getFilesToLint(
177177
let programFiles = linter.getFileNames(program);
178178

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

182182
programFiles = programFiles
183183
.filter(file => !ignoreMatchers.some(matcher => matcher.match(file)));

0 commit comments

Comments
 (0)