Skip to content

Commit 94a2318

Browse files
committed
fix: for-index
1 parent c59dc94 commit 94a2318

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/rules/valid-setup-define-expose.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ module.exports = {
137137
node.parent.key.name.name
138138
)
139139
) {
140-
if (node.parent.key.name.name === 'for-item') {
140+
if (
141+
node.parent.key.name.name === 'for-item' ||
142+
node.parent.key.name.name === 'for-index'
143+
) {
141144
exposeSet.add(ref.id.name)
142145
}
143146
continue

0 commit comments

Comments
 (0)