-
Notifications
You must be signed in to change notification settings - Fork 140
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(prefer-find-by): stop prefer-find-by fixer to break code when no … #472
Conversation
…spaces before bracket
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dyatko!
Good catch! And thank you very much for opening a PR with the fix, I really appreciate it.
It looks good to me, just a small question about if we could make it even more generic. Don't sweat it if it seems an overengineering solution, the current version is better than before!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks again for your contribution.
Getting really weird errors in the pipeline when running the tests. I'll have to take a look, no idea what's happening at first sight. |
That's a different issue actually: you can see how it's failing to try to install some dependencies. Our error is caused by Node v16.9.0: nodejs/node#40030 We need to avoid this version meanwhile and stick to v16.8.0. I'm gonna create a PR to stick that Node version our GitHub Actions, so we can get that change here. |
Pull request created: #473 |
🎉 This PR is included in version 4.12.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@all-contributors please add @dyatko for bug and code |
I've put up a pull request to add @dyatko! 🎉 |
…spaces before bracket
Checks
Changes
Add check for spaces before brackets for
prefer-find-by
fixerContext
The rule fixer didn't assume that some codebases may not separate brackets with spaces, so it's braking the code: