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