                           nxml-mode-hook
                           web-mode-hook
                           js-jsx-mode-hook
+                          js2-jsx-mode
+                          rjsx-mode-hook
                           typescript-mode-hook))
             (add-hook hook 'emmet-mode)))
 

  :init
  (defun inflect-string ()
    (interactive)
    (cond ((memq major-mode '(java-mode js-mode js-jsx-mode typescript-mode))
           (string-inflection-java-style-cycle))
          ((memq major-mode '(python-mode ruby-mode))
           (string-inflection-ruby-style-cycle))

                  (flycheck-yamllint-setup)))))

;; JavaScript
(add-to-list 'auto-mode-alist '("\\.js[x]?\\'" . rjsx-mode))
(add-hook 'rjsx-mode-hook
          #'(lambda ()
              (use-package eslintd-fix
                :functions eslintd-fix
                :config
                (eslintd-fix-mode 1)
                (bind-keys :map rjsx-mode-map
                           ("C-c C-f" . eslintd-fix)))

              (use-package tern
