-
-
Notifications
You must be signed in to change notification settings - Fork 30
prefer-object-rule false positives #201
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
Comments
I think this is a pre-existing issue. That's why ESLint only enables the It's showing up now because we added this rule to the |
I was thinking it can be a docs improvement - suggest using or we will have to remove it from the recommended - it could be confusing for inexperienced users. |
I opened a doc improvement for this in #204. I would strongly prefer to keep However, if necessary, as a bug fix, we could make our function-style rule detection more strict. Instead of just looking for:
We could look for a default-exported function that has at least one object return:
This would help reduce false positives. |
I've just tried
[email protected]
in eslint repo.We can suggest users to use
overrides
to avoid these cases?The text was updated successfully, but these errors were encountered: