eslint-plugin-no-bad-map-access

0.0.4 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-no-bad-map-access

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

22 kB

Total Files

15

Last publish

Collaborators

  • ryanrolds