vuejs / eslint-plugin-vue

Official ESLint plugin for Vue.js
https://eslint.vuejs.org/
MIT License
4.47k stars 667 forks source link

Fix eslint on single quotes in html will be escaped. #2587

Closed adoin closed 3 weeks ago

adoin commented 3 weeks ago

Checklist

Tell us about your environment

Please show your full configuration:

by default

What did you do?

What did you expect to happen?

What actually happened?

<my-components  :title='t("1")' />

fix eslint

<my-components :title="t(&quot;&quot;)"/>

Repository to reproduce this issue

repoduce on the line 3 name==>fix it

ota-meshi commented 3 weeks ago

I think the avoidEscape option will allow you to keep your preferred style.

https://eslint.vuejs.org/rules/html-quotes.html#double-avoidescape-true