awmottaz / prettier-plugin-void-html

Use the void tag syntax
https://www.npmjs.com/package/@awmottaz/prettier-plugin-void-html
MIT License
54 stars 5 forks source link

Support all v3 Prettier versions #3

Closed awmottaz closed 10 months ago

awmottaz commented 10 months ago

This PR adds explicit support for all Pretter v3 versions at the time of publishing (up to v3.1.0). The devDependencies were updated to include each version of Prettier, and the tests were updated to iterate over all of them.

The documentation in the README was also updated. Notably, I failed to document previously that non-void self-closing elements are also formatted so that both the opening and closing tags are included. For example, <div /> becomes <div></div>.

Closes #1