diff --git a/docs/rules/README.md b/docs/rules/README.md index ebcc7b303..e229c19fc 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -274,6 +274,7 @@ For example: | [vue/no-reserved-component-names](./no-reserved-component-names.md) | disallow the use of reserved names in component definitions | | | [vue/no-restricted-syntax](./no-restricted-syntax.md) | disallow specified syntax | | | [vue/no-static-inline-styles](./no-static-inline-styles.md) | disallow static inline `style` attributes | | +| [vue/no-template-target-blank](./no-template-target-blank.md) | disallow target="_blank" attribute without rel="noopener noreferrer" | | | [vue/no-unsupported-features](./no-unsupported-features.md) | disallow unsupported Vue.js syntax on the specified version | :wrench: | | [vue/object-curly-spacing](./object-curly-spacing.md) | enforce consistent spacing inside braces | :wrench: | | [vue/padding-line-between-blocks](./padding-line-between-blocks.md) | require or disallow padding lines between blocks | :wrench: | diff --git a/docs/rules/no-template-target-blank.md b/docs/rules/no-template-target-blank.md new file mode 100644 index 000000000..67dfcc995 --- /dev/null +++ b/docs/rules/no-template-target-blank.md @@ -0,0 +1,99 @@ +--- +pageClass: rule-details +sidebarDepth: 0 +title: vue/no-template-target-blank +description: disallow target="_blank" attribute without rel="noopener noreferrer" +--- +# vue/no-template-target-blank +> disallow target="_blank" attribute without rel="noopener noreferrer" + +## :book: Rule Details + +This rule disallows using `target="_blank"` attribute without `rel="noopener noreferrer"` to avoid a security vulnerability([see here for more details](https://mathiasbynens.github.io/rel-noopener/)). + + + +```vue +