clj-kondo

danielneal 2026-01-06T15:49:24.594579Z

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'

āœ… 1
borkdude 2026-01-06T15:53:24.538589Z

Why do you write :clojure-linter/ ?

danielneal 2026-01-06T15:54:16.733739Z

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

borkdude 2026-01-06T15:54:32.078509Z

ok :)

danielneal 2026-01-06T15:54:40.309549Z

I tried cljs-linter

danielneal 2026-01-06T15:54:51.556419Z

but that was a guess

danielneal 2026-01-06T15:55:00.491589Z

so thought I'd just own up hah

danielneal 2026-01-06T15:55:14.221619Z

is the namespace not required?

danielneal 2026-01-06T15:55:18.704739Z

or different?

borkdude 2026-01-06T15:55:42.568359Z

not required

danielneal 2026-01-06T15:55:54.682449Z

ace thank you!

danielneal 2026-01-06T15:56:15.778549Z

10 points for the human team!

šŸ™Œ 1
MJ 2026-01-06T02:56:09.354089Z

would there be any interest in a "Redundant format" linter, to catch things like (format "foo") or (log/errorf "bar")?

šŸ‘ 5
igrishaev 2026-01-06T09:01:54.206829Z

Good idea, I fix these things manually all the time.

borkdude 2026-01-06T15:54:58.954069Z

sure

borkdude 2026-01-06T15:55:23.907049Z

What does (log/errorf "bar") do?

MJ 2026-01-06T16:50:47.796409Z

same thing as (log/error "bar"), i.e. no formatting

borkdude 2026-01-08T11:43:37.583209Z

Merged on master. Thanks @jonurnieta!

jramosg 2026-01-08T12:31:55.075749Z

šŸ™ŒšŸæ thanks!