-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
📎 Implement useImmediateReturn
#4748
Comments
This sounds like more an assist action rather than a lint rule 🤔 |
@ematipico eslint itself has kind of the same rule - arrow-body-style when configured to ‘as-needed’ or ‘never’. |
Yeah but this is a styling thing and it doesn't fit our rule pillars. An assist action seems to cover that |
🤷 - this can be said for a bunch of rules like ‘ useConsistentCurlyBraces’? Also more style related IMHO and still useful / relevant? |
Yes, there's a good chance we're going to move it |
After looking at it again, I agree that this seems like an assist. Do we have guidelines (like our rule pillars) for what should be a lint vs assist? |
I usually use our rule pillars to understand if a rule should be part of the linter or not. Another thing that I use as a guideline is editors. IntelliJ comes to mind, for example. For |
Description
Port the
prefer-immediate-return
rule fromeslint-plugin-sonarjs
.Want to contribute? Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
The text was updated successfully, but these errors were encountered: