| Summary: | [eslint] Provide a use-isnan rule | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | JS Tools | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | Michael_Rennie |
| Version: | 5.0 | ||
| Target Milestone: | 6.0 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Pushed new rule + tests to: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=90c72828a07690b6e17454fe3bdd24d8cbe1d073 |
Provide a rule to warn when comparisons are made against NaN using regular operators like ==, !==, <, > and so on Warning should be: > Use the isNaN function to compare with NaN.