trivago / prettier-plugin-twig-melody

Code formatting plugin for Prettier which can handle Twig/Melody templates
Apache License 2.0
157 stars 35 forks source link

Observe Prettier ignore comments #14

Closed twbartel closed 4 years ago

twbartel commented 4 years ago

This PR introduces functionality for prettier-ignore, prettier-ignore-start, and prettier-ignore-end, as described here: https://prettier.io/docs/en/ignore.html#html. It aims to close issue #9.

This functionality relies on the originalSource property on AST nodes, which is up and coming in Melody: https://github.com/trivago/melody/pull/148