JavaScript

JavaScript

Made by DeepSource

Disallow the use of reserved names in component definitions JS-0707

Bug risk
Minor
vue

There should not be name collisions between Vue components, standard HTML elements and built-in components.

Bad Practice


<script>
export default {
  name: 'div'
}
</script>

Recommended


<script>
export default {
  name: 'CustomNameApartFromReserverdName'
}
</script>