eslint-plugin-no-switch-true
Prevent switch(true) usage
.eslintrc
{
"...": {},
"plugins": [
"no-switch-true"
],
"rules": {
"no-switch-true/no-switch-true": "error"
}
}
Prevent switch(true) usage
{
"...": {},
"plugins": [
"no-switch-true"
],
"rules": {
"no-switch-true/no-switch-true": "error"
}
}