The @codemirror/lint package can’t do this. But it would be possible to write an extension that uses widget decorations at the end of lines to get this effect. The Chrome devtools do something similar to show the values of variables in the code when debugging.