From 34f414817f70e6487ef081724f29695d0e8343a3 Mon Sep 17 00:00:00 2001 From: Joshua Bean Date: Tue, 22 Aug 2023 12:04:48 -0700 Subject: [PATCH] fix(linter): fixes usages of lintProjectGenerator without eslintFilePatterns provided (#18741) --- packages/linter/src/generators/lint-project/lint-project.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/linter/src/generators/lint-project/lint-project.ts b/packages/linter/src/generators/lint-project/lint-project.ts index a7fc9abdf4cea..0b517238189ed 100644 --- a/packages/linter/src/generators/lint-project/lint-project.ts +++ b/packages/linter/src/generators/lint-project/lint-project.ts @@ -50,7 +50,7 @@ export async function lintProjectGenerator( }); const projectConfig = readProjectConfiguration(tree, options.project); - const lintFilePatterns = options.eslintFilePatterns; + const lintFilePatterns = options.eslintFilePatterns ?? []; if (isBuildableLibraryProject(projectConfig)) { lintFilePatterns.push(`${projectConfig.root}/package.json`); }