Fork me on GitHub
#clj-kondo
<
2022-01-01
>
pinkfrog13:01:43

clj-kondo complains the missing of the site ns as in here: https://github.com/juxt/site/blob/master/src/juxt/site/alpha/triggers.clj/#L10. How can I teach it to understand?

borkdude13:01:04

Are you allowed to use Clojure 1.11? Then you can use as-alias which kondo already understands

pinkfrog13:01:43

I can, thanks for the info!

pinkfrog14:01:33

What’s the ‘as-alias’ you are referring to? Searching https://clojure.github.io/clojure/branch-master/index.html has no result.

borkdude14:01:00

It's a new option in :require

borkdude14:01:18

(ns foo (:require [foobar :as-alias foo]))
::foo/bar ;; :foobar/bar 

thanks3 1
borkdude14:01:28

A happy new year!

❤️ 4