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

Handle new service import style in several rules #1731

Merged
merged 2 commits into from Jan 3, 2023

Conversation

wagenet
Copy link
Contributor

@wagenet wagenet commented Jan 3, 2023

Previously, only import { inject as service } from '@ember/service' was handled. This adds support for import { service } from '@ember/service'.

This was added in Ember 4.1:
https://blog.emberjs.com/ember-4-1-released
emberjs/ember.js#19776
https://api.emberjs.com/ember/4.9/functions/@ember%2Fservice/service

Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

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

Thanks! In the PR description, can you provide some context in the form of a link to any announcement or documentation about this new named export?

@bmish bmish added the Bug label Jan 3, 2023
@wagenet
Copy link
Contributor Author

wagenet commented Jan 3, 2023

@bmish Done!

@bmish bmish changed the title Properly handle new service import Handle new service import style in several rules Jan 3, 2023
@bmish bmish merged commit 925e9ff into ember-cli:master Jan 3, 2023
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

2 participants