Skip to content

Commit

Permalink
fix(linter): wildcard sourceTag should be respected for banned imports (
Browse files Browse the repository at this point in the history
#14418)

(cherry picked from commit 2b23963)
  • Loading branch information
meeroslav authored and FrozenPandaz committed Jan 17, 2023
1 parent 00336d8 commit 17d9ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-nx/src/utils/runtime-lint-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export function hasBannedImport(
tags = [c.sourceTag];
}

return tags.every((t) => (source.data.tags || []).includes(t));
return tags.every((t) => hasTag(source, t));
});
return depConstraints.find((constraint) =>
isConstraintBanningProject(target, constraint)
Expand Down

0 comments on commit 17d9ce8

Please sign in to comment.