simpleui icon indicating copy to clipboard operation
simpleui copied to clipboard

Fix some clj-kondo linting warnings for defcomponent / provide clj-kondo config OOTB

Open ieugen opened this issue 2 years ago • 0 comments

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}}}

ieugen avatar Aug 08 '22 18:08 ieugen