Should prettier respect @formatter:on/off
annotations?
#13962
mortenscheel
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All Jetbrains IDEs (and also Eclipse) allow you to use @Formatter annotations to turn automatic formatting off for sections of code. Although these annotations aren't standardized (afaik), they are recognized and respected by some other 3rd party linters (e.g. php-cs-fixer).
Example:
Personally I think it would be great if Prettier could interpret
@formatter:off
and@formatter:on
as aliases forprettier-ignore-start
andprettier-ignore-end
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions