Skip to content

Commit

Permalink
Merge branch 'feature/ignore-namespace' of github.com:waynzh/eslint-p…
Browse files Browse the repository at this point in the history
…lugin-vue into feature/ignore-namespace
  • Loading branch information
waynzh committed Nov 19, 2024
2 parents ba16740 + ed256b9 commit b8a24f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rules/no-v-text-v-html-on-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If you use v-text / v-html on a component, it will overwrite the component's con
```

- `allow` (`string[]`) ... Specify a list of custom components for which the rule should not apply.
- `ignoreElementNamespaces` (`boolean`) ... Specify whether to ignore the namespace restrictions for SVG and MathML elements, so that the rule should not apply. Default is `false`.
- `ignoreElementNamespaces` (`boolean`) ... If `true`, always treat SVG and MathML tag names as HTML elements, even if they are not used inside a SVG/MathML root element. Default is `false`.

### `{ "allow": ["router-link", "nuxt-link"] }`

Expand All @@ -77,8 +77,8 @@ If you use v-text / v-html on a component, it will overwrite the component's con
```vue
<template>
<!-- ✓ GOOD -->
<g v-text="content" /> <!-- <svg> -->
<mi v-text="content" /> <!-- <math> -->
<g v-text="content" /> <!-- SVG element not inside of <svg> -->
<mi v-text="content" /> <!-- MathML element not inside of <math> -->
</template>
```

Expand Down

0 comments on commit b8a24f4

Please sign in to comment.