Skip to content

Prettier ignore - #32

Merged
suchipi merged 4 commits into
prettier:masterfrom
Sebbito:prettier-ignore
Jul 13, 2023
Merged

suchipi merged 4 commits into
prettier:masterfrom
Sebbito:prettier-ignore

Conversation

@Sebbito

@Sebbito Sebbito commented Jul 11, 2023

Copy link
Copy Markdown
Contributor

This is a quick and dirty implementation of ignoring a node that should be ignored based on a comment containing prettier-ignore.

I added a function that searches comments for said string in comments.js and the logic to just paste the original text in printer.js at the very top of the function.

This should fix #25

@suchipi

suchipi commented Jul 13, 2023

Copy link
Copy Markdown
Member

Perfect; thank you!

@suchipi
suchipi merged commit 5425355 into prettier:master Jul 13, 2023
@suchipi

suchipi commented Jul 13, 2023

Copy link
Copy Markdown
Member

Published in 0.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prettier-ignore has no effect

2 participants