# 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>
Now loading...

# 🔧 Options

Nothing.

# 🔍 Implementation

Last Updated: 10/26/2021, 7:23:11 AM