Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"allow": ["URL", "URLSearchParams"]
}
],
"typescript/no-unnecessary-template-expression": "error",
"jsx-a11y/interactive-supports-focus": "off",
"unicorn/prefer-spread": "error"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/issue/resolve-commit-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export async function resolveCommitSpec(
if (!match) {
throw new ValidationError(
`--in @commit:${spec.repository}@${spec.commit}: no Sentry repository named '${spec.repository}' in organization '${orgSlug}'.\n\n` +
`${formatAvailableRepos(sentryRepos)}`,
formatAvailableRepos(sentryRepos),
"in",
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/db/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ export function buildMultiTargetContextKey(
? escapeContextKeyValue(filters.query)
: undefined;
return (
`${base}` +
base +
(escapedSort ? `|sort:${escapedSort}` : "") +
`|period:${escapedPeriod}` +
(escapedQuery ? `|q:${escapedQuery}` : "") +
Expand Down
4 changes: 1 addition & 3 deletions packages/cli/src/lib/formatters/human.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2423,9 +2423,7 @@ export function formatUpgradeResult(data: UpgradeResult): string {
default: {
// Exhaustive check — all action types should be handled above
const _: never = data.action;
lines.push(
`${ACTION_DESCRIPTIONS[_ as UpgradeResult["action"]] ?? "Done"}`,
);
lines.push(ACTION_DESCRIPTIONS[_ as UpgradeResult["action"]] ?? "Done");
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/lib/command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ describe("buildCommand return-based output", () => {
auth: false,
docs: { brief: "Test" },
output: {
human: (d: { id: number; name: string; role: string }) => `${d.name}`,
human: (d: { id: number; name: string; role: string }) => d.name,
},
parameters: {},
async *func(this: TestContext) {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/lib/delta-upgrade.mocked.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ describe("resolveNightlyDelta", () => {
mediaType: "application/octet-stream",
size: 1000,
annotations: {
"org.opencontainers.image.title": `${BINARY_NAME}`,
"org.opencontainers.image.title": BINARY_NAME,
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/lib/formatters/output.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe("renderCommandOutput", () => {
test("renders JSON when json=true", () => {
const w = createTestWriter();
const config: OutputConfig<{ id: number; name: string }> = {
human: (d) => `${d.name}`,
human: (d) => d.name,
};
render(w, { id: 1, name: "Alice" }, config, { json: true });
expect(JSON.parse(w.output)).toEqual({ id: 1, name: "Alice" });
Expand Down
4 changes: 3 additions & 1 deletion packages/cli/test/lib/formatters/text-table.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ describe("truncate option", () => {
});

test("ellipsis inherits ANSI color from surrounding text", () => {
const colored = `${chalk.hex("#898294")("A very long colored text that will be truncated at the boundary")}`;
const colored = chalk.hex("#898294")(
"A very long colored text that will be truncated at the boundary",
);
const out = renderTextTable(["VAL"], [[colored]], {
maxWidth: 30,
truncate: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/lib/hex-id.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ describe("validateHexId", () => {
});

test("throws for newline-separated IDs (not a single valid ID)", () => {
const multiLine = `${VALID_ID}\n${"bbbb1111cccc2222dddd3333eeee4444"}`;
const multiLine = `${VALID_ID}\nbbbb1111cccc2222dddd3333eeee4444`;
expect(() => validateHexId(multiLine, "test ID")).toThrow(ValidationError);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function StdioSetup() {
const mcpStdioSnippet = `npx ${NPM_PACKAGE_NAME}@latest`;

const selfHostedHostExample = [
`${mcpStdioSnippet}`,
mcpStdioSnippet,
"--access-token=sentry-user-token",
"--host=sentry.example.com",
].join(" \\\n ");
Expand Down Expand Up @@ -63,10 +63,9 @@ export default function StdioSetup() {
</ul>
<p>Now wire up that token to the MCP configuration:</p>
<CodeSnippet
snippet={[
`${mcpStdioSnippet}`,
"--access-token=sentry-user-token",
].join(" \\\n ")}
snippet={[mcpStdioSnippet, "--access-token=sentry-user-token"].join(
" \\\n ",
)}
/>
<div className="mt-6">
<h4 className="text-base font-semibold text-slate-100">
Expand Down
6 changes: 3 additions & 3 deletions packages/mcp-core/src/internal/formatting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ function formatN1QueryEvidence(
// Format parent span info if available
if (evidenceData.parentSpan) {
parts.push("**Parent Operation:**");
parts.push(`${evidenceData.parentSpan}`);
parts.push(evidenceData.parentSpan);
parts.push("");
}

Expand Down Expand Up @@ -1562,7 +1562,7 @@ function formatSlowDbQueryEvidence(
// Show parent span if available (generic field that applies to slow queries)
if (evidenceData.parentSpan) {
parts.push("**Parent Operation:**");
parts.push(`${evidenceData.parentSpan}`);
parts.push(evidenceData.parentSpan);
parts.push("");
}

Expand Down Expand Up @@ -2073,7 +2073,7 @@ function formatGenericEventOutput(event: Event): string {
for (const display of occurrence.evidenceDisplay) {
if (display.important) {
parts.push(`**${display.name}:**`);
parts.push(`${display.value}`);
parts.push(display.value);
parts.push("");
}
}
Expand Down
Loading