From fd8fba4cbc98906e89f9e5f0e8bc1a7b0257a5c0 Mon Sep 17 00:00:00 2001 From: ohhoney1 <1269075501@qq.com> Date: Tue, 27 Jul 2021 19:15:03 +0800 Subject: [PATCH] [Fix]: `destructuring-assignment` get the contextName correctly --- lib/rules/destructuring-assignment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }; }