lambdaisland

Chad Walstrom 2022-11-03T04:10:02.842269Z

Does anyone have a good clj-kondo config to ignore unresolved symbol for ornament constructs?

✅ 1
borkdude 2022-11-03T11:25:53.326459Z

goog.DEBUG shouldn't give you any errors I think:

$ clj-kondo --lint - --lang cljs <<< 'goog.DEBUG'
linting took 30ms, errors: 0, warnings: 0

✅ 1
Chad Walstrom 2022-11-03T04:19:05.125279Z

I've tried this, which seems to work. Does this look right?

{:lint-as {lambdaisland.ornament/defstyled clojure.core/def}

 :linters {:unresolved-symbol {:exclude [goog.DEBUG
                                         (lambdaisland.ornament/defstyled [props text])]}}}

👍 1