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

fix: update codemods to retain empty lines #5265

Merged
merged 4 commits into from
Nov 12, 2024

Conversation

HeartSquared
Copy link
Contributor

Why

Running codemods removes pre-existing blank lines, which can't be easily fixed by linting rules.

This is by design for TypeScript AST transformation, thus the extra transforming workarounds.
https://stackoverflow.com/questions/51353988/typescript-ast-transformation-removes-all-blank-lines

What

Update codemod transformers to retain pre-existing blank lines.

@HeartSquared HeartSquared requested a review from a team as a code owner November 11, 2024 10:35
Copy link

changeset-bot bot commented Nov 11, 2024

🦋 Changeset detected

Latest commit: 6692b2d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kaizen/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Nov 11, 2024

✨ Here is your branch preview! ✨

Last updated for commit 6692b2d: Merge branch 'main' into KZN-2833/codemod-blank-lines

@HeartSquared HeartSquared merged commit 034fbf2 into main Nov 12, 2024
20 checks passed
@HeartSquared HeartSquared deleted the KZN-2833/codemod-blank-lines branch November 12, 2024 02:09
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.

2 participants