How to make `js2-error` font face underlined in my setup?
as title
Try M-x customize-face.
Doesn't work, here is the content of my custom-set-variables.el after turning on underlined attribute of js2-error font face:
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so
;; Your init file should contain only one such insta
;; If there is more than one, they won't work right.
'(js2-error ((t (:foreground "red" :underline nil))))
It says :underline nil. Fix that!
Still got the issue.
As you can see, console.log('hello') got js-warning face. It's correctly underlined. But qa1('hello') got js-error face but not underlined.

It works for me.
I use Emacs v25.2.2, js2-mode-20180301, on latest debian. I turn off the color theme but still got the problem.
Have you restarted Emacs since changing the Custom file?
Yes, I restarted Emacs several times. I also ran M-x describe-face js2-error and confirmed Underlined is red
Screen
shot of console and GUI emacs: