This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-09
Channels
- # announcements (23)
- # asami (25)
- # babashka (38)
- # beginners (53)
- # calva (17)
- # clara (5)
- # clj-commons (1)
- # clj-kondo (18)
- # clojure (11)
- # clojure-europe (17)
- # clojure-france (1)
- # clojure-germany (5)
- # clojure-nl (2)
- # clojure-sg (4)
- # conjure (3)
- # deps-new (6)
- # fulcro (16)
- # off-topic (46)
- # pedestal (11)
- # react (2)
- # reagent (5)
- # reclojure (7)
- # rewrite-clj (1)
- # sci (18)
- # shadow-cljs (75)
- # sql (3)
- # xtdb (12)
Currently there is not a specific rule for non deterministic version to let you do this in config. There is only one global deps.edn rule which gives similar output to what the clojure CLI itself spits out
Is it possible for a library to export a config.edn (with :lint-as
configs) such that consumers of the lib will automatically add in the lib's configs to the application developer's project?
@john Yes: https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#exporting-and-importing-configuration
It's almost automatic, you still have to opt into the config as a user in your config
@borkdude do you know if Clojure-LSP adds --copy-configs --dependencies
, or some equivalent, when it calls clj-kondo?
Playing with it in Calva, from a gitpod, I actually see the config getting populated in the project's .clj-kondo/net.clojars.john
directory, with the correct :lint-as
map in there. But I'm still seeing errors in the actual source files.
yes, lsp adds this. but you should opt in to that config in :config-paths
yourself, always
I put {:config-paths ["clj-kondo/injest"]}
in my local config.edn. Maybe I'm exporting the directory structure wrong? I based it off the fulcro repo:
https://github.com/johnmn3/injest/tree/main/src/clj-kondo/clj-kondo.exports/net.clojars.john/injest