You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting angular linting errors in cases when they should not occur. For example, in my current project I am using angular-jwt, which requires some configuration when the app starts. I am getting the following error:
/blah/blah/project/src/client/app/my.module.js
25:4 error Avoid using a variable and instead use chaining with the getter syntax angular/module-getter
The linter is complaining because I've called .config() on jwtOptionsProvider. It is assuming that jwtOptionsProvider is my angular module, however as you can see, that is not the case. The rule here needs to be tightened up to only apply to variables that were actually set to an angular.module call. It cannot apply to all variables, as many providers include a .config() function.
The text was updated successfully, but these errors were encountered:
I am getting angular linting errors in cases when they should not occur. For example, in my current project I am using angular-jwt, which requires some configuration when the app starts. I am getting the following error:
Lines starting at 24 contain this:
The linter is complaining because I've called .config() on jwtOptionsProvider. It is assuming that jwtOptionsProvider is my angular module, however as you can see, that is not the case. The rule here needs to be tightened up to only apply to variables that were actually set to an angular.module call. It cannot apply to all variables, as many providers include a .config() function.
The text was updated successfully, but these errors were encountered: