From 5b3112fe99297dee77fd298efd03f762f63aac84 Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Wed, 16 Mar 2016 08:10:18 -0700 Subject: [PATCH] Enable no-self-assign This will throw an error on all variants of a = a; http://eslint.org/docs/rules/no-self-assign Change-Id: Iaddc5e106da307e9ead62d2a37876805aaa86746 --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 883ab2a..2c821ce 100644 --- a/.eslintrc +++ b/.eslintrc @@ -381,7 +381,7 @@ rules: # Disallow assignments where both sides are exactly the same # http://eslint.org/docs/rules/no-self-assign - no-self-assign: 0 + no-self-assign: 2 # Disallow comparisons where both sides are exactly the same # http://eslint.org/docs/rules/no-self-compare