mirror of
https://github.com/penpot/penpot.git
synced 2025-02-08 08:09:14 -05:00
📎 Fix linter issues
This commit is contained in:
parent
10ca2b20e4
commit
1af99f534b
5 changed files with 10 additions and 4 deletions
|
@ -58,6 +58,12 @@
|
|||
:redundant-do
|
||||
{:level :off}
|
||||
|
||||
:redundant-ignore
|
||||
{:level :off}
|
||||
|
||||
:redundant-nested-call
|
||||
{:level :off}
|
||||
|
||||
:earmuffed-var-not-dynamic
|
||||
{:level :off}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))]
|
||||
|
|
Loading…
Add table
Reference in a new issue