pathom

Dallas Surewood 2023-12-18T02:39:38.397359Z

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

wilkerlucio 2023-12-19T15:38:04.672349Z

Pathom 3 does provide those, you ask kondo to download lint config from deps using: clj-kondo --lint "$(clojure -Spath)" --copy-configs --skip-lint

👀 1
wilkerlucio 2023-12-19T15:38:33.507909Z

here is the config provided by Pathom: https://github.com/wilkerlucio/pathom3/blob/main/resources/clj-kondo.exports/com.wsscode/pathom3/config.edn

wilkerlucio 2023-12-19T15:39:52.033689Z

more about it on clj-kondo docs: https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#importing

Dallas Surewood 2023-12-19T15:53:13.316849Z

Seems like this was done automatically for me on my mac but not windows. I'll have to take a look as to why

Ben Wadsworth 2023-12-18T14:42:49.570349Z

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 definitions

🙌 1