Skip to content

Commit

Permalink
fix(nx-plugin): ensure project has eslint available before adding lin…
Browse files Browse the repository at this point in the history
…t checks for migrations.json(#13327)

Fixes #13326

(cherry picked from commit 90f2791)
  • Loading branch information
Elyahou authored and FrozenPandaz committed Nov 28, 2022
1 parent 8816c51 commit 8729916
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 8729916

Please sign in to comment.