-
Notifications
You must be signed in to change notification settings - Fork 49
The assertion-arguments
rule should validate message argument type
#167
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
Sorry forgot to raise an issue for this. Thank you, @sindresorhus . |
assertion-arguments
rule should validate message argument typeassertion-arguments
rule should validate message argument type
@issuehunt has funded $60.00 to this issue.
|
Should this be under a new option or by default ? |
Default, I think. AVA already validates this, so I think it's unlikely anybody will see their linter rules fail, tests would have already been failing. I don't think we need a major release for this. @sindresorhus what do you reckon? |
Agreed |
@sindresorhus has rewarded $54.00 to @gmartigny. See it on IssueHunt
|
Uh oh!
There was an error while loading. Please reload this page.
This currently passes
t.deepEqual({}, {}, {});
, which can make for some hard to debug issues. @gajus reported such issue on Gitter.We should ensure that if
message
is specified, it's a string. We could implement inline literal validation first, as that's pretty easy.We should also detect the type if it's a variable defined in the same scope:
@jfmengels Many rules could use some kind of naive type inference. Maybe
eslint-ast-utils
could add something like that?IssueHunt Summary
Backers (Total: $60.00)
Submitted pull Requests
Tips
The text was updated successfully, but these errors were encountered: