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

Bug 429803

Summary: [eslint] Warning about statements in blocks should not warn for else-if
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 6.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Michael Rennie CLA 2014-03-06 11:54:20 EST
FUP to bug 429722.

Consider the following snippet:

if(true) {
  var i = 1;
} else if(false) {
    var f = 3;
}

The second if is marked to be placed in braces, when in fact it should be allowed the way it is.