mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 04:38:27 +02:00
✨ Resolve almost all linter issues on common module.
This commit is contained in:
parent
548664f6ce
commit
2ec769981a
18 changed files with 86 additions and 89 deletions
11
.clj-kondo/hooks/export.clj
Normal file
11
.clj-kondo/hooks/export.clj
Normal file
|
@ -0,0 +1,11 @@
|
|||
(ns hooks.export
|
||||
(:require [clj-kondo.hooks-api :as api]))
|
||||
|
||||
(defn export
|
||||
[{:keys [:node]}]
|
||||
(let [[_ sname] (:children node)
|
||||
result (api/list-node
|
||||
[(api/token-node (symbol "def"))
|
||||
(api/token-node (symbol (name (:value sname))))
|
||||
sname])]
|
||||
{:node result}))
|
Loading…
Add table
Add a link
Reference in a new issue