Skip to content

Commit 9db19d0

Browse files
committed
fix(plugin-eslint): set default lint file patterns for Nx projects
1 parent b4ed4f3 commit 9db19d0

File tree

1 file changed

+1
-1
lines changed
  • packages/plugin-eslint/src/lib/nx

1 file changed

+1
-1
lines changed

packages/plugin-eslint/src/lib/nx/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function getLintFilePatterns(project: ProjectConfiguration): string[] {
2525
| { lintFilePatterns?: string | string[] }
2626
| undefined;
2727
return options?.lintFilePatterns == null
28-
? []
28+
? [project.root] // lintFilePatterns defaults to ["{projectRoot}"] - https://github.com/nrwl/nx/pull/20313
2929
: toArray(options.lintFilePatterns);
3030
}
3131

0 commit comments

Comments
 (0)