EmmanuelDemey / eslint-plugin-angular

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

Adjusting on-watch rule to avoid false positives #590

Open kopeczech opened 5 years ago

kopeczech commented 5 years ago

I was getting some false positives from the on-watch rule when storing the $watch or $on deregistration functions in an array or returning them from a function.

I propose not reporting any problems in these cases.

kopeczech commented 5 years ago

Fixes #519