Linting fixes

This commit is contained in:
Juho Teperi 2020-03-06 13:45:25 +02:00
parent 5ead085c93
commit a027928f19
3 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,5 @@
(ns geometry.components
(:require [reagent.core :as r]
[goog.events :as events]
(:require [goog.events :as events]
[geometry.geometry :refer [x y dist] :as g])
(:import [goog.events EventType]))

View File

@ -1,6 +1,7 @@
(ns simpleexample.core
(:require [reagent.core :as r]
[reagent.dom :as rdom]))
[reagent.dom :as rdom]
[clojure.string :as str]))
(defonce timer (r/atom (js/Date.)))
@ -13,7 +14,7 @@
[:h1 message])
(defn clock []
(let [time-str (-> @timer .toTimeString (clojure.string/split " ") first)]
(let [time-str (-> @timer .toTimeString (str/split " ") first)]
[:div.example-clock
{:style {:color @time-color}}
time-str]))

View File

@ -1,6 +1,7 @@
(ns todomvc.core
(:require [reagent.core :as r]
[reagent.dom :as rdom]))
[reagent.dom :as rdom]
[clojure.string :as str]))
(defonce todos (r/atom (sorted-map)))
@ -29,7 +30,7 @@
(let [val (r/atom title)
stop #(do (reset! val "")
(if on-stop (on-stop)))
save #(let [v (-> @val str clojure.string/trim)]
save #(let [v (-> @val str str/trim)]
(if-not (empty? v) (on-save v))
(stop))]
(fn [{:keys [id class placeholder]}]