Skip to content

Commit

Permalink
fix: for-index
Browse files Browse the repository at this point in the history
  • Loading branch information
pagnkelly committed Apr 9, 2024
1 parent c59dc94 commit 94a2318
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rules/valid-setup-define-expose.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94a2318

Please sign in to comment.