mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Switch from eslint to oxlint
Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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, [
|
||||
{
|
||||
|
||||
@@ -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, [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user