chore(lint): remove underscore-dangle allow list (#83542)

* chore(lint): reduce underscore-dangle exceptions

* chore(lint): reduce more underscore exceptions

* chore(lint): remove underscore-dangle allow list

* fix(lint): repair underscore cleanup regressions

* test(lint): track version define suppression
This commit is contained in:
Peter Steinberger
2026-05-18 14:56:06 +01:00
committed by GitHub
parent 5613f5fd05
commit 4f4d108639
739 changed files with 3223 additions and 3212 deletions

View File

@@ -1,6 +1,6 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import { formatCliCommand } from "../command-format.js";
import { ensureConfigReady, __test__ } from "./config-guard.js";
import { ensureConfigReady, testApi } from "./config-guard.js";
const loadAndMaybeMigrateDoctorConfigMock = vi.hoisted(() => vi.fn());
const readConfigFileSnapshotMock = vi.hoisted(() => vi.fn());
@@ -52,7 +52,7 @@ async function withCapturedStdout(run: () => Promise<void>): Promise<string> {
}
describe("ensureConfigReady", () => {
const resetConfigGuardStateForTests = __test__.resetConfigGuardStateForTests;
const resetConfigGuardStateForTests = testApi.resetConfigGuardStateForTests;
async function runEnsureConfigReady(commandPath: string[], suppressDoctorStdout = false) {
const runtime = makeRuntime();

View File

@@ -137,6 +137,7 @@ export async function ensureConfigReady(params: {
}
}
export const __test__ = {
export const testApi = {
resetConfigGuardStateForTests,
};
export { testApi as __test__ };

View File

@@ -22,7 +22,7 @@ const { ensurePluginRegistryLoaded } = await import("../../plugin-registry.js");
const hasHooksMock = vi.fn((_hookName: string) => false);
const runGatewayStopMock = vi.fn(
async (_event: { reason?: string }, _ctx: Record<string, unknown>) => {},
async (eventValue: { reason?: string }, _ctx: Record<string, unknown>) => {},
);
const runGlobalGatewayStopSafelyMock = vi.fn(
async (params: {

View File

@@ -2,7 +2,7 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
import { renderRootHelpText } from "./root-help.js";
const getPluginCliCommandDescriptorsMock = vi.fn(
async (_config?: unknown, _env?: unknown, _loaderOptions?: unknown) => [
async (configForTest?: unknown, _env?: unknown, _loaderOptions?: unknown) => [
{
name: "matrix",
description: "Matrix channel utilities",