diff --git a/.clj-kondo/config.edn b/.clj-kondo/config.edn index 5675b9d5d..08c3cd7e8 100644 --- a/.clj-kondo/config.edn +++ b/.clj-kondo/config.edn @@ -58,6 +58,12 @@ :redundant-do {:level :off} + :redundant-ignore + {:level :off} + + :redundant-nested-call + {:level :off} + :earmuffed-var-not-dynamic {:level :off} diff --git a/common/shadow-cljs.edn b/common/shadow-cljs.edn index fc3f4be04..bd4cafa82 100644 --- a/common/shadow-cljs.edn +++ b/common/shadow-cljs.edn @@ -9,7 +9,7 @@ :modules {:test {:init-fn common-tests.runner/-main - :prepend-js "globalThis.navigator = {userAgent: \"\"}"}}} + :prepend-js ";if (typeof globalThis.navigator?.userAgent === 'undefined') { globalThis.navigator = {userAgent: ''}; };"}}} :bench {:target :node-script diff --git a/common/src/app/common/files/repair.cljc b/common/src/app/common/files/repair.cljc index 5d80c844f..2d486ba6c 100644 --- a/common/src/app/common/files/repair.cljc +++ b/common/src/app/common/files/repair.cljc @@ -494,7 +494,7 @@ (let [repair-shape (fn [shape] ;; Remove the swap slot - (log/debug :hint (str " -> remove swap-slot")) + (log/debug :hint " -> remove swap-slot") (ctk/remove-swap-slot shape))] (log/dbg :hint "repairing shape :misplaced-slot" :id (:id shape) :name (:name shape) :page-id page-id) diff --git a/frontend/shadow-cljs.edn b/frontend/shadow-cljs.edn index a0673a0e9..4aad071ae 100644 --- a/frontend/shadow-cljs.edn +++ b/frontend/shadow-cljs.edn @@ -144,7 +144,7 @@ :modules {:test {:init-fn frontend-tests.runner/init - :prepend-js "globalThis.navigator = {userAgent: \"\"}"}}} + :prepend-js ";if (typeof globalThis.navigator?.userAgent === 'undefined') { globalThis.navigator = {userAgent: ''}; };"}}} :lib-penpot {:target :esm diff --git a/frontend/src/app/worker/import.cljs b/frontend/src/app/worker/import.cljs index ebeb67daa..950c98ffb 100644 --- a/frontend/src/app/worker/import.cljs +++ b/frontend/src/app/worker/import.cljs @@ -72,7 +72,7 @@ ([context type id media] (let [file-id (:file-id context) path (case type - :manifest (str "manifest.json") + :manifest "manifest.json" :page (str file-id "/" id ".svg") :colors-list (str file-id "/colors.json") :colors (let [ext (cm/mtype->extension (:mtype media))]