remove tslint package

This commit is contained in:
JAremko 2016-05-11 21:57:37 +03:00 committed by syl20bnr
parent 75754a3a9e
commit 73d48338c8
3 changed files with 2 additions and 25 deletions

View File

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

View File

@ -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.")

View File

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