Glavin001 / Glavin001/tslint-clean-code

no-map-without-usage mistakenly trigged on arrow function returns

Open
#67 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
175
Forks
15
PR merge metrics
No merged PRs in 30d

Description

The following line should be valid:

```typescript
const myFunc = () => (
[].map((x) => x)
);
```

However, `no-map-without-usage` cannot detect that a value is being returned.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.