Skip to content

Commit c9c51d4

Browse files
authored
Improve docs
1 parent 1d26811 commit c9c51d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/rules/no-duplicate-attr-inheritance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ since: v7.0.0
1212
1313
## :book: Rule Details
1414

15-
This rule aims to prevent duplicate attribute inheritance.
16-
This rule to warn to apply `inheritAttrs: false` when it detects `v-bind="$attrs"` being used.
15+
This rule aims to prevent duplicate attribute inheritance.
16+
This rule suggests applying `inheritAttrs: false` when it detects `v-bind="$attrs"` being used.
1717

1818
<eslint-code-block :rules="{'vue/no-duplicate-attr-inheritance': ['error', { checkMultiRootNodes: false }]}">
1919

@@ -57,7 +57,7 @@ export default {
5757
}
5858
```
5959

60-
- `"checkMultiRootNodes"`: If set to `true`, check and warn to apply `inheritAttrs: false` whenever it detects `v-bind="$attrs"` being used. Default is `false`, will ignore the components with multiple root nodes, because Vue encourages adding `v-bind="$attrs"` in this case to prevent runtime warnings. See [attribute inheritance on multiple root nodes](https://vuejs.org/guide/components/attrs.html#attribute-inheritance-on-multiple-root-nodes) for more.
60+
- `"checkMultiRootNodes"`: If set to `true`, also suggest applying `inheritAttrs: false` to components with multiple root nodes (where `inheritAttrs: false` is the implicit default, see [attribute inheritance on multiple root nodes](https://vuejs.org/guide/components/attrs.html#attribute-inheritance-on-multiple-root-nodes)), whenever it detects `v-bind="$attrs"` being used. Default is `false`, which will ignore components with multiple root nodes.
6161

6262
### `"checkMultiRootNodes": true`
6363

0 commit comments

Comments
 (0)