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

Add getFunctionKind() #201

Open
fisker opened this issue Feb 18, 2024 · 1 comment
Open

Add getFunctionKind() #201

fisker opened this issue Feb 18, 2024 · 1 comment

Comments

@fisker
Copy link

fisker commented Feb 18, 2024

When I work on unicorn/no-anonymous-default-export, I want to display function kind in error message, but I don't want display the function name default, make sense add getFunctionKind() to just return the function kind? Or maybe make getFunctionNameWithKind return kind and name separately?

@voxpelli
Copy link
Member

voxpelli commented Mar 8, 2024

Since getFunctionNameWithKind is already split up into three clear parts – modifiers, kinds and name – we could easily make a new method that returns those three parts separately and then have change getFunctionNameWithKind to simply concatenate those three together.

Want to do a PR?

Also: I guess you are one of the power users of this module outside of eslint-community, should we add you on as a co-maintainer for this one? Then we can help each other out more? Ping @MichaelDeBoey

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

No branches or pull requests

2 participants