terNoScriptUrlRule.md

February 26, 2018 ยท View on GitHub

ter-no-script-url (ESLint: no-script-url)

rule_source test_source

disallow use of javascript: urls.

Rationale

Using javascript: URLs is considered by some as a form of eval. Code passed in javascript: URLs has to be parsed and evaluated by the browser in the same way that eval is processed.

Config

Examples

"ter-no-script-url": true

Schema

{}

Contents

  1. 1ter-no-script-url (ESLint: no-script-url)
  2. 1.1Config