# san/no-dupe-keys
disallow duplication of field names
- ⚙️ This rule is included in all of
"plugin:san/essential"
,"plugin:san/strongly-recommended"
and"plugin:san/recommended"
.
This rule prevents to use duplicated names.
# 📖 Rule Details
This rule is aimed at preventing duplicated property names in this.data
of a san instance.
<script>
/* ✗ BAD */
export default {
computed: {
foo() {
return this.data.get('a')
}
},
initData() {
return {
foo: null
}
},
foo () {}
}
</script>
# 🔧 Options
Nothing.