This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-09
Channels
- # announcements (14)
- # babashka (2)
- # beginners (33)
- # calva (25)
- # cider (4)
- # clj-kondo (14)
- # clojure (11)
- # cursive (4)
- # datomic (3)
- # fulcro (53)
- # gratitude (3)
- # integrant (2)
- # leiningen (7)
- # lsp (10)
- # malli (34)
- # missionary (3)
- # off-topic (71)
- # other-languages (18)
- # pathom (1)
- # practicalli (2)
- # releases (1)
- # ring (4)
- # spacemacs (1)
- # vim (14)
where should I put the malli (library) clj-kondo file so it gets picked up for library users? Have two configs locally, one for the lib and another as the user schemas for the project (generated)
.clj-kondo
metosin
malli
config.edn ;; this one
malli-types
config.edn
currently:
{:lint-as {malli.experimental/defn schema.core/defn}}
:linters {:unresolved-symbol {:exclude [(malli.core/=>)]}}}
could merge those into the generated file, but if there is a way not to do it, Iām all šs.
@U055NJ5CC do you want to export a configuration?
Check these docs: https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#exporting-and-importing-configuration List of examples: https://github.com/clj-kondo/clj-kondo/issues/1383 Let me know if you get stuck.
tl;r:
you have to make a resources/clj-kondo.exports/metosin/malli
directory and that directory contains the exported config.edn
and you can refer to your own exported config (as a developer of the library) in .clj-kondo/config.edn
with :config-paths [".../resources/clj-kondo.exports/metosin/malli"]
as a user of the library, clj-kondo will copy the configuration when you lint the classpath with:
clj-kondo --lint $(clojure -Spath) --dependencies --copy-configs