-
Notifications
You must be signed in to change notification settings - Fork 61
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
Mocha-aware prefer-arrow-callback #141
Comments
Could anyone point me in the proper direction for which files to generally look at to implement this? We would definitely love to have this at Loom. Currently we need two separate ESLint configs (one for our tests and one for all other stuff). |
I wrote the no-mocha-arrows rule. You need to add a file in |
In terms of usage, would making it similar to rules:
prefer-arrow-callback: off
mocha/prefer-arrow-callback: error I too would happily use it and get rid of my ugly |
Thanks to @quarklemotion this has been shipped in version |
As discussed at eslint/eslint#9255, it would be great to have a Mocha-aware version of
prefer-arrow-callback
which ignored Mocha globals but triggered errors for everything else.I would turn this on in a jiffy!
The text was updated successfully, but these errors were encountered: