eslint-plugin-no-switch-statements
ESLint rule for disallowing the switch statement
Install
$ npm install --save-dev eslint eslint-plugin-no-switch-statements
Usage
Configure it in package.json
.
Rules
- no-switch - prevent the usage of switch statements
Recommended configuration
This plugin exports a recommended
configuration that enforces good practices.
To enable this configuration, use the extends
property in your package.json
.
See ESLint documentation for more information about extending configuration files.
MIT © Andreas Wiedel