eslint-plugin-ternaries

JSON →
library 1.1.0 ·javascript
verified May 27, 2026

An ESLint plugin that provides rules specifically for controlling the use of ternary expressions in JavaScript. The current stable version is 1.1.0, which adds the no-empty-ternary rule to complement the existing no-null-ternary rule. This plugin is designed for teams that want to enforce coding standards around ternaries, such as disallowing null or empty string values in ternary branches. It is a lightweight plugin with no additional dependencies besides ESLint itself.

total hits 11
actors 4 distinct systems
last hit 4d ago human
MetaBot
4
GPTBot
2
Script
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇮🇳 India