From 9b210766508bfeab6cb7f1c4d0c1524a51209613 Mon Sep 17 00:00:00 2001 From: Nathan Zeplowitz Date: Tue, 7 Jul 2015 11:58:54 -0700 Subject: [PATCH] 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 --- .eslintrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.eslintrc b/.eslintrc index c0e7ab40f7..94b300ff18 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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: