Skip to content

Commit

Permalink
fix(linter): Check eslint target existence before trying to add check…
Browse files Browse the repository at this point in the history
… to migration.json
  • Loading branch information
Elyahou committed Nov 22, 2022
1 parent f98618b commit 9ab33bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/nx-plugin/src/generators/lint-checks/generator.ts
Expand Up @@ -73,6 +73,10 @@ export function addMigrationJsonChecks(
options.projectName
);

if (!projectIsEsLintEnabled(projectConfiguration)) {
return;
}

const [eslintTarget, eslintTargetConfiguration] =
getEsLintOptions(projectConfiguration);

Expand Down

0 comments on commit 9ab33bf

Please sign in to comment.