ember-cli / ember-cli/eslint-plugin-ember
no-implicit-injections has bugs when auto-fixing
- Dominant language
- JavaScript
- Stars
- 263
- Forks
- 214
- Avg merge
- 30m
- Merged PRs (30d)
- 5
Description
1) The added service injection doesn't format properly - it removes indents from the existing line it's inserted above

2) The autofix tries to import the service decorator at the top of the file. It not only does so using the old deprecated syntax `{ inject as service }`, but it fails to detect when the expected modern import `{ service }` already exists and ends up incorrectly duplicating the imports.


Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.