This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-03
Channels
- # announcements (1)
- # babashka (31)
- # babashka-sci-dev (53)
- # beginners (33)
- # calva (54)
- # cider (15)
- # clj-kondo (9)
- # clojure (115)
- # clojure-dev (19)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-norway (78)
- # clojurescript (10)
- # clr (9)
- # community-development (9)
- # core-async (24)
- # cursive (18)
- # datomic (59)
- # emacs (43)
- # figwheel-main (2)
- # fulcro (4)
- # graphql (4)
- # malli (7)
- # meander (12)
- # nbb (14)
- # off-topic (22)
- # polylith (8)
- # re-frame (5)
- # reitit (3)
- # releases (1)
- # shadow-cljs (36)
- # sql (1)
- # tools-build (23)
- # xtdb (13)
Is anyone aware of a clj-kondo hook for Plumatic Schema's defn
?
(s/defn stamped-names :- StampedNames
[names :- [s/Str]]
(StampedNames. (str (System/currentTimeMillis)) names))
Nevermind, upgrading to the latest version fixed it for me.
Latest version of schema that is
I'm not sure what the problem was since schema.core/defn
is supported by default in clj-kondo
You're right. I’m new to clj-kondo... I don't use schema.core/defn
itself, but I have my own macro with the same argument syntax. So I thought that I needed to locate the hook for schema.core/defn
to apply it to my macro. But then I just tried :lint-as
and it worked fine.
Is there a way to elide warnings from stuff like ["@heroicons/react/24/outline" :refer [XMarkIcon Bars3BottomLeftIcon MagnifyingGlassIcon]]
and its usages?
Edit: Sorry, Kondo is not complaining, Cursive is. 😅