From 94a2318c441a45aa821cbfc317e86344765a11f4 Mon Sep 17 00:00:00 2001 From: pagnkelly <632228198@qq.com> Date: Tue, 9 Apr 2024 15:02:31 +0800 Subject: [PATCH] fix: for-index --- lib/rules/valid-setup-define-expose.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/rules/valid-setup-define-expose.js b/lib/rules/valid-setup-define-expose.js index 36834b7..c93e55a 100644 --- a/lib/rules/valid-setup-define-expose.js +++ b/lib/rules/valid-setup-define-expose.js @@ -137,7 +137,10 @@ module.exports = { node.parent.key.name.name ) ) { - if (node.parent.key.name.name === 'for-item') { + if ( + node.parent.key.name.name === 'for-item' || + node.parent.key.name.name === 'for-index' + ) { exposeSet.add(ref.id.name) } continue