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