clj-kondo doesn’t yet know about npm requires and :as
…
% echo "(ns foo (:require [some-npm-module :as x])) (aget x \"default\")" | clj-kondo --lint -
<stdin>:1:20: warning: namespace some-npm-module is required but never used
<stdin>:1:51: error: unresolved symbol x
the x
name is valid in cljs and is the npm module object@tatut if you will use a string for the name it will treat it as an NPM require
:thumbsup: I’ll try that
is this a clj-kondo specific question, or just a generic clojure question?
babashka quetions can be posted in #babashka