chore: bump oxlint version

This commit is contained in:
Miodec 2025-05-29 13:17:50 +02:00
parent 0bf76e8990
commit 04fbd81c10
16 changed files with 554 additions and 429 deletions

View file

@ -93,7 +93,7 @@
"eslint-watch": "8.0.0",
"ioredis-mock": "7.4.0",
"openapi3-ts": "2.0.2",
"oxlint": "0.16.7",
"oxlint": "0.16.12",
"readline-sync": "1.4.10",
"supertest": "6.2.3",
"tsx": "4.16.2",

View file

@ -61,7 +61,7 @@
"madge": "8.0.0",
"magic-string": "0.30.17",
"normalize.css": "8.0.1",
"oxlint": "0.16.7",
"oxlint": "0.16.12",
"postcss": "8.4.31",
"sass": "1.70.0",
"subset-font": "2.3.0",

View file

@ -119,9 +119,9 @@ export function show(
let showInputCommand: Command | undefined = undefined;
if (settings?.commandOverride !== undefined) {
const command = (await getList()).filter(
const command = (await getList()).find(
(c) => c.id === settings.commandOverride
)[0];
);
if (command === undefined) {
Notifications.add(`Command ${settings.commandOverride} not found`, 0);
} else if (command?.input !== true) {

View file

@ -230,9 +230,9 @@ export async function setup(challengeName: string): Promise<boolean> {
return false;
}
const challenge = list.filter(
const challenge = list.find(
(c) => c.name.toLowerCase() === challengeName.toLowerCase()
)[0];
);
let notitext;
try {
if (challenge === undefined) {

View file

@ -746,9 +746,7 @@ export async function getLocalTagPB<M extends Mode>(
let ret = 0;
const filteredtag = (getSnapshot()?.tags ?? []).filter(
(t) => t._id === tagId
)[0];
const filteredtag = (getSnapshot()?.tags ?? []).find((t) => t._id === tagId);
if (filteredtag === undefined) return ret;
@ -800,9 +798,9 @@ export async function saveLocalTagPB<M extends Mode>(
if (!dbSnapshot) return;
if (mode === "quote") return;
function cont(): void {
const filteredtag = dbSnapshot?.tags?.filter(
const filteredtag = dbSnapshot?.tags?.find(
(t) => t._id === tagId
)[0] as SnapshotUserTag;
) as SnapshotUserTag;
filteredtag.personalBests ??= {
time: {},

View file

@ -425,9 +425,9 @@ export function updateActive(): void {
if (id === "none") return id;
const snapshot = DB.getSnapshot();
if (snapshot === undefined) return id;
const name = snapshot.tags?.filter((t) => t._id === id)[0];
const name = snapshot.tags?.find((t) => t._id === id);
if (name !== undefined) {
return snapshot.tags?.filter((t) => t._id === id)[0]?.display;
return snapshot.tags?.find((t) => t._id === id)?.display;
}
return name;
})

View file

@ -279,9 +279,9 @@ async function apply(): Promise<void> {
} as SnapshotPreset);
}
} else if (action === "edit") {
const preset = snapshotPresets.filter(
const preset = snapshotPresets.find(
(preset: SnapshotPreset) => preset._id === presetId
)[0] as SnapshotPreset;
) as SnapshotPreset;
if (preset === undefined) {
Notifications.add("Preset not found", -1);
return;

View file

@ -182,9 +182,7 @@ export default class AnimatedModal<
focusFirstInput(setting: true | "focusAndSelect" | undefined): void {
const inputs = [...this.modalEl.querySelectorAll("input")];
const input = inputs.filter(
(input) => !input.classList.contains("hidden")
)[0];
const input = inputs.find((input) => !input.classList.contains("hidden"));
if (input !== undefined && input !== null) {
if (setting === true) {
input.focus();

View file

@ -72,7 +72,7 @@
"knip": "2.19.2",
"lint-staged": "13.2.3",
"only-allow": "1.2.1",
"oxlint": "0.16.7",
"oxlint": "0.16.12",
"prettier": "2.8.8",
"turbo": "2.3.3",
"vitest": "2.1.9"

View file

@ -22,7 +22,7 @@
"chokidar": "3.6.0",
"eslint": "8.57.1",
"madge": "8.0.0",
"oxlint": "0.16.7",
"oxlint": "0.16.12",
"tsup": "8.4.0",
"typescript": "5.5.4",
"vitest": "2.1.9"

View file

@ -18,7 +18,7 @@
"chokidar": "3.6.0",
"eslint": "8.57.1",
"madge": "8.0.0",
"oxlint": "0.16.7",
"oxlint": "0.16.12",
"tsup": "8.4.0",
"typescript": "5.5.4",
"vitest": "2.1.9"

View file

@ -14,7 +14,7 @@
"@monkeytype/eslint-config": "workspace:*",
"eslint": "8.57.1",
"nodemon": "3.1.4",
"oxlint": "0.16.7"
"oxlint": "0.16.12"
},
"bin": {
"monkeytype-release": "./src/index.js"

View file

@ -15,7 +15,7 @@
"devDependencies": {
"@monkeytype/typescript-config": "workspace:*",
"eslint": "8.57.1",
"oxlint": "0.16.7",
"oxlint": "0.16.12",
"typescript": "5.5.4"
},
"exports": {

View file

@ -17,7 +17,7 @@
"chokidar": "3.6.0",
"eslint": "8.57.1",
"madge": "8.0.0",
"oxlint": "0.16.7",
"oxlint": "0.16.12",
"tsup": "8.4.0",
"typescript": "5.5.4",
"vitest": "2.1.9",

View file

@ -6,7 +6,7 @@ export function isZodError(error: unknown): error is ZodError {
if (error instanceof ZodError) return true;
if (error.constructor.name === "ZodError") return true;
if ("issues" in error && error.issues instanceof Array) return true;
if ("issues" in error && Array.isArray(error.issues)) return true;
return false;
}

937
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff