Skip to content

Commit 43dac8a

Browse files
committed
chore: fix linter issues [skip ci]
1 parent 7ae9935 commit 43dac8a

File tree

2 files changed

+31
-16
lines changed

2 files changed

+31
-16
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"format": "eslint source/**/*.mjs --fix",
1414
"dev": "nodemon source/app/web/index.mjs -e mjs,css,ejs,json",
1515
"postinstall": "node node_modules/puppeteer/install.js",
16-
"indepth": "node source/plugins/languages/analyzers.mjs"
16+
"indepth": "node source/plugins/languages/analyzers.mjs",
17+
"autogen": "node .github/examples.mjs"
1718
},
1819
"repository": {
1920
"type": "git",

source/app/metrics/metadata.mjs

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ metadata.plugin = async function({__plugins, name, logger}) {
106106
}
107107
//Inputs checks
108108
const result = Object.fromEntries(
109-
Object.entries(inputs).map(([key, {type, format, default:defaulted, min, max, values, inherits}]) => [
109+
Object.entries(inputs).map(([key, {type, format, default:defaulted, min, max, values, inherits:_inherits}]) => [
110110
//Format key
111111
metadata.to.query(key, {name}),
112112
//Format value
@@ -277,20 +277,34 @@ metadata.plugin = async function({__plugins, name, logger}) {
277277
let row = []
278278
{
279279
let cell = []
280-
if (o.required)
281-
cell.push("✔️"), flags.add("required")
282-
if (type === "token")
283-
cell.push("🔐"), flags.add("secret")
284-
if (o.inherits)
285-
cell.push("⏩"), flags.add("inherits")
286-
if (o.global)
287-
cell.push("⏭️"), flags.add("global")
288-
if (o.testing)
289-
cell.push("🔧"), flags.add("testing")
290-
if (!Object.keys(previous?.inputs ?? {}).includes(option))
291-
cell.push("✨"), flags.add("beta")
292-
if (o.extras)
293-
cell.push("🧰"), flags.add("extras")
280+
if (o.required) {
281+
cell.push("✔️")
282+
flags.add("required")
283+
}
284+
if (type === "token") {
285+
cell.push("🔐")
286+
flags.add("secret")
287+
}
288+
if (o.inherits) {
289+
cell.push("⏩")
290+
flags.add("inherits")
291+
}
292+
if (o.global) {
293+
cell.push("⏭️")
294+
flags.add("global")
295+
}
296+
if (o.testing) {
297+
cell.push("🔧")
298+
flags.add("testing")
299+
}
300+
if (!Object.keys(previous?.inputs ?? {}).includes(option)) {
301+
cell.push("✨")
302+
flags.add("beta")
303+
}
304+
if (o.extras) {
305+
cell.push("🧰")
306+
flags.add("extras")
307+
}
294308
cell = cell.map(flag => `<sup>${flag}</sup>`)
295309
cell.unshift(`${"`"}${option}${"`"}`)
296310
row.push(cell.join(" "))

0 commit comments

Comments
 (0)