Skip to content

Commit 75f9c99

Browse files
style(lint): format to the repo's 100-column width
`oxfmt --check` is a CI gate and these lines exceeded the repo's 100-column printWidth. Formatting only: verified whitespace- and trailing-comma-identical to the previous revision, with the comparison shown to detect a real change. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
1 parent c98cac0 commit 75f9c99

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎packages/lint/src/rules/composition.test.ts‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,21 +2192,27 @@ describe("composition rules", () => {
21922192

21932193
it("warns when data-width exceeds the cap", async () => {
21942194
const result = await lintHyperframeHtml(root(`data-width="5000" data-height="400"`));
2195-
const finding = result.findings.find((f) => f.code === "composition_exceeds_inspection_viewport_cap");
2195+
const finding = result.findings.find(
2196+
(f) => f.code === "composition_exceeds_inspection_viewport_cap",
2197+
);
21962198
expect(finding?.severity).toBe("warning");
21972199
expect(finding?.message).toContain("data-width=5000");
21982200
expect(finding?.message).not.toContain("data-height");
21992201
});
22002202

22012203
it("warns when data-height exceeds the cap", async () => {
22022204
const result = await lintHyperframeHtml(root(`data-width="1080" data-height="4500"`));
2203-
const finding = result.findings.find((f) => f.code === "composition_exceeds_inspection_viewport_cap");
2205+
const finding = result.findings.find(
2206+
(f) => f.code === "composition_exceeds_inspection_viewport_cap",
2207+
);
22042208
expect(finding?.message).toContain("data-height=4500");
22052209
});
22062210

22072211
it("names both axes when both exceed the cap", async () => {
22082212
const result = await lintHyperframeHtml(root(`data-width="5000" data-height="4500"`));
2209-
const finding = result.findings.find((f) => f.code === "composition_exceeds_inspection_viewport_cap");
2213+
const finding = result.findings.find(
2214+
(f) => f.code === "composition_exceeds_inspection_viewport_cap",
2215+
);
22102216
expect(finding?.message).toContain("data-width=5000 and data-height=4500");
22112217
});
22122218

0 commit comments

Comments
 (0)