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

feat(eslint): Create no-eq-empty rule #3783

Merged
merged 1 commit into from
Jul 8, 2021
Merged

Conversation

AbhiPrasad
Copy link
Member

Make sure we guard against using equality operator with an empty array or object.

This is to prevent cases like #3779 which we missed in the initial code review.

Adding eslint rules is pretty easy + very quick to dev, we should aggressively leverage them to make code reviews easier.

Make sure we guard against using equality operator with an empty array.
@AbhiPrasad AbhiPrasad requested a review from kamilogorek as a code owner July 7, 2021 21:01
@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 21.43 KB (0%)
@sentry/browser - Webpack 22.45 KB (0%)
@sentry/react - Webpack 22.49 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.93 KB (0%)

Copy link
Contributor

@kamilogorek kamilogorek left a comment

Choose a reason for hiding this comment

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

💯

@AbhiPrasad AbhiPrasad merged commit e814408 into master Jul 8, 2021
@AbhiPrasad AbhiPrasad deleted the abhi-eslint-no-eq branch July 8, 2021 10:42
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