no-target-blank

This rule disallows the use of target="blank" without rel="noreferrer".

How to use

.eslintrc.js
module.exports = {
  rules: {
    "@html-eslint/no-target-blank": "error",
  },
};

Rule Details

Examples of incorrect code for this rule:

<a target="_blank" href="http://example.com/"></a>

Examples of correct code for this rule:

<a target="_blank" href="relative/path/"></a>
<a target="_blank" rel="noreferrer" href="http://example.com/"></a>