vue/no-reserved-keys
disallow overwriting reserved keys
- ⚙️ This rule is included in all of
"plugin:vue/vue3-essential"
,*.configs["flat/essential"]
,"plugin:vue/essential"
,*.configs["flat/vue2-essential"]
,"plugin:vue/vue3-strongly-recommended"
,*.configs["flat/strongly-recommended"]
,"plugin:vue/strongly-recommended"
,*.configs["flat/vue2-strongly-recommended"]
,"plugin:vue/vue3-recommended"
,*.configs["flat/recommended"]
,"plugin:vue/recommended"
and*.configs["flat/vue2-recommended"]
.
📖 Rule Details
This rule prevents to use reserved names to avoid conflicts and unexpected behavior.
🔧 Options
json
{
"vue/no-reserved-keys": ["error", {
"reserved": [],
"groups": []
}]
}
reserved
(string[]
) ... Array of additional restricted attributes insidegroups
. Default is empty.groups
(string[]
) ... Array of additional group names to search for duplicates in. Default is empty.
"reserved": ["foo", "foo2"], "groups": ["firebase"]
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-vue v3.9.0