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
+4 -4
View File
@@ -189,7 +189,7 @@ export function convertLeadingTabsToSpaces(text: string, spacesPerTab: number):
if (spacesPerTab <= 0) return text;
return text
.split("\n")
.map((line) => {
.map(line => {
const trimmed = line.trimStart();
if (trimmed.length === 0) return line;
const leading = getLeadingWhitespace(line);
@@ -212,7 +212,7 @@ export function normalizeUnicode(s: string): string {
return s
.trim()
.split("")
.map((c) => {
.map(c => {
const code = c.charCodeAt(0);
// Various dash/hyphen code-points → ASCII '-'
@@ -367,7 +367,7 @@ export function adjustIndentation(oldText: string, actualText: string, newText:
}
const delta = deltas[0];
if (!deltas.every((value) => value === delta)) {
if (!deltas.every(value => value === delta)) {
return newText;
}
@@ -380,7 +380,7 @@ export function adjustIndentation(oldText: string, actualText: string, newText:
}
const indentChar = actualProfile.char ?? oldProfile.char ?? detectIndentChar(actualText);
const adjusted = newText.split("\n").map((line) => {
const adjusted = newText.split("\n").map(line => {
if (line.trim().length === 0) {
return line;
}