This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-18
Channels
- # adventofcode (12)
- # asami (2)
- # babashka (95)
- # beginners (17)
- # biff (5)
- # calva (1)
- # clojure (90)
- # clojure-europe (15)
- # clojure-nl (1)
- # clojure-norway (8)
- # clojure-uk (6)
- # clojuredesign-podcast (2)
- # clojurescript (34)
- # clr (1)
- # community-development (42)
- # cursive (11)
- # data-science (1)
- # datomic (13)
- # graalvm (5)
- # hoplon (2)
- # hyperfiddle (32)
- # off-topic (1)
- # pathom (6)
- # releases (1)
- # shadow-cljs (25)
- # squint (4)
- # xtdb (10)
Is there something extra I Need to download to get pathom3 working with clj-kondo? I get a lot of linting errors around the resolver symbols
Look into configuration for clj-kondo
you'll add something like
{:lint-as {com.wsscode.pathom3.connect.operation/defmutation clojure.core/defn
com.wsscode.pathom3.connect.operation/defresolver clojure.core/defn}}
to the configuration for it. So no, nothing extra to download from Pathom3 - just some configuration you need to specify for clj-kondo on how to handle those macro definitionsPathom 3 does provide those, you ask kondo to download lint config from deps using: clj-kondo --lint "$(clojure -Spath)" --copy-configs --skip-lint
here is the config provided by Pathom: https://github.com/wilkerlucio/pathom3/blob/main/resources/clj-kondo.exports/com.wsscode/pathom3/config.edn
more about it on clj-kondo docs: https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#importing
Seems like this was done automatically for me on my mac but not windows. I'll have to take a look as to why