vastec / ember-unused-components

Search for unused components in your Ember project
51 stars 12 forks source link

Nested component structure support #163

Closed bertdeblock closed 2 years ago

bertdeblock commented 3 years ago

Hi! It would be nice if ember-unused-components also supports the nested component structure.

Atm, even though used, this component is flagged as unused:

- app/components/foo-bar/index.js
- app/components/foo-bar/index.hbs

It seems like we can achieve this by updating the objectName function to also strip index.js and index.hbs.

If you can also tell me what else is needed testing wise, I could probably make a PR for this.

acdn-tsmith commented 1 year ago

Was this closed with no intent? I don't see any change and am also running into this issue.