2 * @fileoverview Rule to flag when using javascript: urls
5 /* jshint scripturl: true */
6 /* eslint no-script-url: 0 */
10 //------------------------------------------------------------------------------
12 //------------------------------------------------------------------------------
19 description: "disallow `javascript:` urls",
20 category: "Best Practices",
22 url: "https://eslint.org/docs/rules/no-script-url"
33 if (node.value && typeof node.value === "string") {
34 const value = node.value.toLowerCase();
36 if (value.indexOf("javascript:") === 0) {
37 context.report({ node, message: "Script URL is a form of eval." });