From d32a972d235b85bdfc627f5c17f6fca9d5622848 Mon Sep 17 00:00:00 2001 From: Chris Ewald Date: Wed, 18 Jan 2023 15:49:40 -0500 Subject: [PATCH 1/2] Add an entry for lsp indentation for derived web-modes --- layers/+tools/lsp/packages.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layers/+tools/lsp/packages.el b/layers/+tools/lsp/packages.el index 3ebe3b2f929d..acfd5ebd326f 100644 --- a/layers/+tools/lsp/packages.el +++ b/layers/+tools/lsp/packages.el @@ -49,6 +49,8 @@ (spacemacs/lsp-bind-upstream-keys) (spacemacs/lsp-bind-keys)) (setq lsp-prefer-capf t) + ;; This sets the lsp indentation for all modes derived from web-mode. + (add-to-list 'lsp--formatting-indent-alist '(web-mode . web-mode-markup-indent-offset)) (add-hook 'lsp-after-open-hook (lambda () "Setup xref jump handler" (spacemacs//setup-lsp-jump-handler)))))) From b93afce6b22d6c0f1ae2893964b6a80f3d4e0c3e Mon Sep 17 00:00:00 2001 From: Chris Ewald Date: Thu, 19 Jan 2023 19:12:00 -0500 Subject: [PATCH 2/2] Adding tslint deprecation notice to readme. --- layers/+lang/typescript/README.org | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layers/+lang/typescript/README.org b/layers/+lang/typescript/README.org index d86975394079..218b1d0c4848 100644 --- a/layers/+lang/typescript/README.org +++ b/layers/+lang/typescript/README.org @@ -72,6 +72,9 @@ You can choose either tslint (default) or eslint for linting: typescript-linter 'tslint))) #+END_SRC +Please be advised that tslint is now deprecated, and should only be used for +legacy projects. [[https://github.com/palantir/tslint#tslint][See TSLint Repo for more]]. + ** Pre-requisites You will need =node.js v0.12.0= or greater.