EmmanuelDemey / eslint-plugin-angular

ESLint plugin for AngularJS applications
https://www.npmjs.com/package/eslint-plugin-angular
618 stars 131 forks source link

For rule 'di' add allowCamelCaseMatch option #591

Open tpeiffer opened 4 years ago

tpeiffer commented 4 years ago

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.

Please consider merging this PR into your master branch.