Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Nov 14, 2024
1 parent 1afb4cf commit 2684b5d
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion portfolio/src/components/button_scenes.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
:disabled true
:on-click #(js/alert "Saved")}]])

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defscene radio-icon-buttons
:title "Radio icon buttons"
:params (atom false)
Expand Down
2 changes: 0 additions & 2 deletions portfolio/src/components/slider_scenes.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[portfolio.reagent-18 :refer-macros [defscene]]
[renderer.ui :as ui]))

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defscene slider
:title "Default slider"
:params (atom [25])
Expand All @@ -17,7 +16,6 @@
:on-value-change (fn [v] (reset! store v))}]]
[:div (first @store)]])

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defscene slider-disabled
:title "Disabled slider"
:params (atom [25])
Expand Down
3 changes: 0 additions & 3 deletions portfolio/src/components/switch_scenes.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[portfolio.reagent-18 :refer-macros [defscene]]
[renderer.ui :as ui]))

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defscene switch
:title "Default switch"
:params (atom true)
Expand All @@ -14,7 +13,6 @@
:on-checked-change (fn [v] (reset! store v))}]
(str "Checked: " @store)])

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defscene switch-disabled
:title "Disabled switch"
:params (atom true)
Expand All @@ -26,7 +24,6 @@
:on-checked-change (fn [v] (reset! store v))}]
(str "Checked: " @store)])

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defscene switch-custom
:title "Custom color switch"
:params (atom true)
Expand Down
1 change: 0 additions & 1 deletion portfolio/src/sections/home_scenes.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[renderer.app.subs]
[renderer.app.views :as app.v]))

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defscene home
:title "Home"
:params (atom ["path/to/file/name.rps"])
Expand Down
1 change: 0 additions & 1 deletion src/renderer/attribute/impl/clock.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(ns renderer.attribute.impl.clock
"https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#clock-value")

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(def units
{:ms 0.001
:s 1
Expand Down
1 change: 0 additions & 1 deletion src/renderer/handle/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
[renderer.utils.bounds :as bounds :refer [Bounds]]
[renderer.utils.pointer :as pointer]))

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defn circle
[el & children]
(let [{:keys [x y id]} el
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/timeline/subs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

(defn effect-id
[el]
(str "effect" (str (:id el))))
(str "effect" (:id el)))

(defn animation->timeline-row
[{:keys [id attrs selected locked] :as el}]
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/tree/effects.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

(defn query-by-id!
[id]
(.querySelectorAll js/document (str ".tree-sidebar [data-id='" (str id) "']")))
(.querySelectorAll js/document (str ".tree-sidebar [data-id='" id "']")))

(defn get-list-elements!
[]
Expand Down
2 changes: 0 additions & 2 deletions src/renderer/utils/system.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
(defonce mac?
(= platform "darwin"))

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defonce windows?
(= platform "win32"))

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defonce linux?
(= platform "linux"))

0 comments on commit 2684b5d

Please sign in to comment.