Skip to content

Commit

Permalink
chore(linter): improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Dec 5, 2023
1 parent ee6beb3 commit 0c55afb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin/src/rules/enforce-module-boundaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,14 +348,14 @@ export default ESLintUtils.RuleCreator(() => ``)<Options, MessageIds>({
);

if (!targetProject) {
// non-project imports cannot be import with relative paths
// non-project imports cannot use relative or absolute paths
if (isRelativePath(imp) || imp.startsWith('/')) {
context.report({
node,
messageId: 'noRelativeOrAbsoluteExternals',
});
}
// If target is found to be part of the workspace (including node internals)
// If target is not found (including node internals) we bail early
return;
}

Expand Down

0 comments on commit 0c55afb

Please sign in to comment.