# Require v-bind:src or src of <g-image>
elements (gridsome/require-g-image-src)
# 📖 Rule Details
- This rule reports the
<g-image>
elements which do not havev-bind:src
orsrc
.
👎 Examples of incorrect code for this rule:
<template>
<div>
<g-image width="500" />
<g-image width="500" height="500" />
</div>
</template>
👍 Examples of correct code for this rule:
<template>
<div>
<g-image src="http://www.example.com/foo.jpg" />
<g-image :src="path.to.img" />
<g-image v-bind:src="path.to.img" />
</div>
</template>
# 🔧 Options
Nothing.