Skip to content

Short-circuit before parsing#224

Merged
IanVS merged 1 commit intomainfrom
abort-faster
Jul 10, 2025
Merged

Short-circuit before parsing#224
IanVS merged 1 commit intomainfrom
abort-faster

Conversation

@IanVS
Copy link
Copy Markdown
Owner

@IanVS IanVS commented Jul 10, 2025

In attempting to troubleshoot #219, I realized that disabling the plugin using overrides and importOrder: [] does not prevent parsing errors. Moving this short-circuit check up before we attempt to parse will not only solve that problem but also improve performance a little by avoiding parsing files that we're just going to short-circuit anyway.

@IanVS
Copy link
Copy Markdown
Owner Author

IanVS commented Jul 10, 2025

Note that overrides do not currently work with --experimental-cli. Ref prettier/prettier-cli#73

@IanVS IanVS merged commit e9b444b into main Jul 10, 2025
8 checks passed
@IanVS IanVS deleted the abort-faster branch July 10, 2025 14:27
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.

1 participant