Fork me on GitHub
#clj-kondo
<
2023-07-26
>
sergey.shvets17:07:19

Hi, is there a way to ignore a specific form completely? I'm trying to disable linting for shadow.cljs.modern.defclass?

2
borkdude17:07:07

yes:

$ clj-kondo --lint - --config '{:config-in-call {shadow.cljs.modern/defclass {:ignore true}}}' <<< "(require '[shadow.cljs.modern :as m]) (m/defclass 1 2 x y z)"
linting took 39ms, errors: 0, warnings: 0
but for defclass you want at least the first symbol to act like a known var, so in this case:
{:lint-as {shadow.cljs.modern/defclass clj-kondo.lint-as/def-catch-all}}}
is a better fit

sergey.shvets17:07:51

AMAZING! Thank you very much!

👍 2