From 29c5b153843a29d5e0a7acf4fc78cd00a2c4f02f Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Wed, 8 Oct 2025 20:48:49 +0300 Subject: Fix CLJS nodes test --- resources/clj-kondo/config.edn | 6 +++--- resources/clj-kondo/hooks/dompa.clj | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'resources') diff --git a/resources/clj-kondo/config.edn b/resources/clj-kondo/config.edn index 1fc2855..8ee11e4 100644 --- a/resources/clj-kondo/config.edn +++ b/resources/clj-kondo/config.edn @@ -1,5 +1,5 @@ {:hooks {:analyze-call {dompa.nodes/$ hooks.dompa/$ - dompa.nodes/defhtml hooks.dompa/defhtml}} + dompa.nodes.shared/defhtml hooks.dompa/defhtml}} :linters {:dompa.nodes/$-arg-validation {:level :warning} - :dompa.nodes/defhtml-arg-validation {:level :warning}} - :lint-as {dompa.nodes/defhtml clojure.core/defn}} \ No newline at end of file + :dompa.nodes.shared/defhtml-arg-validation {:level :warning}} + :lint-as {dompa.nodes.shared/defhtml clojure.core/defn}} diff --git a/resources/clj-kondo/hooks/dompa.clj b/resources/clj-kondo/hooks/dompa.clj index 24597ef..dac5762 100644 --- a/resources/clj-kondo/hooks/dompa.clj +++ b/resources/clj-kondo/hooks/dompa.clj @@ -20,7 +20,7 @@ :message (str "Invalid argument type. When creating a text node, " "only literal values (strings, numbers and symbols) " "are allowed.") - :type :dompa.templates/$-arg-validation)))) + :type :dompa.nodes/$-arg-validation)))) ; if the first arg is a keyword, then the second argument can only be ; a sequence or a map. @@ -30,8 +30,8 @@ (api/list-node? (first rest-args))))) (api/reg-finding! (assoc (meta (first rest-args)) - :message (str "Invalid argument type. Argument must be a sequence or a map.") - :type :dompa.templates/$-arg-validation)) + :message "Invalid argument type. Argument must be a sequence or a map." + :type :dompa.nodes/$-arg-validation)) ; if the first arg is a keyword, the second arg is a list, then ; every arg has to be a list node. @@ -43,7 +43,7 @@ (assoc (meta arg) :message (str "Invalid argument type. Argument must be a $ macro " "or a sequence of $ macros.") - :type :dompa.templates/$-arg-validation))) + :type :dompa.nodes/$-arg-validation))) ; if the first arg is a keyword, the second arg is a map, then from ; the second forwards everything has to be a list node @@ -54,7 +54,7 @@ (assoc (meta (second rest-args)) :message (str "Invalid argument type. Argument must be a $ macro " "or a sequence of $ macros.") - :type :dompa.templates/$-arg-validation))))) + :type :dompa.nodes/$-arg-validation))))) (defn defhtml [{:keys [node]}] (let [[_ first-arg second-arg & rest-args] (:children node)] -- cgit v1.2.3