🎨 replace prettier with oxfmt

This commit is contained in:
StarHeartHunt
2026-07-25 15:24:32 +08:00
parent 5edf14b724
commit 2d06fdcf8f
33 changed files with 549 additions and 108 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export default function AdapterForm(): React.ReactNode {
template: "adapter_publish.yml",
title: `Adapter: ${result.name}`,
...result,
})}`
})}`,
);
};
+1 -1
View File
@@ -32,7 +32,7 @@ export default function BotForm(): React.ReactNode {
template: "bot_publish.yml",
title: `Bot: ${result.name}`,
...result,
})}`
})}`,
);
};
@@ -27,8 +27,8 @@ export default function TagFormItem({
new Set(
allowTags
.filter((tag) => tag.label.toLocaleLowerCase().includes(label))
.map((e) => e.label)
)
.map((e) => e.label),
),
).slice(0, 5);
const validateTag = () => {
+1 -1
View File
@@ -24,7 +24,7 @@ export default function PluginForm(): React.ReactNode {
template: "plugin_publish.yml",
title: `Plugin: ${result.pypi}`,
...result,
})}`
})}`,
);
};
+3 -3
View File
@@ -49,8 +49,8 @@ export function Form({
data
.filter((item) => item.tags.length > 0)
.map((ele) => ele.tags)
.flat()
)
.flat(),
),
)
.catch((e) => {
console.error(e);
@@ -63,7 +63,7 @@ export function Form({
const handleNextStep = () => {
const currentStepNames = formItems[currentStep].items.map(
(item) => item.name
(item) => item.name,
);
if (currentStepNames.every((name) => result[name])) {
setCurrentStep(currentStep + 1);