Skip to content

JavaScript - unify the indent on the top-level too#6214

Merged
greg-at-moderne merged 3 commits intomainfrom
greg-js-unify-indent-on-top-level-too
Oct 29, 2025
Merged

JavaScript - unify the indent on the top-level too#6214
greg-at-moderne merged 3 commits intomainfrom
greg-js-unify-indent-on-top-level-too

Conversation

@greg-at-moderne
Copy link
Contributor

@greg-at-moderne greg-at-moderne commented Oct 29, 2025

What's changed?

Fix the JavaScript autoformatting wrt indents on the top-level of the program. The autoformat tried to keep the indent, even if it wasn't the same along the code. Now it sets it to 0.

(Also a minor refactoring to some related test cases)

What's your motivation?

I think that's naturally expected.

@greg-at-moderne greg-at-moderne marked this pull request as ready for review October 29, 2025 10:36
@greg-at-moderne greg-at-moderne merged commit f638b61 into main Oct 29, 2025
2 checks passed
@greg-at-moderne greg-at-moderne deleted the greg-js-unify-indent-on-top-level-too branch October 29, 2025 10:36
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant