Skip to content

Commit 2b23963

Browse files
authored
fix(linter): wildcard sourceTag should be respected for banned imports (#14418)
1 parent fc9509d commit 2b23963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-plugin-nx/src/utils/runtime-lint-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export function hasBannedImport(
244244
tags = [c.sourceTag];
245245
}
246246

247-
return tags.every((t) => (source.data.tags || []).includes(t));
247+
return tags.every((t) => hasTag(source, t));
248248
});
249249
return depConstraints.find((constraint) =>
250250
isConstraintBanningProject(target, constraint)

0 commit comments

Comments
 (0)