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

fix(eslint-plugin): [explicit-module-boundary-types] fix false positives #1490

Merged

Conversation

mijay
Copy link
Contributor

@mijay mijay commented Jan 21, 2020

Functions or classes nested, but not returned from inside an exported function should not be required to have an explicit type signature.

Fixes #1486

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @mijay!

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. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

Functions or classes nested, but not returned from inside an exported function should not be required to have an explicit type signature.

Fixes typescript-eslint#1486
@codecov
Copy link

codecov bot commented Jan 22, 2020

Codecov Report

Merging #1490 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1490      +/-   ##
==========================================
+ Coverage   95.58%   95.58%   +<.01%     
==========================================
  Files         147      147              
  Lines        6608     6616       +8     
  Branches     1887     1891       +4     
==========================================
+ Hits         6316     6324       +8     
  Misses        111      111              
  Partials      181      181
Impacted Files Coverage Δ
...plugin/src/rules/explicit-module-boundary-types.ts 93.96% <100%> (+0.44%) ⬆️

@bradzacher bradzacher added the bug Something isn't working label Jan 22, 2020
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for this

@bradzacher bradzacher merged commit 5562ad5 into typescript-eslint:master Jan 22, 2020
@mijay mijay deleted the fix-module-boundary-types branch January 22, 2020 07:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[explicit-module-boundary-types] False positive on functions nested inside exported
2 participants