   (add-hooks-pair 'js2-mode
                   '(flycheck-mode
                     rainbow-delimiters-mode))
+
+  (add-hook 'js2-mode-hook
+            #'(lambda ()
+                ;; Prefer eslint
+                (push 'javascript-jshint flycheck-disabled-checkers)))
+
   (sp-with-modes '(js2-mode rjsx-mode)
     (sp-local-pair "/* " " */" :post-handlers '(("| " "SPC")))))
 

            "C-d" '(nil))
  :preface
  (autoload 'sp-point-in-string-or-comment "smartparens")

  (eval-when-compile
    (defvar flycheck-disabled-checkers))
  :init
  ;; Auto-detect JSX file
  (push (cons (lambda ()

                       (goto-char (match-beginning 1))
                       (not (sp-point-in-string-or-comment)))))
              'rjsx-mode)
        magic-mode-alist))

(use-package coffee-mode
  :mode "\\.coffee$"
