You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ clj-kondo --lint /tmp/foo.cljs
/tmp/foo.cljs:1:1: error: cljs.core/simple-benchmark is called with 0 args but expects 3 or more
linting took 13ms, errors: 1, warnings: 0
$ cat /tmp/foo.cljs
(simple-benchmark)
but it doesn't yet know about the syntax.
Workaround via config:
(nsfoo
{:clj-kondo/config {:lint-as {cljs.core/simple-benchmark clojure.core/let}}})
(simple-benchmark [x 100]
x 200)
version
clj-kondo v2020.11.07
platform
Native, I believe.
problem
When I use [
simple-benchmark
from cljs core](https://cljs.github.io/api/cljs.core/simple-benchmark, like this:clj-kondo issues an error:
repro
expected behavior
I would expect clj-kondo to know constructs from cljs.core, and understand that the
simple-benchmark
form defines bindings.The text was updated successfully, but these errors were encountered: