Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Latest commit

 

History

History
22 lines (17 loc) · 899 Bytes

terNoScriptUrlRule.md

File metadata and controls

22 lines (17 loc) · 899 Bytes

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

{}