diff --git a/layers/+lang/typescript/README.org b/layers/+lang/typescript/README.org index 63972e729..acdfc6992 100644 --- a/layers/+lang/typescript/README.org +++ b/layers/+lang/typescript/README.org @@ -34,7 +34,7 @@ You will need =node.js v0.12.0= or greater If you want linting run: =npm install -g typescript= =npm install -g tslint= -If you want formatting run: =npm install -g typescript-formatter= +If you want to use typescript-formatter for formatting run: =npm install -g typescript-formatter= For best results, make sure that the =auto-completion= (company) and =html= layers are enabled. @@ -47,14 +47,6 @@ file. (setq-default dotspacemacs-configuration-layers '(typescript)) #+END_SRC -If you don't need linting, you can use: - -#+BEGIN_SRC emacs-lisp -(setq-default dotspacemacs-configuration-layers '( - (typescript :variables - typescript-use-tslint nil))) -#+END_SRC - If you need formatting on save: #+BEGIN_SRC emacs-lisp diff --git a/layers/+lang/typescript/config.el b/layers/+lang/typescript/config.el index 008a170cd..2d92a7940 100644 --- a/layers/+lang/typescript/config.el +++ b/layers/+lang/typescript/config.el @@ -1,6 +1,3 @@ -(defvar typescript-use-tslint t - "Use flycheck linter if not nil.") - (defvar typescript-fmt-on-save nil "Run formatter on buffer save.") diff --git a/layers/+lang/typescript/packages.el b/layers/+lang/typescript/packages.el index ff47d570b..802462db6 100644 --- a/layers/+lang/typescript/packages.el +++ b/layers/+lang/typescript/packages.el @@ -9,8 +9,7 @@ ;; ;;; License: GPLv3 -(setq typescript-packages '(flycheck-typescript-tslint - tide +(setq typescript-packages '(tide typescript-mode web-mode)) @@ -33,12 +32,6 @@ (when (configuration-layer/package-usedp 'company) (company-mode-on))))) :config (progn - - (when typescript-use-tslint - (use-package flycheck-typescript-tslint) - (flycheck-add-next-checker 'typescript-tide - 'typescript-tslint 'append)) - (spacemacs/declare-prefix-for-mode 'typescript-mode "mg" "goto") (spacemacs/declare-prefix-for-mode 'typescript-mode "mh" "help") (spacemacs/declare-prefix-for-mode 'typescript-mode "mn" "name") @@ -83,8 +76,3 @@ (spacemacs/set-leader-keys-for-major-mode 'typescript-mode "=" 'typescript/format "sp" 'typescript/open-region-in-playground)))) - -(when typescript-use-tslint - (defun typescript/init-flycheck-typescript-tslint () - (use-package flycheck-typescript-tslint - :defer t)))