From a9c2f16bee97d4fcb30c011231bfbe51936d0ece Mon Sep 17 00:00:00 2001 From: Rajhans Jadhao Date: Fri, 26 Jul 2024 00:11:59 +0530 Subject: [PATCH] fix(linter): checking command is specified (#26908) --- packages/eslint/src/generators/lint-project/lint-project.ts | 1 + 1 file changed, 1 insertion(+) 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;