Skip to content

Conversation

maxdavidson
Copy link
Contributor

Eslint's no-unused-expressions rule doesn't support the new optional chaining syntax and yields false positives. Typescript-eslints's equivalent was recently updated to support it, so use it instead.

This fix only affects TypeScript, so in order to make it work for plain JavaScript we'd have to wait for official Eslint support or perhaps add another plugin like this one.

image

@ianschmitz ianschmitz added this to the 3.3 milestone Nov 20, 2019
@ianschmitz ianschmitz merged commit 4604c5e into facebook:master Nov 20, 2019
@ianschmitz
Copy link
Contributor

Thanks!

@lock lock bot locked and limited conversation to collaborators Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants