Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const options = context.options[0] || {};
const ignoreNonDOM = !!options.ignoreNonDOM;
if (ignoreNonDOM) {
const type = utils.getElementType(node.parent.parent);
if (!dom.get(type)) {
return;
}
}
context.report({
node,
loc: node.loc,
message: errorMessage
});
}
}, JsxRule.create(context))
}
}