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

use typescript version of no-unused-expressions #28

Merged
merged 1 commit into from
Sep 19, 2020

Conversation

pcardune
Copy link
Collaborator

@pcardune pcardune commented Sep 19, 2020

This makes code that uses optional chaining with function calls work without lint warnings:

someObj?.someAttr?.someFunc?.("this will lint");

See facebook/create-react-app#8107 (comment) and https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#optional-chaining

@pcardune pcardune merged commit 3d1be01 into master Sep 19, 2020
@pcardune pcardune deleted the pcardune-ts-no-unused-expressions branch September 19, 2020 03:20
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.

None yet

2 participants