| Summary: | [eslint] no-shadow-global does not warn about builtins | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | JS Tools | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Michael_Rennie |
| Version: | 8.0 | ||
| Target Milestone: | 9.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Fix + tests: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=04868d3ae3d15169e6b0074f7e1251523fb2cc16 while scoping the checks to only check against the environment registered for the source file I clumsily forgot to always include 'builtin'. Good catch Mark. |
The following code does not generate any no-shadow-global warnings: /*eslint no-unused-vars:0*/ function shadow() { var Math, Object; // shadowing } Perhaps it should.