eslint-plugin-vue icon indicating copy to clipboard operation
eslint-plugin-vue copied to clipboard

fix(no-useless-mustaches): escape < in fixes

Open DMartens opened this issue 1 year ago • 1 comments

Fixes #2384 I looked up the parser specification for the inside tag case for potential additional cases which would differ:

  • <: already covered in the issue
  • EOF: would already be an error
  • \0: I guess/hope no one would do this but there is a difference
  • &: there are cases when combining the text with either before or after the mustache but is also highly unlikely

So this PR only adds escaping < with &lt; in the fixer.

DMartens avatar Feb 01 '24 15:02 DMartens

There is still a lint error, so please run npm run lint:fix.

FloEdelmann avatar Feb 05 '24 10:02 FloEdelmann