Skip to content

Commit 6d42dbb

Browse files
committed
enhance linter
1 parent 07126a9 commit 6d42dbb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.clj-kondo/config.edn

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@
55
:used-underscored-binding {:level :warning}
66
:unused-value {:level :warning}
77
:redundant-call {:level :warning}
8-
:redundant-str-call {:level :warning}}}
8+
:redundant-str-call {:level :warning}
9+
:clojure-lsp/unused-public-var {:exclude-regex #{"components.*"
10+
"sections.*"}}}
11+
:hooks {:analyze-call {malli.core/=> hooks/=>}}}

.clj-kondo/hooks.clj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(ns hooks
2+
(:require [clj-kondo.hooks-api :as api]))
3+
4+
(defn ^:export => [{:keys [node]}]
5+
(let [[macro-sym name-node & schema-nodes] (:children node)]
6+
{:node (api/list-node
7+
(list*
8+
macro-sym
9+
(with-meta name-node {:clj-kondo/ignore-reference true})
10+
schema-nodes))}))

0 commit comments

Comments
 (0)