| Summary: | [eslint] missing-requirejs rule fails to validate 3 arg define call | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | JS Tools | Assignee: | 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: | |||
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'