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

Prevent unnamed functions for better debugging #147

Open
kumar303 opened this issue Aug 1, 2019 · 1 comment
Open

Prevent unnamed functions for better debugging #147

kumar303 opened this issue Aug 1, 2019 · 1 comment

Comments

@kumar303
Copy link

kumar303 commented Aug 1, 2019

Unnamed functions make certain types of debugging harder (like profiling). It would be nice to avoid them.

This rule looks like it will enforce named arrow functions: https://github.com/getify/eslint-plugin-proper-arrows

This looks like it will enforced named function functions: https://eslint.org/docs/rules/func-names

I haven't tested either one.

@kumar303
Copy link
Author

kumar303 commented Aug 2, 2019

We will probably want to make some exceptions for things like test definitions: describe(__filename, () => {...})

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

No branches or pull requests

2 participants