| Summary: | [eslint] Update no-reserved-keys to include MemberExpressions | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | JS Tools | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Olivier_Thomann |
| Version: | 12.0 | ||
| Target Milestone: | 13.0 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
We should extend the checking for using reserved words as object property keys to check member expressions as well as object expressions. This would flag and provide a fix for patterns like: var a = { for: 1 //already flagged - good }; a.for; //no warning - bad