ember-cli / ember-cli/eslint-plugin-ember

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

Open
#1,223 1 comment 0 reactions 0 assignees View on GitHub
enhancement New Rule
Dominant language
JavaScript
Stars
263
Forks
214
Avg merge
30m
Merged PRs (30d)
5

Description

There's [an existing eslint plugin for imports](https://github.com/benmosher/eslint-plugin-import/blob/master/README.md#settings), 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.