File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,8 @@ module.exports = {
206
206
207
207
if (
208
208
currentNode . type === 'FunctionDeclaration'
209
- || currentNode . type === 'FunctionExpression'
210
- || currentNode . type === 'ArrowFunctionExpression'
209
+ || currentNode . type === 'FunctionExpression'
210
+ || currentNode . type === 'ArrowFunctionExpression'
211
211
) {
212
212
if ( currentNode . body && hasVariableDeclaration ( currentNode . body , identifierName ) ) {
213
213
return true ;
@@ -222,9 +222,9 @@ module.exports = {
222
222
223
223
if (
224
224
( currentNode . type === 'FunctionDeclaration'
225
- || currentNode . type === 'FunctionExpression'
226
- || currentNode . type === 'ArrowFunctionExpression' )
227
- && currentNode . params
225
+ || currentNode . type === 'FunctionExpression'
226
+ || currentNode . type === 'ArrowFunctionExpression' )
227
+ && currentNode . params
228
228
) {
229
229
const isParamShadowed = currentNode . params . some ( ( param ) => {
230
230
if ( param . type === 'Identifier' && param . name === identifierName ) {
You can’t perform that action at this time.
0 commit comments