diff --git a/lib/rules/destructuring-assignment.js b/lib/rules/destructuring-assignment.js index 58b45e86f5..77ee64a387 100644 --- a/lib/rules/destructuring-assignment.js +++ b/lib/rules/destructuring-assignment.js @@ -32,7 +32,7 @@ function createSFCParams() { const context = params[1]; return context && !context.destructuring && context.name; }); - return found && found[1] && found.name; + return found && found[1] && found[1].name; } }; }