diff --git a/packages/eslint/src/generators/lint-project/lint-project.ts b/packages/eslint/src/generators/lint-project/lint-project.ts index a0f941dda2b7e..67ab4b5623c2c 100644 --- a/packages/eslint/src/generators/lint-project/lint-project.ts +++ b/packages/eslint/src/generators/lint-project/lint-project.ts @@ -322,6 +322,7 @@ function isMigrationToMonorepoNeeded(tree: Tree, graph: ProjectGraph): boolean { targetConfig.executor ) || (targetConfig.executor === 'nx:run-commands' && + targetConfig.options?.command && targetConfig.options?.command.startsWith('eslint ')) ) { return true;