Skip to content

feat: support custom parsers#41

Merged
fabiospampinato merged 1 commit intoprettier:mainfrom
43081j:parser-help
Feb 22, 2025
Merged

feat: support custom parsers#41
fabiospampinato merged 1 commit intoprettier:mainfrom
43081j:parser-help

Conversation

@43081j
Copy link
Collaborator

@43081j 43081j commented Feb 18, 2025

Adds support for custom parsers in the --parser option.

This wasn't previously supported since the option is defined with a hard coded enum of the default parsers.

cc @fabiospampinato

Blocked until tiny-bin supports overriding options

Adds support for custom parsers in the `--parser` option.

This wasn't previously supported since the option is defined with a hard
coded enum of the default parsers.
@fabiospampinato fabiospampinato merged commit 10a6e7f into prettier:main Feb 22, 2025
2 checks passed
@fabiospampinato
Copy link
Collaborator

Awesome, thanks! I'll do the wiring with the override option thing 👍

@fabiospampinato
Copy link
Collaborator

There are a few details I hadn't considered regarding overriding options 🤔 --color and --no-color are essentially the same flag, but kinda? what if one just wants to document both of them in the help page? Also one may not necessarily want to preserve the position of the overridden option, for example if one is overriding a default option 🤔 I need to fix these once I get to a place with a reasonable wifi connection.

@43081j 43081j deleted the parser-help branch February 23, 2025 15:54
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