[eslint-v2][variables] add no-self-assign

This commit is contained in:
Harrison Shoff
2016-02-14 18:30:28 -08:00
committed by Jordan Harband
parent 3762c9add8
commit 92df6357b3

View File

@@ -11,6 +11,9 @@ module.exports = {
'no-implicit-globals': 0,
// disallow labels that share a name with a variable
'no-label-var': 0,
// disallow self assignment
// http://eslint.org/docs/rules/no-self-assign
'no-self-assign': 2,
// disallow shadowing of names such as arguments
'no-shadow-restricted-names': 2,
// disallow declaration of variables already declared in the outer scope