From 71a0dcfeb3d00ce4aed58681c79605652c4810ef Mon Sep 17 00:00:00 2001 From: Andy Waite Date: Fri, 26 Jun 2026 21:04:07 -0400 Subject: [PATCH] Docs: Note multi-attribute wrap behavior on maxLineLength The formatter wraps tags with more than 3 attributes one-per-line regardless of maxLineLength. Surface this on the maxLineLength option so users aren't surprised when short multi-attribute tags wrap. Refs #928 --- javascript/packages/formatter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/packages/formatter/README.md b/javascript/packages/formatter/README.md index 25ba384ee..7a1c46991 100644 --- a/javascript/packages/formatter/README.md +++ b/javascript/packages/formatter/README.md @@ -226,7 +226,7 @@ The `include` patterns are **additive** - they add to the defaults. - **`enabled`**: `true` or `false` - Must be `true` to enable formatting - **`indentWidth`**: Number (default: `2`) - Spaces per indentation level -- **`maxLineLength`**: Number (default: `80`) - Maximum line length before wrapping +- **`maxLineLength`**: Number (default: `80`) - Maximum line length before wrapping. Note: tags with **more than 3 attributes** are always wrapped one-per-line, independent of `maxLineLength`. - **`include`**: Array of glob patterns - Additional patterns to format (additive to defaults) - **`exclude`**: Array of glob patterns - Patterns to exclude from formatting