Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
) {
value = attrValue.expression.quasis[0].value.raw;
} else if (options.onlyString) {
context.report({
node: asAttr.value,
message:
'`as` attribute should be the static string',
});
return;
}
} else {
value = attrValue.value;
}
if (options.onlyExisting && !utils.tags.has(value)) {
context.report({
node: asAttr.value,
message: 'Nonexistent html tag',
});
}
},
};