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(no-wait-for-side-effects): catch implicit arrow function return #352

Merged

Conversation

zaicevas
Copy link
Contributor

Closes #351

Copy link
Collaborator

@gndelia gndelia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your first PR ❤️

lib/rules/no-wait-for-side-effects.ts Outdated Show resolved Hide resolved
lib/rules/no-wait-for-side-effects.ts Outdated Show resolved Hide resolved
lib/rules/no-wait-for-side-effects.ts Show resolved Hide resolved
Copy link
Member

@Belco90 Belco90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, @zaicevas thanks for your first PR! It looks great, just a couple of small tweaks, and should be ready to go.

May I ask how did you feel working within the codebase? We have put a lot of effort into making it more maintainable not only for usual contributors but also for outside ones, so any feedback you have around this would be really appreciated.

lib/rules/no-wait-for-side-effects.ts Outdated Show resolved Hide resolved
@Belco90 Belco90 changed the title fix: no-wait-for-side-effects does not catch implicit arrow function return fix(no-wait-for-side-effects): catch implicit arrow function return Apr 23, 2021
MichaelDeBoey
MichaelDeBoey previously approved these changes Apr 24, 2021
Copy link
Member

@Belco90 Belco90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Nice work @zaicevas 🚀

@Belco90 Belco90 requested a review from gndelia April 25, 2021 10:40
@Belco90 Belco90 dismissed gndelia’s stale review April 25, 2021 10:40

Changes requested were addressed already.

@Belco90 Belco90 merged commit 0d105df into testing-library:main Apr 25, 2021
@Belco90
Copy link
Member

Belco90 commented Apr 25, 2021

@all-contributors please add @zaicevas for bug, code and test

@allcontributors
Copy link
Contributor

@Belco90

I've put up a pull request to add @zaicevas! 🎉

@github-actions
Copy link

🎉 This PR is included in version 4.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@zaicevas
Copy link
Contributor Author

Hey, @zaicevas thanks for your first PR! It looks great, just a couple of small tweaks, and should be ready to go.

May I ask how did you feel working within the codebase? We have put a lot of effort into making it more maintainable not only for usual contributors but also for outside ones, so any feedback you have around this would be really appreciated.

The development experience is great. I enjoyed it and it's motivating to contribute more. Tests are fast, CI/CD is convenient, so it looks like it's easy to quickly make an impact. I've never coded anything eslint related, yet it didn't take me more than a couple of hours to throw this together.

For the first 30 minutes I had no idea where to start, until I've realized it's all based on AST and found https://astexplorer.net/
After that it all started to make sense and the code proved to be very clear & extendable. Perhaps it could be useful mentioning this or other similar tools in https://github.com/testing-library/eslint-plugin-testing-library/blob/main/CONTRIBUTING.md

Another that I think could be of use in CONTRIBUTING.md is a section on how to try out changes locally (besides tests). I suppose symlinking with yarn link or npm link is relatively simple and could work here.

Thanks for your first PR ❤️
Awesome! Nice work @zaicevas 🚀

More than happy to help ☺️

@Belco90
Copy link
Member

Belco90 commented Apr 25, 2021

@zaicevas thanks for your feedback, really useful! It's definitely a good idea to include some AST info and AST Explorer link to our CONTRIBUTING: the explorer is a must when dealing with AST, isn't it?

Also interesting to add a section for trying changes locally (actually someone asked the very same thing the other day in Testing Library Discord).

I'll create an issue for this.

@zaicevas
Copy link
Contributor Author

(actually someone asked the very same thing the other day in Testing Library Discord).

That was me, by the way :trollface:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no-wait-for-side-effects does not catch returned side effect
4 participants