Ignore the ng_on_watch error from eslint

Based on the discussion at
https://github.com/Gillespie59/eslint-plugin-angular/issues/114
it seems that the rule is only applicable when the watches are
assigned on the $rootScope.
This rule is also not a part of the JP style guide.

Change-Id: Ic8c218c7d46229a4a2e7d9dcd951433aedd9d1ca
Partially-Implements: blueprint jscs-cleanup
This commit is contained in:
Nathan Zeplowitz 2015-07-07 11:58:54 -07:00
parent a385be24f5
commit 9b21076650
1 changed files with 4 additions and 0 deletions

View File

@ -805,6 +805,10 @@ rules:
# http://eslint.org/docs/rules/no-plusplus
no-plusplus: 0
# Disable check for the watch on scope
# This rule is not part of John Papa's ruleset
# https://github.com/Gillespie59/eslint-plugin-angular/issues/114
angular/ng_on_watch: 0
# We only support ECMA5, disable everything else.
ecmaFeatures: