Skip to content

Use correct rule for TypeScript #83

@prichodko

Description

@prichodko

We need to use @typescript-eslint/no-unused-expressions instead of ESlint no-unused-expressions , because it can't handle optional chaining.

This code emits warning Expected an assignment or function call and instead saw an expression.

fn?.('hello')

Related:
typescript-eslint/typescript-eslint#1241 (comment)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions