This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-29
Channels
- # babashka (99)
- # beginners (47)
- # calva (28)
- # cider (5)
- # clj-kondo (5)
- # clojure (2)
- # clojure-europe (11)
- # clojure-gamedev (1)
- # clojure-norway (5)
- # clojurescript (11)
- # clr (82)
- # conjure (13)
- # cursive (3)
- # datahike (1)
- # datomic (28)
- # emacs (11)
- # fulcro (43)
- # honeysql (10)
- # interop (17)
- # keechma (3)
- # pathom (27)
- # re-frame (1)
- # reagent (3)
- # reitit (18)
- # releases (1)
- # shadow-cljs (81)
- # vim (5)
- # xtdb (3)
Is there a built-in hook similar to clj-kondo.lint-as/def-catch-all
which treats the first arg as a var name and lints the rest of the args as if it's a normal function call? I feel like I run into these kinds of macros pretty often and def-catch-all
isn't ideal because it seems to disable most linters. instaparse.core/defparser
and devcards.core/defcard
come to mind. They just take a name and some data.
> which treats the first arg as a var name and lints the rest of the args as if it's a normal function call?
In that case you can use {:lint-as {... clojure.core/def}}