-
-
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 lint/useShorthandFunctionType
- typescript-eslint/prefer-function-type
#48
Comments
lint/useShorthandFunctionType
typescript-eslint/prefer-function-type
lint/useShorthandFunctionType
- typescript-eslint/prefer-function-type
Hey @Conaclos I'd be happy to take a look at this one. |
Assigned :) |
@Conaclos hope you can help me here - is there a way of converting a |
Aha, not sure what I was doing wrong but I've got it working! 😄 |
The eslint rule seems to show a slightly different message for the third example here... should we include this? I'm not sure if it feels a bit different from the rule we're trying to implement. @Conaclos what do you think about this? The returning of |
I've opened a WIP PR for this, I found it quite difficult to get to where it is now, and I feel my code is a bit messy. Would love some feedback when you have time! |
I agree. I think we could just ignore a call signature that returns We could add a dedicated rule for this. |
Description
prefer-function-type
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: