Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefer-array-flat-map: Remove check on [].concat(...array.map(…)) #1299

Merged
merged 11 commits into from
May 22, 2021

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented May 19, 2021

Fixes #1298

```

```js
const foo = bar.flat().map(element => unicorn(element));
```
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a ## Related Rules section that links to the prefer-array-flat rule. And vice versa.

@sindresorhus sindresorhus merged commit 128b5aa into sindresorhus:main May 22, 2021
@fisker fisker deleted the prefer-array-flat-map-simplify branch May 22, 2021 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify prefer-array-flat-map rule
3 participants