This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-02
Channels
- # announcements (2)
- # babashka (10)
- # beginners (61)
- # calva (17)
- # cider (27)
- # clj-kondo (14)
- # clojure (230)
- # clojure-austin (4)
- # clojure-europe (17)
- # clojure-france (6)
- # clojure-hungary (3)
- # clojure-norway (30)
- # clojure-sweden (9)
- # clojure-uk (2)
- # clojurescript (58)
- # conjure (11)
- # core-async (7)
- # cursive (74)
- # datalog (2)
- # datomic (15)
- # events (8)
- # figwheel-main (5)
- # fulcro (2)
- # graalvm (23)
- # graphql (2)
- # helix (17)
- # humbleui (2)
- # jobs (2)
- # kaocha (6)
- # lsp (19)
- # malli (7)
- # nbb (51)
- # off-topic (33)
- # pathom (26)
- # pedestal (2)
- # polylith (1)
- # portal (4)
- # re-frame (17)
- # react (3)
- # reitit (5)
- # releases (2)
- # remote-jobs (2)
- # shadow-cljs (18)
- # sql (65)
- # tools-deps (8)
- # xtdb (28)
Changelogs for release later today: https://github.com/clj-kondo/clj-kondo/blob/master/CHANGELOG.md#unreleased Please give it a spin on your repo before release, as a sanity check.
$ ~/Downloads/clj-kondo-2022.10.15-SNAPSHOT-linux-amd64/clj-kondo --parallel --cache false --lint src/ dev/ test/
linting took 12783ms, errors: 0, warnings: 0
lookin good to me (using the artifact from https://github.com/clj-kondo/clj-kondo/commit/7798e4ecbdf65495f2bf25f58df2d2ba0540fc8f)hey all! I am trying to get the linter to totally ignore arguments to a macro, since I haven’t yet written a hook, and thought this might work:
{:lint-as {jsxgraph.clerk-ui/cljs clojure.core/comment}}
no dice. any advice on why this wouldn’t work, or if there is a :lint-as
solution here? or if I should just write a hook that ignores everything
@sritchie09 clj-kondo doesn't just ignore anything in comment
forms since it's quite useful to have linting in your comment forms. You can tweak what linting you get in comment forms using :config-in-comment
- similarly you can tweak what config you get in calls to your macro with :config-in-call
See docs https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#override-config-in-comment-forms
thank you!
actually @borkdude maybe there is a way to do this without a hook. This macro should emit nothing for clj
, and everything passed to it for cljs
; is there some default way to specify this?
@borkdude if you haven’t looked, I am now past this;
I figured out how to skip compilation of notebooks, so now that macro only runs on the JS side and can’t do any JS linting anyway, so I will go with the ignore
style that you showed me. thank you!