meteorlxy / eslint-plugin-prettier-vue

:ok_hand: ESLint plugin for Prettier formatting, which is better for Vue SFC
MIT License
115 stars 9 forks source link

Deletes style tag iteratively #1

Closed hamishjohnson closed 5 years ago

hamishjohnson commented 5 years ago
Screenshot 2019-08-03 at 15 14 13

after --fix

Screenshot 2019-08-03 at 15 14 18
meteorlxy commented 5 years ago

Thanks for reporting. Empty tag is an edge case that I didn't notice

meteorlxy commented 5 years ago

Fixed in v0.1.2.

Currently we process <script> and <style> blocks differently from custom blocks, which caused this bug.

Processing them in a same way could be a better way.