in src/rules/javascript/opendialog-remote-uri.js [8:26]
CallExpression(node) {
if (
node.callee.type === 'MemberExpression' &&
node.callee.property.type === 'Identifier' &&
node.callee.property.name === 'openDialog'
) {
if (node.arguments.length) {
const uri = node.arguments[0];
if (
uri.type === 'Literal' &&
// The first argument should be of type `string` but, if it is
// not for some reasons, report a warning to be extra-safe.
(typeof uri.value !== 'string' || isLocalUrl(uri.value) === false)
) {
return context.report(node, OPENDIALOG_REMOTE_URI.code);
}
}
}
},