Skip to content

Commit

Permalink
fix(linter): fixes usages of lintProjectGenerator without eslintFileP…
Browse files Browse the repository at this point in the history
…atterns provided (#18741)

(cherry picked from commit 34f4148)
  • Loading branch information
jbean96 authored and FrozenPandaz committed Aug 23, 2023
1 parent d3569c6 commit a5745df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
Expand Down

0 comments on commit a5745df

Please sign in to comment.