   (add-hook 'web-mode-hook
             #'(lambda ()
                 (my-load-flycheck)
-                ;; TODO: deal with this
-                (flycheck-add-mode 'typescript-tslint 'web-mode)
 
                 (my-load-company)
+
                 (when (and (require 'company-tern nil t)
                            (require 'company-web-html nil t))
                   (set (make-local-variable 'company-backends)


;; Web stuff
(use-package web-mode
  :functions web-mode-language-at-pos
  :mode ("\\.tsx\\'"
         "\\.handlebars\\'"


                (when (and (string-equal "tsx" (file-name-extension buffer-file-name))
                           (featurep 'tide))
                  (flycheck-add-mode 'typescript-tslint 'web-mode)
                  (tide-setup)
                  (tide-hl-identifier-mode 1)))))

;; TODO: deal with tsx and jsx classnames, and fix emmet.el's camelCase mapping
;; in the snippets
(use-package emmet-mode
  :after web-mode
  :config
