Catch logical and conditional errors inside ternary expressions. Enforce best practises for JavaScript ternary operators. The recommended config of this plugin sets default values on some existing ...
The proper-ternary ESLint plugin provides rules that control the definitions of ? : conditional expressions (aka, "ternary expressions"), restricting them to a narrower and more proper/readable form.