Browse Source

Address lint failures and rm unused spec dep

Spec dep is no longer needed since it ships with bb
Gabriel Horner 2 years ago
parent
commit
65955f2ba2
3 changed files with 5 additions and 6 deletions
  1. 2 0
      .clj-kondo/config.edn
  2. 2 5
      bb.edn
  3. 1 1
      src/main/frontend/components/svg.cljs

+ 2 - 0
.clj-kondo/config.edn

@@ -11,6 +11,8 @@
 
  :linters
  {:aliased-namespace-symbol {:level :warning}
+  ;; Disable until it doesn't trigger false positives on rum/defcontext
+  :earmuffed-var-not-dynamic {:level :off}
   :unresolved-symbol {:exclude [goog.DEBUG
                                 goog.string.unescapeEntities
                                 ;; TODO:lint: Fix when fixing all type hints

+ 2 - 5
bb.edn

@@ -1,14 +1,11 @@
 {:paths ["scripts/src" "src/main"]
  :deps
- {org.babashka/spec.alpha
-  {:git/url "https://github.com/babashka/spec.alpha"
-   :sha "1a841c4cc1d4f6dab7505a98ed2d532dd9d56b78"}
-  metosin/malli
+ {metosin/malli
   {:mvn/version "0.9.1"}
   logseq/bb-tasks
   #_{:local/root "../bb-tasks"}
   {:git/url "https://github.com/logseq/bb-tasks"
-   :git/sha "95e4fbdb7bbf1c720c6f8b58e3b3b96b3b487526"}
+   :git/sha "4295d5df0458cc06a09c5d506510ee49b785407d"}
   logseq/graph-parser
   {:local/root "deps/graph-parser"}
   org.clj-commons/digest

+ 1 - 1
src/main/frontend/components/svg.cljs

@@ -258,7 +258,7 @@
     [:path {:stroke-linecap "round" :stroke-linejoin "round" :stroke-width "2" :d "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM13 10H7"}]]))
 
 (defn icon-area
-  ([] icon-area 16)
+  ([] (icon-area 16))
   ([size]
    [:svg {:viewBox "0 0 1024 1024" :version "1.1" :width size :height size :stroke "currentColor"}
     [:path {:d "M844.992 115.008H179.008c-35.328 0-64 28.672-64 64v665.984c0 35.328 28.672 64 64 64h665.984c35.328 0 64-28.672 64-64V179.008c0-35.328-28.672-64-64-64zM364.672 844.992H217.6L844.992 217.6v147.072l-480.32 480.32z m480.32-401.152v147.2l-254.016 253.952H443.84l401.152-401.152z m-187.648-264.832h147.072l-625.408 625.408V657.28l478.336-478.336zM179.008 578.112V431.04l252.032-252.032h147.136L179.008 578.112z m172.864-399.104l-172.864 172.8v-172.8h172.864z m318.272 665.984l174.848-174.848v174.848h-174.848z" :fill "currentColor"}]]))