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:
@@ -381,7 +381,7 @@ rules:
|
|||||||
|
|
||||||
# Disallow assignments where both sides are exactly the same
|
# Disallow assignments where both sides are exactly the same
|
||||||
# http://eslint.org/docs/rules/no-self-assign
|
# 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
|
# Disallow comparisons where both sides are exactly the same
|
||||||
# http://eslint.org/docs/rules/no-self-compare
|
# http://eslint.org/docs/rules/no-self-compare
|
||||||
|
|||||||
Reference in New Issue
Block a user