You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @littlemoji, thanks for the issue, i am a bit confuse, your title says 'to add suggestions' but from the code example you have given seems like the issue is about to enable the rule to check the types also, can you clear this.
If you're proposing to report an error in the code in the example, this is not possible in eslint because eslint doesn't have type information. But it's possible in ts-eslint. /cc @bradzacher
You could use scope analysis to attempt to resolve an expression to a static value (I believe there's already a util function you guys use for this purpose!) which would let you provide extra help messages for some cases.
What rule do you want to change?
no-constant-binary-expression
What change do you want to make?
Generate more warnings
How do you think the change should be implemented?
A new default behavior
Example code
What does the rule currently do for this code?
nothing, no error report
What will the rule do after it's changed?
Report an error
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: