Skip to content

exclude files in the tests directory from isEmberCoreModule#213

Open
nathancharles wants to merge 5 commits intoember-cli:masterfrom
nathancharles:emberTest
Open

exclude files in the tests directory from isEmberCoreModule#213
nathancharles wants to merge 5 commits intoember-cli:masterfrom
nathancharles:emberTest

Conversation

@nathancharles
Copy link
Copy Markdown

This PR resolves #212

Copy link
Copy Markdown
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! I had one minor tweak suggestion, but otherwise looks good to me...

Nathan Cook and others added 3 commits January 6, 2019 16:46
alexlafroscia added a commit to alexlafroscia/eslint-plugin-ember that referenced this pull request Nov 21, 2019
The original logic for determining if a Identifier was of a specific Ember class used the file name to make this decision, rather than resolving the import of the Identifier back to the Ember module it was imported from.

This ended up causing a number of issues in lint rule in cases where people places a class in a location that was unexpected based on Ember’s convention. Such issues include ember-cli#601 and ember-cli#430.

Making this change avoids the need for something like ember-cli#213, which adds additional logic based on file names to prevent some of these issues.

Closes ember-cli#590
alexlafroscia added a commit to alexlafroscia/eslint-plugin-ember that referenced this pull request Nov 21, 2019
The original logic for determining if a Identifier was of a specific Ember class used the file name to make this decision, rather than resolving the import of the Identifier back to the Ember module it was imported from.

This ended up causing a number of issues in lint rule in cases where people places a class in a location that was unexpected based on Ember’s convention. Such issues include ember-cli#601 and ember-cli#430.

Making this change avoids the need for something like ember-cli#213, which adds additional logic based on file names to prevent some of these issues.

Closes ember-cli#590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test files are picked up as ember core modules

3 participants