# eslint-plugin-no-bad-map-access

> Linter rules that flag incorrect ES6 Map access

Latest version **0.0.4** (published 2022-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-no-bad-map-access
pnpm add eslint-plugin-no-bad-map-access
yarn add eslint-plugin-no-bad-map-access
bun add eslint-plugin-no-bad-map-access
```

## 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.4 |
| Published | 2022-07-24 |
| First published | 2022-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 21.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ryan R. Olds |
| Maintainers | ryanrolds |
| Keywords | eslint, typescript, map, es6 |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-no-bad-map-access
- Repository: https://github.com/ryanrolds/eslint-plugin-no-bad-map-access
- Homepage: https://github.com/ryanrolds/eslint-plugin-no-bad-map-access#readme
- Issues: https://github.com/ryanrolds/eslint-plugin-no-bad-map-access/issues
- npm.io page: https://npm.io/package/eslint-plugin-no-bad-map-access

## Dependencies (3)

- [eslint](https://npm.io/package/eslint.md) ^8.20.0
- [@typescript-eslint/utils](https://npm.io/package/@typescript-eslint/utils.md) ^5.30.6
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.30.6

## 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.4 (latest) — 2022-07-24
- 0.0.3 — 2022-07-22
- 0.0.2 — 2022-07-17
- 0.0.1 — 2022-07-17

## README

# No bad Map access

An [ESLint rule](https://eslint.org/) that uses [TypeScript plugin](https://github.com/typescript-eslint/typescript-eslint) to check if an [ES6 Map is being accessed incorrectly](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#setting_object_properties). Also looks for `{} as Map`, which is not a valid cast 

## Usage

```
npm install eslint-plugin-no-bad-map-access --save-dev
```

Add the following to your `.eslintrc.json`:

```
"rules": {
  ...
  "no-bad-map-access/no-bad-map-access": "error"
}
...
"plugins": [
  ...
  "no-bad-map-access"
]
```


## Development

### Setup

```bash
npm install
```

### Building

```bash
npm run build
```

### Testing

```bash
npm run test
```

---
_Source: https://npm.io/package/eslint-plugin-no-bad-map-access · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
