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

Add index property to Transform #619

Merged

Conversation

isaacs
Copy link
Contributor

@isaacs isaacs commented Aug 25, 2023

This makes it possible to know which line is being transformed.

Fix: #611

There are some linting errors, but I'm not sure how to go about fixing them. for(;;) (or maybe .forEach()) is the right thing to use here, since the index is relevant, but xo really wants to only ever see for(of).

This makes it possible to know which line is being transformed.

Fix: vadimdemedes#611
src/output.ts Outdated Show resolved Hide resolved
@isaacs
Copy link
Contributor Author

isaacs commented Aug 25, 2023

Pushed a commit that fixes all lint errors, and most of the warnings. I didn't feel confident reducing parameter counts or indent levels, since that's a more involved refactoring than just running prettier --format and adding a few overrides.

@vadimdemedes
Copy link
Owner

Thanks!

@vadimdemedes vadimdemedes merged commit 0ee8e89 into vadimdemedes:master Sep 1, 2023
3 checks passed
@isaacs isaacs deleted the isaacs/transform-line-index branch September 4, 2023 13:20
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.

RFE: expose index of output line in Transform
3 participants