Skip to content
Permalink
Browse files

Allow shadowing

  • Loading branch information...
kgryte committed Sep 22, 2019
1 parent 9682c31 commit 9ea56b30ac14887e5192039297fe2b39337b6f3a
Showing with 2 additions and 5 deletions.
  1. +2 −5 etc/eslint/rules/variables.js
@@ -101,7 +101,7 @@ rules[ 'no-label-var' ] = 'error';
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
* @memberof rules
@@ -115,10 +115,7 @@ rules[ 'no-restricted-globals' ] = [ 'error', 'event', 'fdescribe' ];
* var x = 'boop';
* }
*/
rules[ 'no-shadow' ] = [ 'error', {
'builtinGlobals': true,
'hoist': 'functions'
}];
rules[ 'no-shadow' ] = 'off';

/**
* Never allow reassignment of restricted names.

0 comments on commit 9ea56b3

Please sign in to comment.
You can’t perform that action at this time.