Skip to content

Commit

Permalink
fix: include lines in path
Browse files Browse the repository at this point in the history
  • Loading branch information
OzakIOne committed Oct 13, 2023
1 parent 3ea1c74 commit 6a0337a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ const plugin: Plugin = function plugin(this: Processor): Transformer {

const customPath = posixPath(path.relative(process.cwd(), file.path));

return logger.interpolate`We found a potential error in your documentation name=${unusedDirective.name} path=${customPath}:${positionMessage}`;
return logger.interpolate`We found a potential error in your documentation name=${
unusedDirective.name
} path=${`${customPath}:${positionMessage}`}`;
})
.join('\n');
logger.warn(warningMessage);
Expand Down

0 comments on commit 6a0337a

Please sign in to comment.