 	      (lambda ()
 		(when (string-match-p "tsx?" (file-name-extension buffer-file-name))
 		  (setup-tide-mode))))
-;; enable typescript-tslint checker
-    (flycheck-add-mode 'typescript-tide 'javascript-eslint)
+    (flycheck-add-mode 'typescript-tide 'typescript-tslint)
   )
 
 (custom-set-variables

    (osx-clipboard-mode +1)
    (diminish 'osx-clipboard-mode)))

(use-package apheleia
  :quelpa (apheleia :fetcher github :repo "raxod502/apheleia")
  :config
  (apheleia-global-mode +1))


;; Indentation
(use-package indent-guide
  :config
  (indent-guide-global-mode 1))

;; Show 80-column marker globally
;; (define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))

  :config
  (add-hook 'prog-mode-hook #'rainbow-delimiters-mode))

(use-package kaolin-themes
  :ensure t
  :load-path "themes"
  :config
  (load-theme 'kaolin-eclipse t))

;; icons
(use-package all-the-icons)
