JavaScript

JavaScript

Made by DeepSource

Disallow unnecessary v-bind directives JS-0717

Anti-pattern
Minor
vue

The v-bind with a string literal value can be changed to a static attribute definition.

Bad Practice

  <div v-bind:foo="'bar'"/>
  <div :foo="'bar'"/>

Recommended

  <div foo="bar"/>
  <div :foo="bar"/>