0.0.4 • Published 3 years ago
eslint-plugin-no-bad-map-access v0.0.4
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-devAdd the following to your .eslintrc.json:
"rules": {
...
"no-bad-map-access/no-bad-map-access": "error"
}
...
"plugins": [
...
"no-bad-map-access"
]Development
Setup
npm installBuilding
npm run buildTesting
npm run test