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

chore(no-standalone-expect): mark option as optional #636

Merged
merged 1 commit into from
Jul 31, 2020

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Jul 31, 2020

ESLint won't stop you from passing in undefined, and considers it a value that exists when checking if it should use the default value rules can set.

This actually should have been a TS error, but I believe the types for @typescript-eslint meant it didn't have the full picture? This in turn meant when upgrading in next we changed a test to not pass undefined, thus losing a point of coverage.

Programming is weird.

@G-Rath G-Rath merged commit a303c00 into master Jul 31, 2020
@G-Rath G-Rath deleted the mark-property-in-type-as-optional branch July 31, 2020 01:11
@github-actions
Copy link

github-actions bot commented Sep 4, 2020

🎉 This PR is included in version 24.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant