                        (goto-char (match-beginning 1))
                        (not (sp-point-in-string-or-comment)))))
               'rjsx-mode)
-        magic-mode-alist)
-  :config
-  (add-hook 'rjsx-mode-hook
-            #'(lambda ()
-                ;; jshint doesn't really know how to deal with jsx
-                (push 'javascript-jshint flycheck-disabled-checkers))))
+        magic-mode-alist))
 
 (use-package coffee-mode
   :mode "\\.coffee$"

  (add-hooks-pair 'js2-mode
                  '(flycheck-mode
                    rainbow-delimiters-mode))
  (sp-with-modes '(js2-mode rjsx-mode)
    (sp-local-pair "/* " " */" :post-handlers '(("| " "SPC")))))


  (autoload 'sp-with-modes "smartparens")

  (eval-when-compile
    (defvar flycheck-disabled-checkers)
    (defvar js2-skip-preprocessor-directives)
    (defvar js2-highlight-external-variables)
    (defvar js2-mode-show-parse-errors))
