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
This commit is contained in:
Michael Krotscheck 2016-03-16 08:10:18 -07:00
parent c2dfae4999
commit 5b3112fe99
No known key found for this signature in database
GPG Key ID: 20E618D878DE38AB
1 changed files with 1 additions and 1 deletions

View File

@ -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