Skip to content

Commit a5745df

Browse files
jbean96FrozenPandaz
authored andcommittedAug 23, 2023
fix(linter): fixes usages of lintProjectGenerator without eslintFilePatterns provided (#18741)
(cherry picked from commit 34f4148)
1 parent d3569c6 commit a5745df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/linter/src/generators/lint-project/lint-project.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export async function lintProjectGenerator(
5050
});
5151
const projectConfig = readProjectConfiguration(tree, options.project);
5252

53-
const lintFilePatterns = options.eslintFilePatterns;
53+
const lintFilePatterns = options.eslintFilePatterns ?? [];
5454
if (isBuildableLibraryProject(projectConfig)) {
5555
lintFilePatterns.push(`${projectConfig.root}/package.json`);
5656
}

0 commit comments

Comments
 (0)
Please sign in to comment.