Switch from eslint to oxlint

Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-03-30 14:27:16 -05:00
committed by GitHub
parent 707921b9be
commit 806a66e006
606 changed files with 6026 additions and 3790 deletions

View File

@@ -9,7 +9,7 @@ import { IMAGE_GIF } from '../../types/MIME.std.js';
describe('_cleanMessageData', () => {
it('throws if message is missing received_at', () => {
assert.throws(() => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// oxlint-disable-next-line typescript/no-explicit-any
_cleanMessageData({} as any);
}, 'received_at');
});
@@ -27,7 +27,7 @@ describe('_cleanMessageData', () => {
{
contentType: IMAGE_GIF,
size: 4,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// oxlint-disable-next-line typescript/no-explicit-any
data: 1 as any,
},
{

View File

@@ -74,7 +74,7 @@ describe('SQL/updateToSchemaVersion1030', () => {
'conversation-merge',
'group-v1-migration',
'keychange',
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- legacy type
// oxlint-disable-next-line typescript/no-explicit-any -- legacy type
'message-history-unsynced' as any,
'profile-change',
'story',

View File

@@ -27,8 +27,6 @@ import { WEEK } from '../../util/durations/index.std.js';
import type { MessageAttributesType } from '../../model-types.d.ts';
import type { SyncTaskType } from '../../util/syncTasks.preload.js';
/* eslint-disable camelcase */
// Snapshot before: 1270
export function getMostRecentAddressableMessages(
db: ReadableDB,

View File

@@ -20,8 +20,6 @@ import {
import type { MessageAttributesType } from '../../model-types.d.ts';
import { DurationInSeconds } from '../../util/durations/duration-in-seconds.std.js';
/* eslint-disable camelcase */
function generateMessage(json: MessageAttributesType) {
const { conversationId, expireTimer, received_at, sent_at, type } = json;

View File

@@ -338,7 +338,7 @@ describe('SQL/updateToSchemaVersion88', () => {
});
for (const table of ['preKeys', 'signedPreKeys', 'kyberPreKeys']) {
// eslint-disable-next-line no-loop-func
// oxlint-disable-next-line no-loop-func
it(`should migrate ${table}`, () => {
insertData(db, table, [
{

View File

@@ -137,7 +137,7 @@ describe('SQL/updateToSchemaVersion960', () => {
});
for (const table of ['preKeys', 'signedPreKeys', 'kyberPreKeys']) {
// eslint-disable-next-line no-loop-func
// oxlint-disable-next-line no-loop-func
it(`should migrate ${table}`, () => {
insertData(db, table, [
{