correct rule

This commit is contained in:
Niels Lyngsø
2024-01-24 14:30:36 +01:00
parent d35596ce42
commit e2e51374f5

View File

@@ -24,7 +24,7 @@ module.exports = {
const elementName = node.arguments[0].value;
// check if the element name starts with 'umb-', or 'test-', to be allow tests to have custom elements:
const isElementNameValid = elementName.startsWith('umb-') ?? elementName.startsWith('test-');
const isElementNameValid = elementName.startsWith('umb-') ? true : elementName.startsWith('test-');
if (!isElementNameValid) {
context.report({