This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-11
Channels
- # aleph (7)
- # announcements (5)
- # beginners (58)
- # calva (20)
- # cider (10)
- # clj-kondo (4)
- # cljfx (5)
- # cljsrn (7)
- # clojure (29)
- # clojure-europe (11)
- # clojure-mexico (1)
- # clojure-norway (26)
- # clojure-uk (9)
- # clojurescript (1)
- # cursive (31)
- # datahike (22)
- # datomic (12)
- # duct (3)
- # fulcro (28)
- # helix (35)
- # hyperfiddle (28)
- # lsp (4)
- # malli (8)
- # midje (3)
- # music (2)
- # nbb (9)
- # nrepl (20)
- # off-topic (36)
- # polylith (3)
- # shadow-cljs (47)
- # sql (2)
- # testing (7)
- # vim (17)
- # xtdb (7)
Hi! I would like to lint hiccup that exists within cljs or cljc source code. A contrived example of a linting target would be:
[:div {:id :foo} {:class :bar} "hi"]
The linting logic would surface that there are maps at index 1 and 2 in the hiccup vector, which might be helpful in the case the 2nd map is, in fact, a mistake.
Wondering if something (similar) already exist for this? If not, is clj-kondo Hooks the right approach to roll my own solution? If so does anyone know of some examples that might be helpful?