fix(linter): checking command is specified (#26908)

This commit is contained in:
Rajhans Jadhao 2024-07-26 00:11:59 +05:30 committed by GitHub
parent 3a5e0ddfef
commit a9c2f16bee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;