ESLint error no-unneeded-ternary September 4, 2023 by Tarik You don’t need a ternary when a simple val || defaultVal will do.