vue/html-quotes
eslint-plugin-vue
Safe autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/html-quotes": "error",
},
},
]; <img src='./logo.png'>
<img src=./logo.png>
</template> <img src="./logo.png">
<img src=./logo.png>
</template> <img title='foo'>
<img title=bar>
</template><img src="./logo.png"><img src='./logo.png'><img title='a string containing "double" quotes'>Examples from the ESLint documentation.
vue/html-quotes
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/html-quotes": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Require a line break before and after the contents of a multiline element
Require or disallow a space before tag's closing brackets
Enforce unified spacing in mustache interpolations
Require or disallow a line break before tag's closing brackets