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-plugin): [consistent-return] add new rule #8289

Merged
merged 21 commits into from Feb 23, 2024

Conversation

yeonjuan
Copy link
Contributor

PR Checklist

Overview

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @yeonjuan!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

Copy link

netlify bot commented Jan 22, 2024

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit b3ca34e
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/65d77e43fd15740008215b6f
😎 Deploy Preview https://deploy-preview-8289--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 89 (🔴 down 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 98 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@yeonjuan yeonjuan force-pushed the feature/2841 branch 3 times, most recently from 957461e to 46a3226 Compare January 23, 2024 17:03
@yeonjuan yeonjuan marked this pull request as ready for review January 23, 2024 17:21
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

+1 to @auvred's #8289 (comment) - looks like a blocking bug.

But otherwise this is looking snazzy, thanks for working on it! 🔥

packages/eslint-plugin/docs/rules/consistent-return.md Outdated Show resolved Hide resolved
@JoshuaKGoldberg JoshuaKGoldberg added the awaiting response Issues waiting for a reply from the OP or another party label Jan 24, 2024
@yeonjuan yeonjuan force-pushed the feature/2841 branch 2 times, most recently from 3819039 to b176702 Compare January 24, 2024 17:29
@github-actions github-actions bot removed awaiting response Issues waiting for a reply from the OP or another party labels Jan 28, 2024
@yeonjuan
Copy link
Contributor Author

@StyleShit @auvred @JoshuaKGoldberg Thanks for the reviews, It's done!

Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (f825426) 86.89% compared to head (b3ca34e) 86.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8289      +/-   ##
==========================================
+ Coverage   86.89%   86.92%   +0.02%     
==========================================
  Files         250      251       +1     
  Lines       12201    12248      +47     
  Branches     3852     3864      +12     
==========================================
+ Hits        10602    10646      +44     
  Misses       1332     1332              
- Partials      267      270       +3     
Flag Coverage Δ
unittest 86.92% <93.61%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ckages/eslint-plugin/src/util/getESLintCoreRule.ts 50.00% <ø> (ø)
...kages/eslint-plugin/src/rules/consistent-return.ts 93.61% <93.61%> (ø)

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Swell!

Looks like auvred is doing a good job reviewing, so I just commented in a few places. Good stuff so far!

packages/eslint-plugin/docs/rules/consistent-return.md Outdated Show resolved Hide resolved
@JoshuaKGoldberg JoshuaKGoldberg added the awaiting response Issues waiting for a reply from the OP or another party label Feb 3, 2024
@github-actions github-actions bot removed the awaiting response Issues waiting for a reply from the OP or another party label Feb 7, 2024
@JoshuaKGoldberg JoshuaKGoldberg requested review from auvred and removed request for JoshuaKGoldberg and StyleShit February 22, 2024 23:20
Copy link
Member

@auvred auvred left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Morgan Freeman happily clapping in the audience the Oscars

@JoshuaKGoldberg JoshuaKGoldberg merged commit 46cef96 into typescript-eslint:main Feb 23, 2024
60 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[consistent-return] false positive when returning a void/undefined value
5 participants