Auto-format code (#277)

This commit is contained in:
Simon Lecoq
2021-04-28 23:05:08 +02:00
committed by GitHub
parent eda35ca6f5
commit 5a33c581fd
10 changed files with 41 additions and 20 deletions

View File

@@ -16,8 +16,10 @@
//Register existing licenses properties
const licenses = Object.fromEntries((await graphql(queries.licenses())).licenses.map(license => [license.key, license]))
for (const license of Object.values(licenses))
for (const license of Object.values(licenses)) {
//dprint-ignore
[...license.limitations, ...license.conditions, ...license.permissions].flat().map(({key, label}) => text[key] = label)
}
colors(licenses)
//Check if licensed exists