Fork me on GitHub
#clj-kondo
<
2023-03-31
>
DrLjótsson22:03:23

I am using Calva and am writing a function that will wrap re-frame/reg-sub . Calva recognizes unused re-frame subs and clicking on the keyword in (re-frame/subscribe [:foo/bar]brings be to the sub definition. I guess this is powered by clj-kondo? Is there a way to tell clj-kondo that my homegrown reg-sub function is also a re-frame subscription so it behaves in the same way? I tried :lint-as but that did not work.

DrLjótsson10:04:25

Nevermind! I botched my :lint-as declaration. It works as expected.

borkdude18:04:00

oh thanks for confirming!