Fork me on GitHub
#clj-kondo
<
2024-05-20
>
borkdude16:05:44

I'm working on changing how exported configs are imported. Right now they are written at the root of the .clj-kondo dir, but I want to write them in .clj-kondo/.imports instead. This way it's easier to distinguish between your own stuff and stuff that is imported. I wonder if: • The location, .imports , should be configurable, or even, if this should be opt-in and the old behavior should remain intact • Existing configs should be auto-migrated perhaps (since you would have already imported configs in the root dir)

borkdude16:05:57

Reaction in 🧵

borkdude16:05:00

Perhaps opt-in would make sense

borkdude16:05:12

Another option would be: if the .clj-kondo dir has no already existing imports, .imports is the default import dir

borkdude16:05:19

else the old behavior will remain in place

borkdude16:05:37

yeah I like that

cjohansen17:05:21

I like that as well

cjohansen17:05:16

Do you really need the dot? Since we're already inside a dot directory, I think it will be slightly easier to navigate if imports doesn't start with a dot

👏 1
borkdude17:05:53

Makes sense, I’ll drop the dot

👍 4
borkdude13:05:07

alright, merged

🎉 3
Alexander Kouznetsov15:05:24

This is a good improvement, thanks for doing it!