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

For rule 'di' add allowCamelCaseMatch option #591

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

tpeiffer
Copy link
Collaborator

Our rules have been to PascalCase services and factories, but the JavaScript rule is to have variables camelCase.

To allow for this, we need to be able to $inject = ["MyService"] as (myService).

I added an allowCamelCaseMatch option to pair with matchNames to allow for this.

  • Code was added
  • Tests were added / ran
  • Quality was checked (no tabs vs spaces this time!)
  • Documentation was updated

Please consider merging this PR into your master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants