Skip to content

Commit

Permalink
fix(plugin-eslint): fix default Nx lint patterns - directory not vali…
Browse files Browse the repository at this point in the history
…d for "files" in eslintrc
  • Loading branch information
matejchalk committed Jan 3, 2024
1 parent 48452a4 commit 6865800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-eslint/src/lib/nx/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function getLintFilePatterns(project: ProjectConfiguration): string[] {
| { lintFilePatterns?: string | string[] }
| undefined;
return options?.lintFilePatterns == null
? [project.root] // lintFilePatterns defaults to ["{projectRoot}"] - https://github.com/nrwl/nx/pull/20313
? [`${project.root}/**/*`] // lintFilePatterns defaults to ["{projectRoot}"] - https://github.com/nrwl/nx/pull/20313
: toArray(options.lintFilePatterns);
}

Expand Down

0 comments on commit 6865800

Please sign in to comment.