(add-hook
 'typescript-mode-hook
 (lambda ()
  ;; Activate auto-fill-mode.
  (set-fill-column 100)
  (auto-fill-mode t)
  ;; Enable Flyspell.
  (flyspell-prog-mode)
  ;; Make enter indent.
  (local-set-key (kbd "RET") 'newline-and-indent)
  ;; Set indent level.
  (defvar typescript-indent-level)
  (setq typescript-indent-level 2)
  ;; Clean whitespace on save.
  (add-hook 'before-save-hook 'whitespace-cleanup nil t)
  ;; Allow movement between subwords.
  (subword-mode 1)
  (require 'diminish)
  (diminish 'subword-mode)))

(add-hook
 'typescript-mode-hook
 (lambda ()
   ;; Activate auto-fill-mode.
   (set-fill-column 100)
   (auto-fill-mode t)
   ;; Enable Flyspell.
   (flyspell-prog-mode)
   ;; Disable eslint
   (defvar flycheck-disabled-checkers)
   (setq-local flycheck-disabled-checkers
               (cons 'javascript-eslint flycheck-disabled-checkers))
   ;; Make enter indent.
   (local-set-key (kbd "RET") 'newline-and-indent)
   ;; Set indent level.
   (defvar typescript-indent-level)
   (setq typescript-indent-level 2)
   ;; Clean whitespace on save.
   (add-hook 'before-save-hook 'whitespace-cleanup nil t)
   ;; Allow movement between subwords.
   (subword-mode 1)
   (require 'diminish)
   (diminish 'subword-mode)))

Disable eslint for typescript files
Disable eslint for typescript files

kaidadragonfly/.emacs