Skip to content

Update README.md #2

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update README.md #2

wants to merge 1 commit into from

Conversation

yeonjuan
Copy link
Owner

@yeonjuan yeonjuan commented May 5, 2024

PR Checklist

Overview

yeonjuan pushed a commit that referenced this pull request Dec 29, 2024
…te functions' return statements (typescript-eslint#10106)

* initial implementation

* tests

* refactor

* some more tests

* update docs

* update snapshots

* handle implicit or explicit undefined return types

* refactor and update tests

* remove unnecessary union check

* inline check

* cover empty return staetments

* report a function as returning undefined only if no other isssues were found

* update comments

* add test

* remove unnecessary test

* update code to match function's inferred return type rather than each return statement individually

* update tests to match the implementation changes

* adjust suggestion message

* final adjustments

* final adjustments #2

* test additions

* update snapshots

* Update packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx

Co-authored-by: Kirk Waiblinger <[email protected]>

* initial implementation of deducing the correct signature for non-function-expressions

* comments

* take type constraints into consideration

* only check type constraints on type parameters

* update tests

* update index tests

* update snapshot

* simplify code a bit

* remove overly complex heuristic

* use an existing helper rather than implementing one

* update tests

* Update packages/eslint-plugin/src/rules/strict-boolean-expressions.ts

Co-authored-by: Kirk Waiblinger <[email protected]>

* fix codecov

* cleanup old code, support type constraints

* refactor fixer

* remove unnecessary tests

* revert changes to isParenlessArrowFunction

* oops

---------

Co-authored-by: Kirk Waiblinger <[email protected]>
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.

1 participant