branch: elpa/flymake-collection
commit 8d765990a6460af48eb7e843f997ac59398093aa
Author: Mohsin Kaleem <mohk...@kisara.moe>
Commit: Mohsin Kaleem <mohk...@kisara.moe>

    hook: Add configurations for new tree-sitter modes
---
 src/flymake-collection-hook.el | 51 ++++++++++++++++++++++--------------------
 1 file changed, 27 insertions(+), 24 deletions(-)

diff --git a/src/flymake-collection-hook.el b/src/flymake-collection-hook.el
index e269340c30..c9997ec491 100644
--- a/src/flymake-collection-hook.el
+++ b/src/flymake-collection-hook.el
@@ -36,26 +36,25 @@
 
 ;;;###autoload
 (defcustom flymake-collection-config
-  '((python-mode
-     flymake-collection-pycodestyle
-     (flymake-mypy :disabled t)
-     (flymake-collection-pylint :disabled t)
-     (flymake-collection-flake8 :disabled t)
-     (flymake-collection-ruff :disabled t))
-    (awk-mode flymake-collection-awk-gawk)
-    (c-mode
-     flymake-collection-clang
-     (flymake-collection-gcc :disabled t))
-    (c++-mode
-     flymake-collection-clang
-     (flymake-collection-gcc :disabled t))
-    (haskell-mode flymake-collection-hlint)
-    (js-mode flymake-collection-eslint)
-    (js2-mode flymake-collection-eslint)
-    (typescript-mode flymake-collection-eslint)
-    (json-mode
-     flymake-collection-jq
-     (flymake-collection-jsonlint :disabled t))
+  '(((python-mode python-ts-mode) .
+     (flymake-collection-pycodestyle
+      (flymake-mypy :disabled t)
+      (flymake-collection-pylint :disabled t)
+      (flymake-collection-flake8 :disabled t)
+      (flymake-collection-ruff :disabled t)))
+    (awk-mode . (flymake-collection-awk-gawk))
+    ((c-mode c-ts-mode) .
+     (flymake-collection-clang
+      (flymake-collection-gcc :disabled t)))
+    ((c++-mode c++-ts-mode) .
+     (flymake-collection-clang
+      (flymake-collection-gcc :disabled t)))
+    (haskell-mode . (flymake-collection-hlint))
+    ((js-mode js2-mode typescript-mode typescript-ts-mode) .
+     (flymake-collection-eslint))
+    ((json-mode json-ts-mode) .
+     (flymake-collection-jq
+      (flymake-collection-jsonlint :disabled t)))
     (less-mode flymake-collection-less)
     (markdown-mode
      flymake-collection-markdownlint
@@ -68,11 +67,15 @@
     (sql-mode
      flymake-collection-sql-lint
      (flymake-collection-sqlint :disabled t))
-    (ruby-mode flymake-collection-rubocop)
+    ((ruby-mode ruby-ts-mode) .
+     (flymake-collection-rubocop))
     ;; (hledger-mode flymake-collection-hledger)
-    (sh-mode flymake-collection-shellcheck)
-    (yaml-mode flymake-collection-yamllint)
-    (web-mode flymake-collection-html-tidy)
+    ((sh-mode bash-ts-mode) .
+     (flymake-collection-shellcheck))
+    ((yaml-mode yaml-ts-mode) .
+     flymake-collection-yamllint)
+    ((web-mode html-ts-mode) .
+     (flymake-collection-html-tidy))
     (org-mode flymake-collection-proselint)
     (notmuch-message-mode flymake-collection-proselint)
     (nxml-mode flymake-collection-xmllint))

Reply via email to