Fork me on GitHub
#lambdaisland
<
2022-11-03
>
Chad Walstrom04:11:02

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

1
Chad Walstrom04:11:05

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
borkdude11:11:53

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