Skip to content

no-target-blank-without-rel 🔧 ​

Require rel="noopener" on target="_blank".

Severity ​

warning

❌ Incorrect ​

html
<a href="https://example.com" target="_blank">Link</a>

✅ Correct ​

html
<a href="https://example.com" target="_blank" rel="noopener">Link</a>

Reference ​

Configuration ​

json
{
  "rules": {
    "no-target-blank-without-rel": "warning"
  }
}

Released under the MIT License.