Skip to content

Commit eba47d0

Browse files
MishaKavclaude
andauthored
docs: update isFormattingChange supported file types (#848)
Add CSS, SCSS, LESS, Markdown, JSX, TSX to the supported file types list. Update behavior description: unsupported types now fall back to whitespace normalization instead of returning false. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 28e5ad3 commit eba47d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/filter-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,9 +865,9 @@ run:
865865

866866
#### `isFormattingChange`
867867

868-
Return `true` if all file diffs are validated as formatting changes. This filter function works for JavaScript, TypeScript, Python, JSON, YAML and HTML.
868+
Return `true` if all file diffs are validated as formatting changes. This filter function works for JavaScript, TypeScript, JSX, TSX, Python, JSON, YAML, HTML, CSS, SCSS, LESS, Markdown, and other file types supported by Prettier.
869869

870-
gitStream determines formatting changes by minifying the source code for the incoming changes and the existing code and comparing them. If they are identical, this filter function returns `true`. If any unsupported languages are contained in the PR, gitStream will return `false`.
870+
gitStream determines formatting changes by minifying the source code for the incoming changes and the existing code and comparing them. If they are identical, this filter function returns `true`. For unsupported file types, gitStream falls back to whitespace normalization for comparison.
871871

872872
<div class="filter-details" markdown=1>
873873

0 commit comments

Comments
 (0)