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
+2 -3
View File
@@ -4,7 +4,6 @@
* Handles `omp update` to check for and install updates.
* Uses bun if available, otherwise downloads binary from GitHub releases.
*/
import { execSync, spawnSync } from "node:child_process";
import * as fs from "node:fs";
import * as path from "node:path";
@@ -74,7 +73,7 @@ async function getLatestRelease(): Promise<ReleaseInfo> {
return {
tag: data.tag_name,
version: data.tag_name.replace(/^v/, ""),
assets: data.assets.map((a) => ({ name: a.name, url: a.browser_download_url })),
assets: data.assets.map(a => ({ name: a.name, url: a.browser_download_url })),
};
}
@@ -155,7 +154,7 @@ async function updateViaBun(): Promise<void> {
*/
async function updateViaBinary(release: ReleaseInfo): Promise<void> {
const binaryName = getBinaryName();
const asset = release.assets.find((a) => a.name === binaryName);
const asset = release.assets.find(a => a.name === binaryName);
if (!asset) {
throw new Error(`No binary found for ${binaryName}`);