From 2bd3cb66f71caa37a749e169f5fceb42012ce1dd Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Sun, 23 Nov 2025 23:19:34 +0000 Subject: [PATCH] fix(apps, editors, napi): fix `oxlint-disable` comments (#16014) Fix a few `oxlint-disable` comments. 2 were unnecessary, the other was malformed. --- apps/oxlint/src-js/index.ts | 1 - editors/vscode/tests/test-helpers.ts | 2 +- napi/parser/test/typescript-make-units-from-test.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/oxlint/src-js/index.ts b/apps/oxlint/src-js/index.ts index 06d732b865d7c..f71d5ab18de6c 100644 --- a/apps/oxlint/src-js/index.ts +++ b/apps/oxlint/src-js/index.ts @@ -136,7 +136,6 @@ export function defineRule(rule: Rule): Rule { // and methods on another object which is its prototype. defineProperty(context, 'id', { value: eslintContext.id }); defineProperty(context, 'options', { value: eslintContext.options }); - // oxlint-disable-next-line typescript/unbound-method defineProperty(context, 'report', { value: eslintContext.report }); setPrototypeOf(context, getPrototypeOf(eslintContext)); diff --git a/editors/vscode/tests/test-helpers.ts b/editors/vscode/tests/test-helpers.ts index bbd6f38088c14..7dc2dd9fcb347 100644 --- a/editors/vscode/tests/test-helpers.ts +++ b/editors/vscode/tests/test-helpers.ts @@ -122,7 +122,7 @@ export async function writeToFixtureFile(file: string, content: string, workspac // oxlint-disable eslint/no-await-in-loop -- simulate key presses await commands.executeCommand('type', { text: char }); await sleep(50); - // oxlint-enable + // oxlint-enable eslint/no-await-in-loop } } diff --git a/napi/parser/test/typescript-make-units-from-test.ts b/napi/parser/test/typescript-make-units-from-test.ts index 2861d0d85611b..3fdc0fba2dfcd 100644 --- a/napi/parser/test/typescript-make-units-from-test.ts +++ b/napi/parser/test/typescript-make-units-from-test.ts @@ -126,7 +126,6 @@ function getErrorFiles(filePath, options) { * @param {string} code - Content of the test file * @returns {Object} TestCaseContent object */ -// oxlint-disable-next-line jest/no-export export function makeUnitsFromTest(filePath, code) { const currentFileOptions = new Map(); let currentFileName = null;