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