Created by: maxdavidson
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.