chore: fix linter issues [skip ci]
This commit is contained in:
@@ -13,7 +13,8 @@
|
|||||||
"format": "eslint source/**/*.mjs --fix",
|
"format": "eslint source/**/*.mjs --fix",
|
||||||
"dev": "nodemon source/app/web/index.mjs -e mjs,css,ejs,json",
|
"dev": "nodemon source/app/web/index.mjs -e mjs,css,ejs,json",
|
||||||
"postinstall": "node node_modules/puppeteer/install.js",
|
"postinstall": "node node_modules/puppeteer/install.js",
|
||||||
"indepth": "node source/plugins/languages/analyzers.mjs"
|
"indepth": "node source/plugins/languages/analyzers.mjs",
|
||||||
|
"autogen": "node .github/examples.mjs"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ metadata.plugin = async function({__plugins, name, logger}) {
|
|||||||
}
|
}
|
||||||
//Inputs checks
|
//Inputs checks
|
||||||
const result = Object.fromEntries(
|
const result = Object.fromEntries(
|
||||||
Object.entries(inputs).map(([key, {type, format, default:defaulted, min, max, values, inherits}]) => [
|
Object.entries(inputs).map(([key, {type, format, default:defaulted, min, max, values, inherits:_inherits}]) => [
|
||||||
//Format key
|
//Format key
|
||||||
metadata.to.query(key, {name}),
|
metadata.to.query(key, {name}),
|
||||||
//Format value
|
//Format value
|
||||||
@@ -277,20 +277,34 @@ metadata.plugin = async function({__plugins, name, logger}) {
|
|||||||
let row = []
|
let row = []
|
||||||
{
|
{
|
||||||
let cell = []
|
let cell = []
|
||||||
if (o.required)
|
if (o.required) {
|
||||||
cell.push("✔️"), flags.add("required")
|
cell.push("✔️")
|
||||||
if (type === "token")
|
flags.add("required")
|
||||||
cell.push("🔐"), flags.add("secret")
|
}
|
||||||
if (o.inherits)
|
if (type === "token") {
|
||||||
cell.push("⏩"), flags.add("inherits")
|
cell.push("🔐")
|
||||||
if (o.global)
|
flags.add("secret")
|
||||||
cell.push("⏭️"), flags.add("global")
|
}
|
||||||
if (o.testing)
|
if (o.inherits) {
|
||||||
cell.push("🔧"), flags.add("testing")
|
cell.push("⏩")
|
||||||
if (!Object.keys(previous?.inputs ?? {}).includes(option))
|
flags.add("inherits")
|
||||||
cell.push("✨"), flags.add("beta")
|
}
|
||||||
if (o.extras)
|
if (o.global) {
|
||||||
cell.push("🧰"), flags.add("extras")
|
cell.push("⏭️")
|
||||||
|
flags.add("global")
|
||||||
|
}
|
||||||
|
if (o.testing) {
|
||||||
|
cell.push("🔧")
|
||||||
|
flags.add("testing")
|
||||||
|
}
|
||||||
|
if (!Object.keys(previous?.inputs ?? {}).includes(option)) {
|
||||||
|
cell.push("✨")
|
||||||
|
flags.add("beta")
|
||||||
|
}
|
||||||
|
if (o.extras) {
|
||||||
|
cell.push("🧰")
|
||||||
|
flags.add("extras")
|
||||||
|
}
|
||||||
cell = cell.map(flag => `<sup>${flag}</sup>`)
|
cell = cell.map(flag => `<sup>${flag}</sup>`)
|
||||||
cell.unshift(`${"`"}${option}${"`"}`)
|
cell.unshift(`${"`"}${option}${"`"}`)
|
||||||
row.push(cell.join(" "))
|
row.push(cell.join(" "))
|
||||||
|
|||||||
Reference in New Issue
Block a user