Make links in stylelint report in bash output clickable
Asked Answered
F

0

6

I am using stylelint and eslint and I just mentioned that it is possible to click on a line in eslint to directly open the file in my IDE and jump to that selected line.

screenshot of eslint

I was wondering if it is possible to add a similar feature to stylelint since this is not possible by default:

screenshot of stylelint

I already tried to fix this, but I cannot find a track that feels good. Can you recommend a way to do this? Is this something that should be changed directly in the source code of stylelint or should it be written as plugin? And if yes, is there any plugin that already modifies messages that I can use as example/reference? Or does this feature already exist and I was just not able to find out how to enable it?

Another idea of myself was to pipe/pass the output of stylelint to another script to then be able to use some regular expressions to replace the lines with hyperlinks like described in Terminal - create hyperlinks, but I think there should be a less hacky way to resolve this.

Looking forward to some tips where I should dig deeper, thank you in advice!

Fastidious answered 25/10, 2021 at 7:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.