Hey, is the current intention for users of clj-kondo to copy and paste the hook definitions of libraries into each project using those definitions? E.g copying hooks/slingshot if using Slingshot?
@charliebriggs Currently, yes
If you found something in the READMEs confusing about this, please let me know and I'll change it
great, I think it would help if that was more explicit in the Libraries
section, i.e. directly calling out the process of adding them for now
something like:
> Configuration for external libraries can be setup in each clj-kondo project by copying the required library configuration into the .clj-kondo
directory. See libraries
for a collection of existing configurations
I have wondered if using a different name like reference-config
or something would be clearer
PR welcome for the text change btw
cool, is there any way for libraries to package these configurations currently which can then be picked up by clj-kondo, or is something like that on the roadmap?
@charliebriggs It is something I've been thinking about and there is an issue for it. https://github.com/borkdude/clj-kondo/issues/559 It's just not that clear cut yet.
great, thanks for your help!
Right now I recommend writing a script that merges and copies all your favorite configs into the right places
Babashka can be used for this if you want to do it in Clojure
clj-kondo exposes a function called merge-configs to merge clj-kondo configuration