Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 495164

Summary: [eslint] Update no-reserved-keys to include MemberExpressions
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: 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:

Description Michael Rennie CLA 2016-06-01 09:37:32 EDT
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