To answer your question:
- Press [Ctrl + ,] to open the Settings.
- Search for statusbarerror.
- Disable the option shown in the Image by unchecking "Show the linter message on the line".
This will prevent the linter message from showing on the whole line while keeping the red squiggly line for hover popups.