Skip to content

Commit 58542a0

Browse files
jacobparisericallam
authored andcommitted
fix: simplify message when export map is needed
1 parent 0207778 commit 58542a0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/eslint-plugin/lib/rules/no-trigger-core-import.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,13 @@ module.exports = {
268268
data: {
269269
importSource,
270270
name: node.specifiers.map((spec) => spec.local.name).join(", "),
271-
resolvedPath: Array.from(new Set(specifierFixes.map((fix) => fix.path))).join(
272-
", "
273-
),
271+
resolvedPath: Array.from(
272+
new Set(
273+
specifierFixes
274+
.filter((fix) => !allowedBarrelFiles.includes(fix.path))
275+
.map((fix) => fix.path)
276+
)
277+
).join(", "),
274278
},
275279
});
276280
}

0 commit comments

Comments
 (0)