Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
});
return;
}
const hasCaption = trackChildren.some((track) => {
const kindProp = utils.getAttribute(track, 'kind');
const kinddValue = kindProp && utils.getAttributeValue(kindProp);
return kindProp && kinddValue.toLowerCase() === 'captions';
});
if (!hasCaption) {
context.report({
node,
message: errorMessage,
});
}
}
}, altRule.create(context))
}
};