Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Alignment of tabbed text in biome check output is wrong #5279

Open
1 task done
mayfieldiv opened this issue Mar 5, 2025 · 0 comments
Open
1 task done

🐛 Alignment of tabbed text in biome check output is wrong #5279

mayfieldiv opened this issue Mar 5, 2025 · 0 comments
Labels
S-Needs triage Status: this issue needs to be triaged

Comments

@mayfieldiv
Copy link

Environment information

CLI:
  Version:                      1.9.4
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v22.13.1"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "bun/1.2.4"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

What happened?

Tabs are rendered as (which takes up 2 spaces) and as 4 spaces for lines that are just context. In the screenshot, see that line 4 in the biome check output is showing as being vertically aligned with line 5, even though line 5 has 2 tabs while line 4 has 1 tab.

Image

This can be reproduced with a single biome.jsonc file and having it check itself for formatting
biome check ./biome.jsonc

// biome.jsonc
{
	"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
	"json": {
		"formatter": { "trailingCommas": "all" }
	}
}

Expected result

I'd expect the context line tabs to be 2 spaces instead of 4

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@mayfieldiv mayfieldiv added the S-Needs triage Status: this issue needs to be triaged label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Needs triage Status: this issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant