plugin-swift
plugin-swift copied to clipboard
Prevent `prettier-ignore` comment from disappearing
When a prettier-ignore comment is encountered, the node that it is attached to is copied. However it is expected that the range of that node includes the prettier-ignore comment.
This is not the case however, so the comment will disappear:
<node>let foo = [
1
]</node> // prettier-ignore
<node>let foo = [
1
]</node>