Bug 453093 - [eslint] Provide linting rule to warn about unknown logical paths
Summary: [eslint] Provide linting rule to warn about unknown logical paths
Status: CLOSED WONTFIX
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: JS Tools (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 491512
Blocks:
  Show dependency tree
 
Reported: 2014-11-24 12:02 EST by Michael Rennie CLA
Modified: 2017-01-10 15:41 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2014-11-24 12:02:11 EST
Consider the following snippet:

define([
'foo/bar'
], function(foo) {
//TODO
});

if we hovered over that define literal there would be no file to nav to. We could use this same logic to lint the file. The drawback of this is that for non-Orion files we have to ask the fileClient and do some translation - which could be very slow for a lot of define literals.
Comment 1 Michael Rennie CLA 2016-04-12 12:50:53 EDT
Related, bug 491512 - the infos in the backing literal node can be used to know if the required path is valid
Comment 2 Michael Rennie CLA 2017-01-10 15:41:12 EST
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg04002.html