Switch from eslint to oxlint

This commit is contained in:
Jamie
2026-03-27 13:40:46 -07:00
committed by GitHub
parent 224bb811e1
commit caa10d02c3
606 changed files with 6026 additions and 3790 deletions
+5 -1
View File
@@ -16,7 +16,6 @@ const PATTERNS = [
'tsconfig.tsbuildinfo',
'preload.bundle.js',
'preload.bundle.cache',
'.eslintcache',
];
async function main() {
@@ -25,12 +24,17 @@ async function main() {
});
const promises = [];
let count = 0;
for await (const entry of readable) {
count += 1;
promises.push(rm(entry, { recursive: true, force: true }));
}
await Promise.all(promises);
console.log(`Deleted ${count} files`);
}
// oxlint-disable-next-line promise/prefer-await-to-then
main().catch(error => {
console.error(error);
process.exit(1);
+1
View File
@@ -205,6 +205,7 @@ async function main() {
]);
}
// oxlint-disable-next-line promise/prefer-await-to-then
main().catch(error => {
console.error(error.stack);
process.exit(1);
+1
View File
@@ -167,6 +167,7 @@ async function main() {
await fs.promises.writeFile(destinationPath, output);
}
// oxlint-disable-next-line promise/prefer-await-to-then
main().catch(err => {
console.error(err);
process.exit(1);