Skip to content

feat: add taplo formatter for TOML files#19010

Open
thiagohcaserta wants to merge 1 commit intoanomalyco:devfrom
thiagohcaserta:feat/add-taplo-formatter
Open

feat: add taplo formatter for TOML files#19010
thiagohcaserta wants to merge 1 commit intoanomalyco:devfrom
thiagohcaserta:feat/add-taplo-formatter

Conversation

@thiagohcaserta
Copy link

Issue for this PR

Closes #19009

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds taplo as a built-in formatter for TOML (.toml) files. While prettier can handle TOML, taplo is the dedicated TOML toolkit and provides more accurate formatting. It's widely used across Rust (Cargo.toml), Python (pyproject.toml), and other ecosystems.

Enabled when taplo is found in PATH, runs taplo fmt $FILE. Follows the same pattern as the other built-in formatters.

How did you verify your code works?

Installed taplo locally and confirmed .toml files are formatted in place via taplo fmt. Verified the exported object matches the Info interface and is consistent with the other built-in formatters.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add taplo formatter support for TOML files

1 participant