eslint-plugin-ember icon indicating copy to clipboard operation
eslint-plugin-ember copied to clipboard

New Rule: `no-missing-external-imports`

Open runspired opened this issue 4 years ago • 1 comments

There's an existing eslint plugin for imports, but it ignores imports from node_modules by default.

It would be awesome if eslint-plugin-ember configured this rule to make it capable of resolving imports from addons for listing purposes.

This may not work for some addons with custom treeForAddon behaviors, but those are few enough that I think this rule would still have high value (but common enough we may decide against making this rule on in the recommended config).

This would also may require special handling for ember-data and ember-source imports. For ember-data, versions below 3.12 do not have real module import paths except if the polypill provided by ember-cli-babel is used. Similar for ember-source for versions below 3.27.

runspired avatar Jun 02 '21 19:06 runspired

Some context on this ask can be found here: https://github.com/emberjs/data/issues/7565

runspired avatar Jun 02 '21 19:06 runspired