ember-cli / ember-cli/eslint-plugin-ember

New Rule: `require-normalized-service-injections`

Open
#1,220 0 comments 1 reaction 0 assignees View on GitHub
enhancement New Rule
Dominant language
JavaScript
Stars
263
Forks
214
Avg merge
30m
Merged PRs (30d)
5

Description

Create a new rule `require-normalized-service-injections` (or similar name) which would both validate that the service being injected actually exists, and that the name it's injected with matches its resolved name (so that it works with [ember-strict-resolver](https://github.com/stefanpenner/ember-strict-resolver)). This can be implemented once it's practical for the lint rule to understand the full service resolution logic (including how to find services in addons).

_Originally posted by @bmish in https://github.com/ember-cli/eslint-plugin-ember/pull/1188#discussion_r642109206_

More discussion in: https://discord.com/channels/480462759797063690/485447409296736276/842127236198039593

CC: @runspired

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.