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
func-names causes visual clutter inside editors #12022
func-names causes visual clutter inside editors #12022
Comments
Hi @xsrvmy, thanks for the issue. I think this is a great idea. I will champion this change. |
One thing we should account for when we actually implement this is the potential for return types (I think they should be highlighted as well). |
For reference, we have a utility, getFunctionHeadLoc(). |
I think there's no need to add a new option. |
Since I both championed and @eslint/eslint-team Could we get one more |
here is the 3rd |
The func-names rule flags the entire function instead of just the declaration, causing visual clutter in editors such as VSCode.
What rule do you want to change?
func-names
Does this change cause the rule to produce more or fewer warnings?
No
How will the change be implemented? (New option, new default behavior, etc.)?
Either new option, or change current behaviour.
Please provide some example code that this change will affect:
What does the rule currently do for this code?
Highlights the entire function declaration as a warning.
What will the rule do after it's changed?
Highlight only
function ()
.Are you willing to submit a pull request to implement this change?
Maybe
The text was updated successfully, but these errors were encountered: