Skip to content

linter: false positive of "no-unused-expressions" for arrow functions with implied returns #7584

@djytw

Description

@djytw

What version of Oxlint are you using?

0.14.0

What command did you run?

npx oxlint test.ts -D no-unused-expressions

What does your .oxlint.json config file look like?

no config file

What happened?

test.ts:

const _func = (value: number) => value + 1;
  × typescript-eslint(no-unused-expressions): Disallow unused expressions
   ╭─[test.ts:1:34]
 1 │ const _func = (value: number) => value + 1;
   ·                                  ─────────
   ╰────
  help: Consider removing this expression

Finished in 3ms on 1 file with 98 rules using 20 threads.
Found 0 warnings and 1 error.

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-bugCategory - Bug

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions