Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable eslint-plugin-node's no-extraneous-import rule (mostly). #1049

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Feb 19, 2020

This enables eslint-plugin-node's no-extraneous-import rule (which is part of its recommended set) for all packages except @glimmer/interfaces.

I've excluded @glimmer/interfaces specifically because IMHO it should not have any external dependencies, and the imports here need to be refactored to avoid needing to add the dependency.

This change however helps us ensure we don't accidentally regress for all of the other packages...

This enables eslint-plugin-node's `no-extraneous-import` rule (which is
part of its recommended set) for all packages _except_
`@glimmer/interfaces`.

`@glimmer/interfaces` is excluded because IMHO it **should not** have
any external dependencies, and the imports here need to be refactored to
avoid needing to add the dependency.

A single test in `@glimmer/reference` is excluded because it is
specifically importing from `@glimmer/runtime` (which causes a cyclic
dependency) and should probably either be moved into `@glimmer/runtime`
itself or refactored to using the base interfaces instead of the
implementations from `@glimmer/runtime`.

This change however helps us ensure we don't _accidentally_ regress for
all of the other packages...
Copy link
Member

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

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

❤️

@rwjblue
Copy link
Member Author

rwjblue commented Feb 19, 2020

CI is green, but the GH status isn't updated, merging....

@rwjblue rwjblue merged commit 173d3f3 into glimmerjs:master Feb 19, 2020
@rwjblue rwjblue deleted the enable-no-extraneous-import branch February 19, 2020 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants