   (add-hook 'python-mode-hook 'flycheck-mode)
   (add-hook 'html-mode-hook 'flycheck-mode)
   (add-hook 'web-mode-hook 'flycheck-mode)
-  (add-hook 'js-mode-hook 'flycheck-mode))
+  (add-hook 'js-mode-hook 'flycheck-mode)
+  (add-hook 'js2-mode-hook 'flycheck-mode))
 
 ;; Markdown mode
 (when (require 'markdown-mode nil t)

                 'emacs-lisp-mode-hook
                 'c-mode-common-hook
                 'js-mode-hook
                 'sh-mode-hook
                 'sgml-mode-hook
                 'nxml-mode-hook

  (add-hook 'nxml-mode-hook 'emmet-mode))

;; js-mode
(add-to-list 'auto-mode-alist '("\\.js\\'" . js-jsx-mode))

;; FlyCheck
(when (or (require 'flycheck-mypy nil t)
