2 * @fileoverview Rule to flag when using javascript: urls
5 /*jshint scripturl: true */
6 /*eslint no-script-url: 0*/
10 //------------------------------------------------------------------------------
12 //------------------------------------------------------------------------------
14 module.exports = function(context) {
18 "Literal": function(node) {
22 if (node.value && typeof node.value === "string") {
23 value = node.value.toLowerCase();
25 if (value.indexOf("javascript:") === 0) {
26 context.report(node, "Script URL is a form of eval.");