summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krotscheck <krotscheck@gmail.com>2016-03-16 08:10:18 -0700
committerMichael Krotscheck <krotscheck@gmail.com>2016-05-04 12:40:10 -0700
commit5b3112fe99297dee77fd298efd03f762f63aac84 (patch)
treed40b042e2b30a2de0dbd75c7ca10180ce525eb16
parentc2dfae499947999ad6a1d835e742ad74c5d5176d (diff)
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
Notes
Notes (review): Code-Review+1: Cindy Lu <clu@us.ibm.com> Code-Review+2: Beth Elwell <e.r.elwell@gmail.com> Code-Review+1: Frank White <francoblanco.openstack@gmail.com> Workflow+1: Beth Elwell <e.r.elwell@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 05 May 2016 15:06:20 +0000 Reviewed-on: https://review.openstack.org/293490 Project: openstack/eslint-config-openstack Branch: refs/heads/master
-rw-r--r--.eslintrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.eslintrc b/.eslintrc
index 883ab2a..2c821ce 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -381,7 +381,7 @@ rules:
381 381
382 # Disallow assignments where both sides are exactly the same 382 # Disallow assignments where both sides are exactly the same
383 # http://eslint.org/docs/rules/no-self-assign 383 # http://eslint.org/docs/rules/no-self-assign
384 no-self-assign: 0 384 no-self-assign: 2
385 385
386 # Disallow comparisons where both sides are exactly the same 386 # Disallow comparisons where both sides are exactly the same
387 # http://eslint.org/docs/rules/no-self-compare 387 # http://eslint.org/docs/rules/no-self-compare