From 873c8b3e8645b5fc0d4493114e87ffcc0cc52ebe Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 10 Jun 2026 05:53:10 -0700 Subject: [PATCH] editorconfig: Widen *.astro files to 100 characters. Signed-off-by: Anders Kaseorg --- .editorconfig | 2 +- .../src/components/FlattenedList.astro | 5 +--- .../src/components/KeyboardTip.astro | 8 ++----- .../src/components/NavigationSteps.astro | 23 ++++--------------- starlight_help/src/components/ZulipTip.astro | 6 ++--- 5 files changed, 11 insertions(+), 33 deletions(-) diff --git a/.editorconfig b/.editorconfig index ffe0375a29..7ffc37ba0d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,7 +12,7 @@ trim_trailing_whitespace = true binary_next_line = true switch_case_indent = true -[*.{cjs,cts,js,json,mjs,mts,ts}] +[*.{astro,cjs,cts,js,json,mjs,mts,ts}] max_line_length = 100 [*.{py,pyi}] diff --git a/starlight_help/src/components/FlattenedList.astro b/starlight_help/src/components/FlattenedList.astro index 5e7619995b..a62ab896f2 100644 --- a/starlight_help/src/components/FlattenedList.astro +++ b/starlight_help/src/components/FlattenedList.astro @@ -16,10 +16,7 @@ const tree_with_removed_newlines = { }), }; const first_element = tree_with_removed_newlines.children[0]; -assert.ok( - first_element?.type === "element" && - ["ol", "ul"].includes(first_element.tagName), -); +assert.ok(first_element?.type === "element" && ["ol", "ul"].includes(first_element.tagName)); const flattened = { ...first_element, children: tree_with_removed_newlines.children.flatMap((other) => { diff --git a/starlight_help/src/components/KeyboardTip.astro b/starlight_help/src/components/KeyboardTip.astro index 3f983cb631..7921566a53 100644 --- a/starlight_help/src/components/KeyboardTip.astro +++ b/starlight_help/src/components/KeyboardTip.astro @@ -10,8 +10,7 @@ import keyboard_svg from "../../../web/icons/keyboard.svg?raw"; const keyboard_icon_fragment = fromHtml(keyboard_svg, {fragment: true}); const keyboard_icon_first_child = keyboard_icon_fragment.children[0]!; assert.ok( - keyboard_icon_first_child.type === "element" && - keyboard_icon_first_child.tagName === "svg", + keyboard_icon_first_child.type === "element" && keyboard_icon_first_child.tagName === "svg", ); keyboard_icon_first_child.properties.class = "zulip-unplugin-icon"; @@ -37,10 +36,7 @@ first_element.children = [...prefix_element_list, ...first_element.children]; tree.children[0] = first_element; --- -