Skip to content

fix(formatter_toml): format whitespace-only document to empty - #28899

Merged
graphite-app[bot] merged 1 commit into
mainfrom
11-06-fix_formatter_toml_allow_empty_document
Nov 6, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
11-06-fix_formatter_toml_allow_empty_document

Conversation

@leaysgur

@leaysgur leaysgur commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

The same as #28898 , for TOML formatter.

Will fix this along with #26325

leaysgur commented Nov 6, 2026 •

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added A-cli Area - oxlint / oxfmt common CLI behavior: flags, ignore files, oxc_config A-formatter Area - Formatter (oxfmt). Add F-* labels for details labels Nov 6, 2026
@leaysgur
leaysgur force-pushed the 11-06-fix_formatter_toml_allow_empty_document branch from a340147 to b6cec82 Compare November 6, 2026 12:42
@leaysgur
leaysgur force-pushed the 11-06-fix_formatter_graphql_allow_empty_document branch from 96bd5a3 to 8d0c6e3 Compare November 6, 2026 12:42
@leaysgur leaysgur changed the title fix(formatter_toml): allow empty document fix(formatter_toml): format whitespace-only document to empty Nov 6, 2026
@graphite-app graphite-app Bot added the 0-merge Merge with Graphite Merge Queue label Nov 6, 2026
@graphite-app

graphite-app Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Merge activity

@graphite-app
graphite-app Bot force-pushed the 11-06-fix_formatter_graphql_allow_empty_document branch from 8d0c6e3 to cedba44 Compare November 6, 2026 13:34
graphite-app Bot pushed a commit that referenced this pull request Nov 6, 2026
The same as #28898 , for TOML formatter.

Will fix this along with #26325
@graphite-app
graphite-app Bot force-pushed the 11-06-fix_formatter_toml_allow_empty_document branch from b6cec82 to 538950a Compare November 6, 2026 13:35
@graphite-app
graphite-app Bot force-pushed the 11-06-fix_formatter_graphql_allow_empty_document branch from cedba44 to 72189b4 Compare November 6, 2026 13:42
graphite-app Bot pushed a commit that referenced this pull request Nov 6, 2026
The same as #28898 , for TOML formatter.

Will fix this along with #26325
@graphite-app
graphite-app Bot force-pushed the 11-06-fix_formatter_toml_allow_empty_document branch from 538950a to a8af893 Compare November 6, 2026 13:43
The same as #28898 , for TOML formatter.

Will fix this along with #26325
@graphite-app
graphite-app Bot force-pushed the 11-06-fix_formatter_graphql_allow_empty_document branch from 72189b4 to 5e1e02c Compare November 6, 2026 13:53
@graphite-app
graphite-app Bot force-pushed the 11-06-fix_formatter_toml_allow_empty_document branch from a8af893 to 2f80765 Compare November 6, 2026 13:54
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Nov 6, 2026
Base automatically changed from 11-06-fix_formatter_graphql_allow_empty_document to main November 6, 2026 14:02
@graphite-app
graphite-app Bot merged commit 2f80765 into main Nov 6, 2026
34 checks passed
@graphite-app
graphite-app Bot deleted the 11-06-fix_formatter_toml_allow_empty_document branch November 6, 2026 14:02
graphite-app Bot pushed a commit that referenced this pull request Nov 9, 2026
# Oxlint
### 🚀 Features

- 6195265 linter/promise/prefer-catch: Implement suggestion (#28919) (Mikhail Baev)

### 🐛 Bug Fixes

- 9c62d2a linter/eslint/no-unreachable-loop: Ignore enclosing finalizers for continues (#29004) (camc314)
- 6303df1 jsdoc: Preserve param tags after unmatched description delimiters (#28923) (Vishal Punjabi)
- fe66fa7 linter/eslint/no-lone-blocks: Report redundant blocks in function bodies (#29043) (camc314)
- e1694bd linter/unicorn/no-useless-undefined: Preserve shadowed bindings (#29046) (camc314)
- 791b5f5 linter/unicorn/prefer-regexp-test: Restrict automatic argument swaps (#29045) (camc314)
- e7654f6 linter/react/display-name: Ignore unrelated memo and forwardRef calls (#29005) (camc314)
- 2487360 linter/unicorn/no-useless-undefined: Report guarded indexed access (#29014) (camc314)
- a791a5b cfg: Resolve continues through stacked loop labels (#29016) (camc314)
- 287ba19 linter/eslint/id-length: Ignore TypeScript qualified references (#29037) (camc314)
- b71234f cfg: Skip labeled contexts for unlabeled jumps (#29001) (camc314)
- bb21a3c linter/import/no-anonymous-default-export: Report parenthesized exports (#29002) (camc314)
- f38f738 linter/eslint/prefer-destructuring: Skip fixes that remove comments (#29003) (camc314)
- bf11006 linter/react/exhaustive-deps: Suggest dependency removals (#28925) (camc314)
- 6bbb92a linter: Remove unused `oxlint-disable` directives with `--fix` (#27698) (Ryan Tsao)
- 3b35cb6 linter/disable-directives: Preserve separators and disable spans (#28921) (camc314)
- 1253445 linter/eslint/no-restricted-imports: Report re-exported imports once (#28920) (Ramy Akin Saidi)

### ⚡ Performance

- da620e6 linter: Start tsgolint before the regular lint pass (#28824) (Max Schwenk)
# Oxfmt
### 🐛 Bug Fixes

- 449e91f oxfmt: Format ts-in-astro as TSX (#29080) (leaysgur)
- 8d8845e formatter/jsdoc: Strip `*` prefixes from multiline default value (#28910) (leaysgur)
- cdb1501 formatter/jsdoc: Handle every line terminator in multi-line JSDoc types (#28909) (leaysgur)
- fd51bff jsdoc: Handle every line terminators as newline (#28902) (leaysgur)
- 2f80765 formatter_toml: Format whitespace-only document to empty (#28899) (leaysgur)
- 5e1e02c formatter_graphql: Allow empty document (#28898) (leaysgur)
- 06e72c0 formatter/tailwind: Normalize CR in Tailwind template with `preserveWhitespace` (#28896) (leaysgur)

### ⚡ Performance

- 934ca98 formatter: Use `Arc` for tailwind options across embedding (#29079) (leaysgur)
- dde9c5c formatter_htmlish: Skip `</script` escape if possible (#29078) (leaysgur)
- dc4d918 formatter: Format embedded expr of one name without parsing (#29077) (leaysgur)

### 📚 Documentation

- eb2eb2d formatter_htmlish: Cover block elements in `DIVERGENCES.md#interpolation-element-as-text` (#28901) (leaysgur)
- 0f4ec80 formatter/tailwind: Note Tailwind sorting tears escaped whitespace apart (#28900) (leaysgur)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - oxlint / oxfmt common CLI behavior: flags, ignore files, oxc_config A-formatter Area - Formatter (oxfmt). Add F-* labels for details

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant