# eslint-plugin-no-async-in-for-each-loop

> Disallow using async in forEach loops

Latest version **0.0.1** (published 2022-10-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-no-async-in-for-each-loop
pnpm add eslint-plugin-no-async-in-for-each-loop
yarn add eslint-plugin-no-async-in-for-each-loop
bun add eslint-plugin-no-async-in-for-each-loop
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-10-17 |
| First published | 2022-10-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^12.20.0 \|\| ^14.17.0 \|\| ^16.0.0 \|\| >= 18.0.0 |
| Dependencies | 1 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tomás Cassas |
| Maintainers | tcassast |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-no-async-in-for-each-loop
- npm.io page: https://npm.io/package/eslint-plugin-no-async-in-for-each-loop

## Dependencies (1)

- [requireindex](https://npm.io/package/requireindex.md) ^1.2.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2022-10-17
- 0.0.0 — 2022-10-05

## README

# eslint-plugin-no-async-in-for-each-loop

Disallow using async in forEach loops

## Installation

You'll first need to install [ESLint](https://eslint.org/):

```sh
npm i eslint --save-dev
```

Next, install `eslint-plugin-no-async-in-for-each-loop`:

```sh
npm install eslint-plugin-no-async-in-for-each-loop --save-dev
```

## Usage

Add `no-async-in-for-each-loop` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
    "plugins": [
        "no-async-in-for-each-loop"
    ]
}
```

Then configure the rules you want to use under the rules section.

```json
{
    "rules": {
        "no-async-in-for-each-loop/no-async-in-for-each-loop": 2
    }
}
```

## Examples

Valid code 👍:

```js
['gunma'].forEach((prefecutre) => { console.log(prefecutre) })
```

Invalid code 👎:
```js
['tokyo'].forEach(async (prefecutre) => { console.log(prefecture) })
```

---
_Source: https://npm.io/package/eslint-plugin-no-async-in-for-each-loop · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
