You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-dupe-keys.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,12 @@ since: v3.9.0
11
11
12
12
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
13
13
14
-
This rule prevents to use duplicated names.
14
+
This rule prevents using duplicate key names.
15
15
16
16
## :book: Rule Details
17
17
18
-
This rule is aimed at preventing duplicated property names.
18
+
This rule prevents duplicate `props`/`data`/`methods`/etc. key names defined on a component.
19
+
Even if a key name does not conflict in the `<script>` tag itself, it still may lead to a conflict in the `<template>` since Vue allows directly accessing these keys from there.
Copy file name to clipboardExpand all lines: docs/rules/no-duplicate-attributes.md
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,12 @@ since: v3.0.0
11
11
12
12
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
13
13
14
-
When duplicate arguments exist, only the last one is valid.
15
-
It's possibly mistakes.
14
+
When there are multiple attributes with the same name on a component, only the last one is used and the rest are ignored, so this is usually a mistake.
16
15
17
16
## :book: Rule Details
18
17
19
18
This rule reports duplicate attributes.
20
-
`v-bind:foo` directives are handled as the attributes`foo`.
19
+
`v-bind:foo` directives are handled as the attribute`foo`.
0 commit comments