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
  • Loading branch information
meeroslav committed Jan 17, 2023
1 parent e0bd338 commit 48fdb4b
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 48fdb4b

Please sign in to comment.