Skip to content

Option to relax di rule #417

@wohanley

Description

@wohanley

I use 'sl' + the module name as a prefix for my component names, but inside a single component using array DI syntax, there's rarely a need for disambiguation and I'd rather not have to type out full names. For example:

angular.module('slMath')

.constant('pi', 3.14)

.factory('computeCircumference', ['slMathPi', function (pi) {

...

It would be nice to have an option to not flag pi there, something like { matchNames: false }. I'm happy to write the code myself, just checking first that it would be wanted.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions