simpleui
simpleui copied to clipboard
Fix some clj-kondo linting warnings for defcomponent / provide clj-kondo config OOTB
Hi,
Since ctmx is using macros - this causes clj-kondo to complain since it does not know the shape. We can use :lint-as ans some other tricks to avoid seeing the complains. A clj-kondo configuration can be shipped with the library so all users can benefit. https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#exporting-and-importing-configuration
In .clj-kondo/config.edn
{:lint-as {ctmx.core/defcomponent clojure.core/fn}}
Or configure in each ns
(ns my-ns
{:clj-kondo/config '{:lint-as {ctmx.core/defcomponent clojure.core/fn}}}