Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up expect type code for diagnostics #895

Merged
merged 5 commits into from
Jan 4, 2024

Conversation

jakebailey
Copy link
Member

This makes the followup changes we discussed for #892.

Namely, determine if diagnostics should be reported first, and then pass that down so we can bail early. This should speed things up.

We don't need the precheck for being a dts file at all; walk does this immediately after reporting diagnostics.

I've also added a test; these fixture tests are pretty nice for being able to test different options with multiple real eslint configs.

@jakebailey jakebailey changed the title Add test Clean up expect type code for diagnostics Jan 4, 2024
Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

Code looks right, but the unversioned tests don't.

@jakebailey jakebailey requested a review from sandersn January 4, 2024 22:05
@jakebailey jakebailey merged commit 55f05a8 into microsoft:main Jan 4, 2024
6 checks passed
@jakebailey jakebailey deleted the cleanup-expect-diags branch January 4, 2024 22:16
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