~heckyel/emacs-personal

a066539b7f1d1bc762af3cf15d3772a4c1269ce4 — Jesús 2 years ago 79b8ed5
Add tide
2 files changed, 10 insertions(+), 5 deletions(-)

M modules/init-flycheck.el
M modules/init-typescript.el
M modules/init-flycheck.el => modules/init-flycheck.el +9 -5
@@ 17,15 17,19 @@
    :modes (php-mode php+-mode web-mode))

  (add-to-list 'flycheck-checkers 'mix-php)
  ;; enable typescript-tslint checker
  (with-eval-after-load 'tide
    (flycheck-add-mode 'typescript-tslint 'typescript-mode)
    (flycheck-add-mode 'typescript-tide 'typescript-mode))
  ;; Enable for only languages
  :hook
  (c++-mode  . flycheck-mode)
  ;; (emacs-lisp-mode flycheck-mode)
  (html-mode    . flycheck-mode)
  (js-mode      . flycheck-mode)
  (python-mode  . flycheck-mode)
  (web-mode     . flycheck-mode)
  (sh-mode      . flycheck-mode))
  (html-mode         . flycheck-mode)
  (js-mode           . flycheck-mode)
  (python-mode       . flycheck-mode)
  (web-mode          . flycheck-mode)
  (sh-mode           . flycheck-mode))

(provide 'init-flycheck)


M modules/init-typescript.el => modules/init-typescript.el +1 -0
@@ 4,6 4,7 @@

;;; Code:
;; typescript-mode
(use-package tide :ensure t)
(use-package typescript-mode
  :mode ("\\.ts\\'" . typescript-mode))