-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
disallow rejecting non-errors #3
Comments
I like that idea. I haven't used promises too too much, but if that's a standard practice I think we should enforce it. |
I like that |
This is definitely standard practice. It would be a great rule to add. |
So http://eslint.org/docs/rules/no-throw-literal will handle the This rule would just be for |
Also |
How should it handle custom errors? I suggest it accepts anything that matches |
It should just follow the same rules as no-throw-literal. It's fine to do things like |
Yep I agree with this. I'll get it in there soon. |
It looks like |
I'm going to close this for now, since |
similar to
throw 'string'
, rejecting anything but an error should be discouragedThe text was updated successfully, but these errors were encountered: