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
+8 -8
View File
@@ -25,7 +25,7 @@ const log = createLogger('cleanDataForIpc');
*/
export function cleanDataForIpc(data: unknown): {
// `any`s are dangerous but it's difficult (impossible?) to type this with generics.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// oxlint-disable-next-line typescript/no-explicit-any
cleaned: any;
pathsChanged: Array<string>;
} {
@@ -45,14 +45,14 @@ type CleanedDataValue =
| undefined
| Uint8Array<ArrayBuffer>
| CleanedObject
| CleanedArray;
/* eslint-disable no-restricted-syntax */
| Array<CleanedDataValue>;
// oxlint-disable-next-line typescript/consistent-type-definitions
interface CleanedObject {
[x: string]: CleanedDataValue;
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface CleanedArray extends Array<CleanedDataValue> {}
/* eslint-enable no-restricted-syntax */
type CleanedArray = Array<CleanedDataValue>;
function cleanDataInner(
data: unknown,
@@ -64,7 +64,7 @@ function cleanDataInner(
log.error(
`cleanDataInner: Reached maximum depth ${depth}; path is ${path}`
);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// oxlint-disable-next-line typescript/no-explicit-any
return { cleaned: data as any, pathsChanged };
}
@@ -82,7 +82,7 @@ function cleanDataInner(
// functions but don't mark them as cleaned.
return undefined;
case 'object': {
// eslint-disable-next-line eqeqeq
// oxlint-disable-next-line eqeqeq
if (data === null) {
return null;
}