style(deps): migrated from Prettier to Biome and updated formatting rules

- Removed Prettier configuration files (.prettierignore and .prettierrc) and migrated formatting to Biome.
- Updated Biome configuration from version 2.3.11 to 2.3.12 and changed arrowParentheses rule from 'always' to 'asNeeded'.
- Pinned @biomejs/biome dependency to exact version 2.3.12 in package.json and bun.lock.
- Applied consistent arrow function formatting across 489 files by removing unnecessary parentheses around single parameters.
- Removed blank lines after comment blocks and reorganized imports for consistency across the codebase.
This commit is contained in:
can1357
2026-01-24 04:20:19 +01:00
parent f901befd19
commit 779ca4872b
489 changed files with 1900 additions and 2215 deletions
+10 -11
View File
@@ -3,7 +3,6 @@
*
* Handles `omp plugin <command>` subcommands for plugin lifecycle management.
*/
import chalk from "chalk";
import { APP_NAME } from "../config";
import { PluginManager, parseSettingValue, validateSetting } from "../extensibility/plugins";
@@ -247,7 +246,7 @@ async function handleList(manager: PluginManager, flags: { json?: boolean }): Pr
if (availableFeatures.length > 0) {
const enabledSet = new Set(plugin.enabledFeatures ?? []);
const featureDisplay = availableFeatures
.map((f) => (enabledSet.has(f) ? chalk.green(f) : chalk.dim(f)))
.map(f => (enabledSet.has(f) ? chalk.green(f) : chalk.dim(f)))
.join(", ");
console.log(chalk.dim(` Available: [${featureDisplay}]`));
}
@@ -298,10 +297,10 @@ async function handleDoctor(manager: PluginManager, flags: { json?: boolean; fix
}
}
const errors = checks.filter((c) => c.status === "error" && !c.fixed).length;
const warnings = checks.filter((c) => c.status === "warning" && !c.fixed).length;
const ok = checks.filter((c) => c.status === "ok").length;
const fixed = checks.filter((c) => c.fixed).length;
const errors = checks.filter(c => c.status === "error" && !c.fixed).length;
const warnings = checks.filter(c => c.status === "warning" && !c.fixed).length;
const ok = checks.filter(c => c.status === "ok").length;
const fixed = checks.filter(c => c.fixed).length;
console.log("");
console.log(`Summary: ${ok} ok, ${warnings} warnings, ${errors} errors${fixed > 0 ? `, ${fixed} fixed` : ""}`);
@@ -328,7 +327,7 @@ async function handleFeatures(
const pluginName = args[0];
const plugins = await manager.list();
const plugin = plugins.find((p) => p.name === pluginName);
const plugin = plugins.find(p => p.name === pluginName);
if (!plugin) {
console.error(chalk.red(`Plugin "${pluginName}" not found`));
@@ -344,14 +343,14 @@ async function handleFeatures(
currentFeatures = new Set(
flags.set
.split(",")
.map((f) => f.trim())
.map(f => f.trim())
.filter(Boolean),
);
} else {
if (flags.enable) {
for (const f of flags.enable
.split(",")
.map((f) => f.trim())
.map(f => f.trim())
.filter(Boolean)) {
currentFeatures.add(f);
}
@@ -359,7 +358,7 @@ async function handleFeatures(
if (flags.disable) {
for (const f of flags.disable
.split(",")
.map((f) => f.trim())
.map(f => f.trim())
.filter(Boolean)) {
currentFeatures.delete(f);
}
@@ -433,7 +432,7 @@ async function handleConfig(
}
const plugins = await manager.list();
const plugin = plugins.find((p) => p.name === pluginName);
const plugin = plugins.find(p => p.name === pluginName);
if (!plugin) {
console.error(chalk.red(`Plugin "${pluginName}" not found`));