refactor: replace ESLint + Prettier with OXC (oxlint + oxfmt) (#5741)

Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
Co-authored-by: Meierschlumpf <63781622+Meierschlumpf@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-05-27 09:37:44 +02:00
1 parent b4921af60d
commit 605af19cd8
102 files changed
+765 -3387

No files matched your search

+14 -14
View File
@@ -1,28 +1,28 @@
import {readFile, writeFile} from 'fs/promises';
import {integrationDefs} from '../packages/definitions/src/integration';
import { readFile, writeFile } from "fs/promises";
import { integrationDefs } from "../packages/definitions/src/integration";
const FILE = 'docs/README.md';
const FILE = "docs/README.md";
const MAX_COLUMNS_PER_ROW = 7;
async function updateIntegrationList() {
// Read current README content
const content = await readFile(FILE, 'utf8');
const content = await readFile(FILE, "utf8");
// Define markers
const startMarker = '<!-- AUTO_GENERATE_INTEGRATION_LIST_START -->';
const endMarker = '<!-- AUTO_GENERATE_INTEGRATION_LIST_END -->';
const startMarker = "<!-- AUTO_GENERATE_INTEGRATION_LIST_START -->";
const endMarker = "<!-- AUTO_GENERATE_INTEGRATION_LIST_END -->";
// Find the section to replace
const startIndex = content.indexOf(startMarker);
const endIndex = content.indexOf(endMarker);
if (startIndex === -1 || endIndex === -1) {
throw new Error('Could not find markers in README.md');
throw new Error("Could not find markers in README.md");
}
// Generate the new integration list
const integrations = Object.values(integrationDefs)
.filter(def => def.name !== 'Mock')
.filter((def) => def.name !== "Mock")
.sort((a, b) => a.name.localeCompare(b.name));
const tableRows: string[] = [];
let currentRow: string[] = [];
@@ -32,19 +32,19 @@ async function updateIntegrationList() {
<a href="${integration.documentationUrl}" target="_blank" rel="noreferrer noopener">
<img src="${integration.iconUrl}" alt="${integration.name}" width="90" height="90" />
<br/>
<p align="center">${integration.name.replaceAll(' ', '<br/>')}</p>
<p align="center">${integration.name.replaceAll(" ", "<br/>")}</p>
</a>
</td>`);
if (currentRow.length === MAX_COLUMNS_PER_ROW) {
tableRows.push(`<tr>${currentRow.join('\n')}</tr>`);
tableRows.push(`<tr>${currentRow.join("\n")}</tr>`);
currentRow = [];
}
});
// Add remaining items if any
if (currentRow.length > 0) {
tableRows.push(`<tr>${currentRow.join('\n')}</tr>`);
tableRows.push(`<tr>${currentRow.join("\n")}</tr>`);
}
// Create the new content
@@ -53,7 +53,7 @@ async function updateIntegrationList() {
<div align="center">
<table>
<tbody>
${tableRows.join('\n')}
${tableRows.join("\n")}
</tbody>
</table>
</div>
@@ -64,7 +64,7 @@ ${endMarker}`;
const newContent = content.slice(0, startIndex) + newSection + content.slice(endIndex + endMarker.length);
// Write the updated content back to the file
await writeFile(FILE, newContent, 'utf8');
await writeFile(FILE, newContent, "utf8");
}
updateIntegrationList().catch(console.error);
updateIntegrationList().catch(console.error);