# no-template-target-blank

Rule `vue/no-template-target-blank`. Disallow target="_blank" attribute without rel="noopener noreferrer"

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1838 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-template-target-blank` | no | suggestion | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-template-target-blank.html) |
| Biome | `security/noBlankTarget` | yes | safe | group security, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-blank-target/) |

## Code examples

### Incorrect: the rule reports this

```vue
  <a href="http://example.com" target="_blank" >link</a>
</template>
```

```vue
  <a href="http://example.com" target="_blank" rel="noopener">link</a>
</template>
```

```vue
  <a href="http://example.com" target="_blank" >link</a>
</template>
```

### Correct: the rule accepts this

```vue
<a href="http://example.com" target="_blank" rel="noopener noreferrer">link</a>
```

```vue
<a href="http://example.com" target="_blank" rel="noopener noreferrer">link</a>
```

```vue
<a href="http://example.com" target="_blank" rel="noopener">link</a>
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/no-template-target-blank": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "security": {
        "noBlankTarget": "error"
      }
    }
  }
}
```

## Related rules

- [vue/no-shadow-native-events](https://lintradar.dev/rules/vue/no-shadow-native-events.md): Disallow the use of event names that collide with native web event names
- [vue/no-undef-directives](https://lintradar.dev/rules/vue/no-undef-directives.md): Disallow use of undefined custom directives
- [vue/no-setup-props-reactivity-loss](https://lintradar.dev/rules/vue/no-setup-props-reactivity-loss.md): Disallow usages that lose the reactivity of `props` passed to `setup`
- [vue/no-undef-properties](https://lintradar.dev/rules/vue/no-undef-properties.md): Disallow undefined properties
- [vue/no-restricted-v-on](https://lintradar.dev/rules/vue/no-restricted-v-on.md): Disallow specific argument in `v-on`
- [vue/no-use-v-else-with-v-for](https://lintradar.dev/rules/vue/no-use-v-else-with-v-for.md): Disallow using `v-else-if`/`v-else` on the same element as `v-for`

---

Web page: https://lintradar.dev/rules/vue/no-template-target-blank. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
