npm.io
0.0.4 • Published 4 years ago

eslint-plugin-no-bad-map-access

Licence
MIT
Version
0.0.4
Deps
3
Size
21 kB
Vulns
0
Weekly
0
Stars
2

No bad Map access

An ESLint rule that uses TypeScript plugin to check if an ES6 Map is being accessed incorrectly. 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
npm install
Building
npm run build
Testing
npm run test

Keywords