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

@@ -1,6 +1,5 @@
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
/* eslint-disable @typescript-eslint/no-explicit-any */
import lodash from 'lodash';
@@ -20,10 +19,11 @@ export type ObjectMappingSpecType =
export function mapObjectWithSpec<Input, Output>(
spec: ObjectMappingSpecType,
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
// oxlint-disable-next-line typescript/explicit-module-boundary-types, typescript/no-explicit-any
data: any,
map: (value: Input) => Output,
target = cloneDeep(data)
// oxlint-disable-next-line typescript/no-explicit-any
): any {
if (!data) {
return target;
@@ -40,7 +40,7 @@ export function mapObjectWithSpec<Input, Output>(
if ('isMap' in spec) {
for (const key of Object.keys(data)) {
// eslint-disable-next-line no-param-reassign
// oxlint-disable-next-line no-param-reassign
target[key] = mapObjectWithSpec(
spec.valueSpec,
data[key],
@@ -52,7 +52,7 @@ export function mapObjectWithSpec<Input, Output>(
}
if ('key' in spec) {
// eslint-disable-next-line no-param-reassign
// oxlint-disable-next-line no-param-reassign
target[spec.key] = mapObjectWithSpec(
spec.valueSpec,
data[spec.key],