diff --git a/src/validate/js/propValidators/data.ts b/src/validate/js/propValidators/data.ts index b49931cf21..009e336b66 100644 --- a/src/validate/js/propValidators/data.ts +++ b/src/validate/js/propValidators/data.ts @@ -6,8 +6,6 @@ const disallowed = new Set(['Literal', 'ObjectExpression', 'ArrayExpression']); export default function data(validator: Validator, prop: Node) { while (prop.type === 'ParenthesizedExpression') prop = prop.expression; - // TODO should we disallow references and expressions as well? - if (disallowed.has(prop.value.type)) { validator.error(`'data' must be a function`, prop.value.start); }