| Summary: | [tern][eslint] Guessed types should not be flagged as problems in the no-undef-expression rule | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | JS Tools | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | curtis.windatt.public, Olivier_Thomann |
| Version: | 10.0 | Flags: | Olivier_Thomann:
review+
curtis.windatt.public: review+ |
| Target Milestone: | 12.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Michael Rennie
A real life example of this is in server.js - electron.app.* all get flagged as not being part of 'express'. Fix + tests: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=0032b1c3caffe5be54c64cf388c33065f3aea988 Curtis, Olivier, please review. +1 +1 I don't think that we should be checking the guess flag on the first findTypeExpr result. If we are guessing a type but then can't find the prop, we should fall into the second check (check the type of the object). However, in practice this case should never come up (if we get a guessed type information we should always be able to find the matching prop). |