What am I doing wrong here? Iām trying to ignore an unused namespace in clojurescript, but still getting warnings.
(ns demo
{:clj-kondo/ignore [:clojure-linter/unused-namespace]}
(:require ["highcharts" :as Highcharts]
["highcharts-react-official" :as hr]
["highcharts/modules/heatmap" :as Heatmap])) ;; I want to ignore this 'unused require'
Why do you write :clojure-linter/ ?
sigh, this is what the AI told me aha. I promise I did check the docs but in the wrong order, searching for the answer if you get me
ok :)
I tried cljs-linter
but that was a guess
so thought I'd just own up hah
is the namespace not required?
or different?
not required
ace thank you!
would there be any interest in a "Redundant format" linter, to catch things like (format "foo") or (log/errorf "bar")?
Good idea, I fix these things manually all the time.
sure
What does (log/errorf "bar") do?
same thing as (log/error "bar"), i.e. no formatting
Merged on master. Thanks @jonurnieta!
ššæ thanks!