Skip to content

Commit

Permalink
Allow shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Sep 22, 2019
1 parent 9682c31 commit 9ea56b3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions etc/eslint/rules/variables.js
Expand Up @@ -101,7 +101,7 @@ rules[ 'no-label-var' ] = 'error';
rules[ 'no-restricted-globals' ] = [ 'error', 'event', 'fdescribe' ]; rules[ 'no-restricted-globals' ] = [ 'error', 'event', 'fdescribe' ];


/** /**
* Never allow shadowing of global variable names in a local scope. * Allow shadowing of global variable names in a local scope.
* *
* @name no-shadow * @name no-shadow
* @memberof rules * @memberof rules
Expand All @@ -115,10 +115,7 @@ rules[ 'no-restricted-globals' ] = [ 'error', 'event', 'fdescribe' ];
* var x = 'boop'; * var x = 'boop';
* } * }
*/ */
rules[ 'no-shadow' ] = [ 'error', { rules[ 'no-shadow' ] = 'off';
'builtinGlobals': true,
'hoist': 'functions'
}];


/** /**
* Never allow reassignment of restricted names. * Never allow reassignment of restricted names.
Expand Down

0 comments on commit 9ea56b3

Please sign in to comment.