2 * @fileoverview Rule to flag use of ternary operators.
3 * @author Ian Christian Myers
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
17 description: "disallow ternary operators",
18 category: "Stylistic Issues",
20 url: "https://eslint.org/docs/rules/no-ternary"
30 ConditionalExpression(node) {
31 context.report({ node, message: "Ternary operator used." });