mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-07-11 15:46:43 +01:00
Switch from eslint to oxlint
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user