This is what I have in my
(use-package js2-mode :mode "\\.jsx?\\'" :init (setq js2-highlight-level 3) (add-hook 'js2-mode-hook (lambda () (progn (auto-revert-mode) (setq auto-revert-interval 0.1)))) :ensure t)
Here's an excerpt from an actual screenshot:
x pointed to by the red arrow is a syntax error. Unfortunately the same color is also chosen for variable
rv (pointed to by the green arrow) which is not a syntax error. The syntax error is indeed detected as when I place the cursor over
x I see in the mini-buffer:
Undeclared variable or function 'x'
How can I make the syntax errors more conspicuous by means of color, boldness or underlining ? To draw visual attention I was thinking maybe red on white background (for added contrast) but I have no idea how to achieve that.