Skip to content

delegating printing nodes with prettier-ignore to prettier#1501

Merged
Janther merged 1 commit intomainfrom
has-prettier-ignore
Apr 10, 2026
Merged

delegating printing nodes with prettier-ignore to prettier#1501
Janther merged 1 commit intomainfrom
has-prettier-ignore

Conversation

@Janther
Copy link
Copy Markdown
Member

@Janther Janther commented Apr 7, 2026

hasPrettierIgnore has been documented since prettier 3.7.0 but has been in the types and in the code since at least prettier 3.0.0

this way we won't need to maintain ignoreComments.

I tested this with prettier 3.0.0 and it was supported back then.

@Janther Janther requested a review from fvictorio April 7, 2026 03:09
@Janther Janther force-pushed the has-prettier-ignore branch from a300316 to 5c7658c Compare April 9, 2026 21:30
Copy link
Copy Markdown
Member

@fvictorio fvictorio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@Janther Janther merged commit 6a72cde into main Apr 10, 2026
7 checks passed
@Janther Janther deleted the has-prettier-ignore branch April 10, 2026 12:14
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.

2 participants