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))