This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-25
Channels
- # announcements (21)
- # babashka (7)
- # beginners (27)
- # calva (7)
- # chlorine-clover (3)
- # cider (1)
- # clerk (21)
- # clojure (24)
- # clojure-europe (28)
- # clojure-finland (3)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-uk (2)
- # clojurescript (13)
- # clr (2)
- # conjure (1)
- # consulting (1)
- # datahike (1)
- # datomic (13)
- # fulcro (3)
- # graalvm (33)
- # gratitude (7)
- # honeysql (7)
- # humbleui (12)
- # hyperfiddle (26)
- # interop (11)
- # introduce-yourself (4)
- # jobs-discuss (8)
- # lsp (26)
- # malli (6)
- # nbb (11)
- # polylith (26)
- # practicalli (1)
- # rdf (3)
- # re-frame (7)
- # reitit (10)
- # releases (2)
- # shadow-cljs (1)
- # tools-deps (15)
Hi, am I correct to in assuming that clj-kondo does not have linting support for macros in built-in nbb libraries such as promesa? I'm getting wiggling lines in my editor for promesa's let macro bindings for example
ok thanks good to know this is WIP, env in concern has no access to bb so putting it as a dep in nbb.edn
is not an option.
> I'm getting wiggling lines in my editor for promesa's let macro bindings for example
@U012BL6D9GE You probably already know this but if you want to lint p/let
as let
you can use a config like this: {:lint-as {promesa.core/let clojure.core/let}}
You can either put it in .clj-kondo/config.edn
or as metadata in the .cljs
file in question:
(ns thing
{:clj-kondo/config '{:lint-as {promesa.core/let clojure.core/let}}})
Thanks @UUSQUGUF3. The slight annoyance here is that promesa
comes with clj-kondo configs, but they are not available/not picked by clj-kondo because promesa is a built-in nbb lib.
Another workaround perhaps along the line you've suggested is to merge the promesa https://github.com/funcool/promesa/blob/master/resources/clj-kondo.exports/funcool/promesa/config.edn to the project's .clj-kondo/config.edn
, and repeat for any other built-in nbb lib.
That's a good point. I guess it would be solved in nbb could pull in Clojure libs.