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

Bug 495336

Summary: [eslint] missing-requirejs rule fails to validate 3 arg define call
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: 12.0   
Target Milestone: 12.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Michael Rennie CLA 2016-06-02 14:27:58 EDT
Steps:

1. create new project, add a source file with the following contents:

2. add a .tern-project file with a plugins section like:

"plugins" : {
  "node" : {}
}
define("mymodule", [], function(require){});

2. I would expect 'define' to be tagged, but its not

The reason is a typo in the if statement to check the 3 arg case (typeof node.arguments[0] === 'string should be typeof node.arguments[0].value === string'