Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92df635

Browse files
hshoffljharb
authored andcommitted
[eslint-v2][variables] add no-self-assign
1 parent 3762c9a commit 92df635

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/eslint-config-airbnb/rules/variables.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ module.exports = {
1111
'no-implicit-globals': 0,
1212
// disallow labels that share a name with a variable
1313
'no-label-var': 0,
14+
// disallow self assignment
15+
// http://eslint.org/docs/rules/no-self-assign
16+
'no-self-assign': 2,
1417
// disallow shadowing of names such as arguments
1518
'no-shadow-restricted-names': 2,
1619
// disallow declaration of variables already declared in the outer scope

0 commit comments

Comments
 (0)