From 68bee5043ceae9f9715c87dba1f943b3b8388df9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 26 May 2021 16:54:55 -0400 Subject: [PATCH] Fix 'typescript-tide is not a valid syntax checker' error --- modules/lang/javascript/config.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/lang/javascript/config.el b/modules/lang/javascript/config.el index 09c12eaab0d..3aa9e9eefb8 100644 --- a/modules/lang/javascript/config.el +++ b/modules/lang/javascript/config.el @@ -111,8 +111,9 @@ (flycheck-add-mode 'javascript-eslint 'typescript-tsx-mode) (flycheck-add-mode 'typescript-tslint 'typescript-tsx-mode) (unless (featurep! +lsp) - (flycheck-add-next-checker 'typescript-tide '(warning . javascript-eslint) 'append) - (flycheck-add-mode 'typescript-tide 'typescript-tsx-mode)) + (after! tide + (flycheck-add-next-checker 'typescript-tide '(warning . javascript-eslint) 'append) + (flycheck-add-mode 'typescript-tide 'typescript-tsx-mode))) (add-hook! 'typescript-tsx-mode-hook (defun +javascript-disable-tide-checkers-h () (pushnew! flycheck-disabled-checkers